<HTML> <HEAD> <!-- This HTML file has been created by texi2html 1.39 from ./xcdesign.texi on 12 June 2005 --> <TITLE>Designing Games with Xconq - Material Types</TITLE> </HEAD> <BODY> Go to the <A HREF="xcdesign_1.html">first</A>, <A HREF="xcdesign_41.html">previous</A>, <A HREF="xcdesign_43.html">next</A>, <A HREF="xcdesign_61.html">last</A> section, <A HREF="xcdesign_toc.html">table of contents</A>. <HR> <H2><A NAME="SEC202" HREF="xcdesign_toc.html#SEC202">Material Types</A></H2> <P> Materials are materials that are manipulated in mass quantities. In general, material types just index vectors of values attached to other objects, such as unit supplies. </P> <P> No more than 126 types of material may be defined. </P> <P> <U>Form:</U> <B><CODE>material-type</CODE></B> <I>symbol properties...</I><P> <A NAME="IDX469"></A> This form defines a new type of material, named by <VAR>symbol</VAR>. Details are similar to those for unit types. </P> <P> <U>GlobalVariable:</U> <B><CODE>m*</CODE></B><P> <A NAME="IDX470"></A> This variable evaluates to a list of all material types, listed in the same order as they were defined. </P> <P> <U>GlobalVariable:</U> <B><CODE>non-material</CODE></B><P> <A NAME="IDX471"></A> This variable has a value that is never a material type. </P> <UL> <LI><A HREF="xcdesign_42.html#SEC203">People</A> </UL> <H3><A NAME="SEC203" HREF="xcdesign_toc.html#SEC203">People</A></H3> <P> A material type can be designated as representing people. </P> <P> <U>MaterialTypeProperty:</U> <B><CODE>people</CODE></B> <I>n</I><P> <A NAME="IDX472"></A> This property is the actual number of individuals represented by 1 of a material. If 0, then the material type does not have people associated with it at all. </P> <P> Multiple types of materials can represent different types of people, so for example there could be one type <CODE>nomad</CODE> with 10 people/material, and another type <CODE>urbanite</CODE> with 10,000 people/material. </P> <P> The basic cell capacities for materials also constrain people materials. There can be an additional limit on the number of individuals. </P> <P> <U>TerrainTypeProperty:</U> <B><CODE>people-max</CODE></B> <I>n</I><P> <A NAME="IDX473"></A> This property is the maximum number of individuals allowed in a cell of this type of terrain. This is checked at the end of each turn; any excess will be moved into adjacent cells or disappear entirely. Defaults to <CODE>-1</CODE>, which allows any number of people in a cell. </P> <HR> Go to the <A HREF="xcdesign_1.html">first</A>, <A HREF="xcdesign_41.html">previous</A>, <A HREF="xcdesign_43.html">next</A>, <A HREF="xcdesign_61.html">last</A> section, <A HREF="xcdesign_toc.html">table of contents</A>. </BODY> </HTML>