Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 74fbd0eb33bb08f719b79951bc4e329e > files > 105

xconq-7.5.0-1.20050612.5mdv2009.1.i586.rpm

<HTML>
<HEAD>
<!-- This HTML file has been created by texi2html 1.39
     from ./xcdesign.texi on 12 June 2005 -->

<TITLE>Designing Games with Xconq - Other Forms</TITLE>
</HEAD>
<BODY>
Go to the <A HREF="xcdesign_1.html">first</A>, <A HREF="xcdesign_55.html">previous</A>, <A HREF="xcdesign_57.html">next</A>, <A HREF="xcdesign_61.html">last</A> section, <A HREF="xcdesign_toc.html">table of contents</A>.
<HR>


<H2><A NAME="SEC282" HREF="xcdesign_toc.html#SEC282">Other Forms</A></H2>

<P>
GDL forms in this section are those that do not really fit anywhere
else.

</P>

<UL>
<LI><A HREF="xcdesign_56.html#SEC283">Default Display Style</A>
<LI><A HREF="xcdesign_56.html#SEC284">The Random State</A>
<LI><A HREF="xcdesign_56.html#SEC285">Debugging Support</A>
</UL>



<H3><A NAME="SEC283" HREF="xcdesign_toc.html#SEC283">Default Display Style</A></H3>

<P>
The exact style of display depends on the user interface and on user
preferences, but for some games, you may want to encourage a particular
style by making it be the default.

</P>
<P>
<U>GlobalVariable:</U> <B><CODE>unseen-char</CODE></B> <I>str</I><P>
<A NAME="IDX1009"></A>
This variable is a string whose first character will be used to
represent unexplored terrain.  If the string consists of two characters,
the second char will be scattered throughout a field of the first char.
Defaults to <CODE>" ?"</CODE>.  (At present, this is used only by the curses
interface.)

</P>
<P>
<U>GlobalVariable:</U> <B><CODE>unseen-color</CODE></B> <I>str</I><P>
<A NAME="IDX1010"></A>
This variable is the name of a color that will be used to represent
unexplored terrain.  Defaults to <CODE>"black"</CODE>.

</P>
<P>
<U>GlobalVariable:</U> <B><CODE>grid-color</CODE></B> <I>str</I><P>
<A NAME="IDX1011"></A>
This variable is the name of a color to use to draw the cell-separating
grid.  Defaults to <CODE>"dark-gray"</CODE>.

</P>
<P>
<U>GlobalVariable:</U> <B><CODE>unit-name-color</CODE></B> <I>str</I><P>
<A NAME="IDX1012"></A>
This variable is the name of a color to use when drawing unit names and
numbers.  Defaults to <CODE>"white"</CODE>.

</P>
<P>
<U>GlobalVariable:</U> <B><CODE>unit-gbox-border-color</CODE></B> <I>str</I><P>
<A NAME="IDX1013"></A>
This is the color to use around the border of a transport's grouping box.
Defaults to <CODE>"black"</CODE>.

</P>
<P>
<U>GlobalVariable:</U> <B><CODE>unit-gbox-fill-color</CODE></B> <I>str</I><P>
<A NAME="IDX1014"></A>
This is the color to use inside a transport's grouping box.
Defaults to <CODE>"white"</CODE>.

</P>
<P>
<U>UnitTypeProperty:</U> <B><CODE>construction-border-color</CODE></B> <I>str</I><P>
<A NAME="IDX1015"></A>
This is the color that frames an unit during its construction.
Defaults to <CODE>"SandyBrown"</CODE>.

</P>
<P>
<U>UnitTypeProperty:</U> <B><CODE>construction-fill-color</CODE></B> <I>str</I><P>
<A NAME="IDX1016"></A>
This is the color that is shown behind an unit during its construction.
Defaults to <CODE>"brown"</CODE>.

</P>
<P>
<U>GlobalVariable:</U> <B><CODE>contour-color</CODE></B> <I>str</I><P>
<A NAME="IDX1017"></A>
This variable is the name of a color to use to draw the elevation
contour lines.  Defaults to <CODE>"saddle-brown"</CODE>.

</P>
<P>
<U>GlobalVariable:</U> <B><CODE>meridian-color</CODE></B> <I>str</I><P>
<A NAME="IDX1018"></A>
This variable is the name of a color to use to draw meridians of
latitude and longitude.  Defaults to <CODE>"black"</CODE>.

</P>
<P>
<U>GlobalVariable:</U> <B><CODE>frontline-color</CODE></B> <I>str</I><P>
<A NAME="IDX1019"></A>
This variable is the name of a color to use to draw country borders
against other countries.  Defaults to <CODE>"red"</CODE>.

</P>
<P>
<U>GlobalVariable:</U> <B><CODE>country-border-color</CODE></B> <I>str</I><P>
<A NAME="IDX1020"></A>
This variable is the name of a color to use to draw country borders
against unpopulated areas.  Defaults to <CODE>"pink"</CODE>.

</P>
<P>
<U>GlobalVariable:</U> <B><CODE>shoreline-color</CODE></B> <I>str</I><P>
<A NAME="IDX1021"></A>
This variable is the name of a color to use to draw shorelines (liquid
adjacent to non-liquid terrain).  Defaults to <CODE>"blue"</CODE>.

</P>
<P>
<U>TableTT:</U> <B><CODE>drawable-terrain</CODE></B> <I>t1 t2 -&#62; t/f</I><P>
<A NAME="IDX1022"></A>
This table is true when terrain of type <VAR>t1</VAR> should be drawn over
terrain of <VAR>t2</VAR>.  In practice, you would set this to <CODE>false</CODE> to
suppress the drawing of terrain that extends into an inappropriate
types, such as river connections protuding into lakes or seas.  Defaults
to <CODE>true</CODE>.

</P>
<P>
<U>MaterialTypeProperty:</U> <B><CODE>resource-icon</CODE></B> <I>n</I><P>
<A NAME="IDX1023"></A>
This is a value between 1 and 4 that indicates that a material type is
to be drawn in each cell indicating that an advanced unit is producing
material in that cell.  The value is used by the Mac interface to select
one of several icons.

</P>



<H3><A NAME="SEC284" HREF="xcdesign_toc.html#SEC284">The Random State</A></H3>

<P>
It is useful to be able to restart the random number generator
consistently.

</P>
<P>
<U>GlobalVariable:</U> <B><CODE>random-state</CODE></B> <I>n</I><P>
<A NAME="IDX1024"></A>
This variable is the state of the random number generator.  If this is
not used, then the initial state of the random number generator will be
set in a system-dependent way.

</P>



<H3><A NAME="SEC285" HREF="xcdesign_toc.html#SEC285">Debugging Support</A></H3>

<P>
<U>Form:</U> <B><CODE>print</CODE></B> <I>value</I><P>
<A NAME="IDX1025"></A>
This form prints to a console or file (depending on the interface) the
object <VAR>value</VAR>, in GDL syntax.

</P>

<HR>
Go to the <A HREF="xcdesign_1.html">first</A>, <A HREF="xcdesign_55.html">previous</A>, <A HREF="xcdesign_57.html">next</A>, <A HREF="xcdesign_61.html">last</A> section, <A HREF="xcdesign_toc.html">table of contents</A>.
</BODY>
</HTML>