|
Classes |
| struct | propertydefn |
| | Property definition. More...
|
| struct | tabledefn |
| | Table definition. More...
|
| struct | vardefn |
| | Global Variables definition. More...
|
| struct | utype |
| | Unit Type Property Value. More...
|
| struct | mtype |
| | Material type properties. More...
|
| struct | ttype |
| | Terrain type properties. More...
|
| struct | atype |
| | Advance type properties. More...
|
| struct | a_globals |
| | Global data structure. More...
|
Defines |
| #define | NONUTYPE (-1) |
| | Non unit.
|
| #define | NONMTYPE (-1) |
| | Non Material.
|
| #define | NONTTYPE (-1) |
| | Non terrain.
|
| #define | BACKTTYPE (-2) |
| | Bogus window background terrain.
|
| #define | NONATYPE (-1) |
| | non advance.
|
| #define | DONE (-2) |
| | Advance complete.
|
| #define | NOADVANCE (-3) |
| | No advance.
|
| #define | PROPLO -32768 |
| | Low property value limit.
|
| #define | PROPHI 32767 |
| | High property value limit.
|
| #define | TABLO -32768 |
| | Low value in table.
|
| #define | TABHI 32767 |
| | High value in table.
|
| #define | TABINT 0 |
| | Integer table.
|
| #define | TABDICE1 1 |
| | Type 1 dice table.
|
| #define | TABDICE2 2 |
| | Type 2 dice table.
|
| #define | VARLO -2000000000 |
| | Low value for globals.
|
| #define | VARHI 2000000000 |
| | High value for globals.
|
| #define | DEF_UPROP_I(name, fname, doc, SLOT, lo, dflt, hi) short SLOT; /*!< doc */ |
| #define | DEF_UPROP_S(name, fname, doc, SLOT, dflt) char *SLOT; /*!< doc */ |
| #define | DEF_UPROP_L(name, fname, doc, SLOT) Obj *SLOT; /*!< doc */ |
| #define | DEF_MPROP_I(name, fname, doc, SLOT, lo, dflt, hi) short SLOT; |
| #define | DEF_MPROP_S(name, fname, doc, SLOT, dflt) char *SLOT; |
| #define | DEF_MPROP_L(name, fname, doc, SLOT) Obj *SLOT; |
| #define | DEF_TPROP_I(name, fname, doc, SLOT, lo, dflt, hi) short SLOT; |
| #define | DEF_TPROP_S(name, fname, doc, SLOT, dflt) char *SLOT; |
| #define | DEF_TPROP_L(name, fname, doc, SLOT) Obj *SLOT; |
| #define | DEF_APROP_I(name, fname, doc, SLOT, lo, dflt, hi) short SLOT; |
| #define | DEF_APROP_S(name, fname, doc, SLOT, dflt) char *SLOT; |
| #define | DEF_APROP_L(name, fname, doc, SLOT) Obj *SLOT; |
| #define | DEF_VAR_I(name, fname, setfname, doc, VAR, lo, dflt, hi) int VAR; |
| #define | DEF_VAR_S(name, fname, setfname, doc, VAR, dflt) char *VAR; |
| #define | DEF_VAR_L(name, fname, setfname, doc, VAR, dflt) Obj *VAR; |
| #define | DEF_UPROP_I(name, FNAME, doc, slot, lo, dflt, hi) int FNAME(int u); |
| #define | DEF_UPROP_S(name, FNAME, doc, slot, dflt) char *FNAME(int u); |
| #define | DEF_UPROP_L(name, FNAME, doc, slot) Obj *FNAME(int u); |
| #define | DEF_MPROP_I(name, FNAME, doc, slot, lo, dflt, hi) int FNAME(int m); |
| #define | DEF_MPROP_S(name, FNAME, doc, slot, dflt) char *FNAME(int m); |
| #define | DEF_MPROP_L(name, FNAME, doc, slot) Obj *FNAME(int m); |
| #define | DEF_TPROP_I(name, FNAME, doc, slot, lo, dflt, hi) int FNAME(int t); |
| #define | DEF_TPROP_S(name, FNAME, doc, slot, dflt) char *FNAME(int t); |
| #define | DEF_TPROP_L(name, FNAME, doc, slot) Obj *FNAME(int t); |
| #define | DEF_APROP_I(name, FNAME, doc, slot, lo, dflt, hi) int FNAME(int a); |
| #define | DEF_APROP_S(name, FNAME, doc, slot, dflt) char *FNAME(int a); |
| #define | DEF_APROP_L(name, FNAME, doc, slot) Obj *FNAME(int a); |
| #define | DEF_VAR_I(str, FNAME, SETFNAME, doc, var, lo, dflt, hi) int FNAME(void); |
| #define | DEF_VAR_S(str, FNAME, SETFNAME, doc, var, dflt) char *FNAME(void); |
| #define | DEF_VAR_L(str, FNAME, SETFNAME, doc, var, dflt) Obj *FNAME(void); |
| #define | DEF_VAR_I(str, FNAME, SETFNAME, doc, var, lo, dflt, hi) void SETFNAME(int val); |
| #define | DEF_VAR_S(str, FNAME, SETFNAME, doc, var, dflt) void SETFNAME(char *val); |
| #define | DEF_VAR_L(str, FNAME, SETFNAME, doc, var, dflt) void SETFNAME(Obj *val); |
| #define | DEF_UU_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) int FNAME(int u1, int u2); |
| #define | DEF_UM_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) int FNAME(int u, int m); |
| #define | DEF_UT_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) int FNAME(int u, int t); |
| #define | DEF_TM_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) int FNAME(int t, int m); |
| #define | DEF_TT_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) int FNAME(int t1, int t2); |
| #define | DEF_MM_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) int FNAME(int m1, int m2); |
| #define | DEF_UA_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) int FNAME(int u, int a); |
| #define | DEF_AM_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) int FNAME(int a, int m); |
| #define | DEF_AA_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) int FNAME(int a1, int a2); |
| #define | DEF_UU_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) extern short *TABLE, CNST; |
| #define | DEF_UM_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) extern short *TABLE, CNST; |
| #define | DEF_UT_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) extern short *TABLE, CNST; |
| #define | DEF_TM_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) extern short *TABLE, CNST; |
| #define | DEF_TT_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) extern short *TABLE, CNST; |
| #define | DEF_MM_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) extern short *TABLE, CNST; |
| #define | DEF_UA_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) extern short *TABLE, CNST; |
| #define | DEF_AM_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) extern short *TABLE, CNST; |
| #define | DEF_AA_TABLE(name, FNAME, doc, TABLE, CNST, lo, dflt, hi, valtype) extern short *TABLE, CNST; |
| #define | for_all_unit_types(v) for (v = 0; v < numutypes; ++v) |
| | Iterate all Unit types.
|
| #define | for_all_material_types(v) for (v = 0; v < nummtypes; ++v) |
| | Iterate all Material types.
|
| #define | for_all_terrain_types(v) for (v = 0; v < numttypes; ++v) |
| | Iterate through all Terrain types.
|
| #define | for_all_advance_types(v) for (v = 0; v < numatypes; ++v) |
| | Iterate through all Advance types.
|
| #define | for_all_aux_terrain_types(t) for ((t) = first_auxt_type; (t) >= 0; (t) = next_auxt_type[(t)]) |
| | Iterate through aux terrain types.
|
| #define | for_all_border_types(t) for ((t) = first_bord_type; (t) >= 0; (t) = next_bord_type[(t)]) |
| | Iterate through borders.
|
| #define | for_all_connection_types(t) for ((t) = first_conn_type; (t) >= 0; (t) = next_conn_type[(t)]) |
| | Iterate through connections.
|
| #define | checku(x) if ((x) < 0 || (x) >= numutypes) utype_error(x); |
| | Check Unit type range.
|
| #define | checkm(x) if ((x) < 0 || (x) >= nummtypes) mtype_error(x); |
| | Check Material type range.
|
| #define | checkt(x) if ((x) < 0 || (x) >= numttypes) ttype_error(x); |
| | Check Terrain type range.
|
| #define | checka(x) if ((x) < 0 || (x) >= numatypes) atype_error(x); |
| | Check Advance type range.
|
| #define | actor(u) (u_acp(u) > 0) |
| | Is actor?
|
| #define | mobile(u) (u_speed(u) > 0) |
| | Is mobile?
|
| #define | u_mobile(u) (0 < mp_per_turn_max(u)) |
| | Is utype mobile?
|
| #define | u_hp(u) (u_hp_max(u)) |
| | Unit hit points.
|
| #define | could_live_on(u, t) (could_be_on(u, t) && !ut_vanishes_on(u, t) && !ut_wrecks_on(u, t)) |
| | Can Unit survive on Terrain?
|
| #define | could_carry(u1, u2) (uu_capacity_x(u1, u2) > 0 || uu_size(u2, u1) <= u_capacity(u1)) |
| | Unit could carry Unit?
|
| #define | could_develop(u1, u2) (uu_acp_to_develop(u1, u2) > 0) |
| | Unit could develop Unit?
|
| #define | impassable(u, x, y) (!could_be_on((u)->type, terrain_at((x), (y)))) |
| | Impassable?
|
| #define | isbase(u) (u_is_base((u)->type)) |
| | Is the Unit a base?
|
| #define | base_builder(u) (u_is_base_builder((u)->type)) |
| | Is the Unit a base builder?
|
| #define | istransport(u) (u_is_transport((u)->type)) |
| | Is the Unit a transport?
|
| #define | t_is_cell(t) (t_subtype(t) == cellsubtype) |
| | Is the Terrain a cell?
|
| #define | t_is_border(t) (t_subtype(t) == bordersubtype) |
| | Is the Terrain a border?
|
| #define | t_is_connection(t) (t_subtype(t) == connectionsubtype) |
| | Is the Terrain a connection?
|
| #define | t_is_coating(t) (t_subtype(t) == coatingsubtype) |
| | Is the Terrain a coating?
|
| #define | is_unit_type(u) ((u) >= 0 && (u) < numutypes) |
| | Is the Unit type valid?
|
| #define | is_material_type(m) ((m) >= 0 && (m) < nummtypes) |
| | Is the Material type valid?
|
| #define | is_terrain_type(t) ((t) >= 0 && (t) < numttypes) |
| | Is the Terrain type valid?
|
| #define | is_advance_type(a) ((a) >= 0 && (a) < numatypes) |
| | Is the Advance type valid?
|
Typedefs |
| typedef propertydefn | PropertyDefn |
| | Property definition.
|
| typedef tabledefn | TableDefn |
| | Table definition.
|
| typedef vardefn | VarDefn |
| | Global Variables definition.
|
| typedef utype | Utype |
| | Unit Type Property Value.
|
| typedef mtype | Mtype |
| | Material type properties.
|
| typedef ttype | Ttype |
| | Terrain type properties.
|
| typedef atype | Atype |
| | Advance type properties.
|
| typedef a_globals | Globals |
| | Global data structure.
|
Enumerations |
| enum | Typetype { UTYP = 0,
MTYP = 1,
TTYP = 2,
ATYP = 3
} |
| | Type of types. More...
|
| enum | terrain_subtype { cellsubtype = 0,
bordersubtype = 1,
connectionsubtype = 2,
coatingsubtype = 3
} |
| | Terrain subtypes. More...
|
Functions |
| int | could_be_on (int u, int t) |
| | Could u be on t?
|
| void | utype_error (int u) |
| void | mtype_error (int m) |
| void | ttype_error (int t) |
| void | atype_error (int s) |
| void | init_types (void) |
| void | init_globals (void) |
| int | create_unit_type (void) |
| int | create_material_type (void) |
| int | create_terrain_type (void) |
| int | create_advance_type (void) |
| void | default_unit_type (int x) |
| void | default_material_type (int x) |
| void | default_terrain_type (int x) |
| void | default_advance_type (int x) |
| void | allocate_table (int tbl, int reset) |
| int | numtypes_from_index_type (int x) |
| char * | index_type_name (int x) |
| void | disallow_more_unit_types (void) |
| void | disallow_more_terrain_types (void) |
| void | disallow_more_material_types (void) |
| void | disallow_more_advance_types (void) |
| void | count_terrain_subtypes (void) |
| int | table_default (int(*getter)(int, int)) |
| | Default value for table.
|
| short | uprop_i_default (int(*intgetter)(int)) |
| | Default value for integer uprop.
|
| char * | uprop_s_default (char *(*strgetter)(int)) |
| | Default value for string uprop.
|
| Obj * | uprop_l_default (Obj *(*objgetter)(int)) |
| | Default value for Lisp uprop.
|
| short | tprop_i_default (int(*intgetter)(int)) |
| | Default value for integer tprop.
|
| char * | tprop_s_default (char *(*strgetter)(int)) |
| | Default value for string tprop.
|
| Obj * | tprop_l_default (Obj *(*objgetter)(int)) |
| | Default value for Lisp tprop.
|
| short | mprop_i_default (int(*intgetter)(int)) |
| | Default value for integer mprop.
|
| char * | mprop_s_default (char *(*strgetter)(int)) |
| | Default value for string mprop.
|
| Obj * | mprop_l_default (Obj *(*objgetter)(int)) |
| | Default value for Lisp mprop.
|
| short | aprop_i_default (int(*intgetter)(int)) |
| | Default value for integer aprop.
|
| char * | aprop_s_default (char *(*strgetter)(int)) |
| | Default value for string aprop.
|
| Obj * | aprop_l_default (Obj *(*objgetter)(int)) |
| | Default value for Lisp aprop.
|
| int | gvar_i_default (int(*intgetter)(void)) |
| | Default value for integer gvar.
|
| char * | gvar_s_default (char *(*strgetter)(void)) |
| | Default value for string gvar.
|
| Obj * | gvar_l_default (Obj *(*objgetter)(void)) |
| | Default value for Lisp gvar.
|
| Obj * | g_synth_methods_default (void) |
Variables |
| short | numutypes |
| | Number of Unit types.
|
| short | nummtypes |
| | Number of Material types.
|
| short | numttypes |
| | Number of Terrain types.
|
| short | numatypes |
| | Number of Advance types.
|
| Globals | globals |
| | Global data variable.
|
| Utype * | utypes |
| | Unit type properties.
|
| Mtype * | mtypes |
| | Material type properties.
|
| Ttype * | ttypes |
| | Terrain type properties.
|
| Atype * | atypes |
| | Advance type properties.
|
| PropertyDefn | utypedefns [] |
| | Array of Unit type property definitions.
|
| PropertyDefn | mtypedefns [] |
| | Array of Material type property definitions.
|
| PropertyDefn | ttypedefns [] |
| | Array of Terrain type property definitions.
|
| PropertyDefn | atypedefns [] |
| | Array of Advance type property definitions.
|
| TableDefn | tabledefns [] |
| | Array of table definitions.
|
| VarDefn | vardefns [] |
| | Array of variable definitions.
|
| short | canaddutype |
| | Can add Unit type flag.
|
| short | canaddmtype |
| | Can add Material type flag.
|
| short | canaddttype |
| | Can add Terrain type flag.
|
| short | canaddatype |
| | Can add Advance type flag.
|
| short | tmputype |
| | Temporary Unit type.
|
| short | tmpmtype |
| | Temporary Material type.
|
| short | tmpttype |
| | Temporary Terrain type.
|
| short | tmpatype |
| | Temporary Advance type.
|
| int | numcelltypes |
| | Number of cell types.
|
| int | numbordtypes |
| | Number of border types.
|
| int | numconntypes |
| | Number of connection types.
|
| int | numcoattypes |
| | Number of coating types.
|
| short | first_auxt_type |
| | Head of aux terrain type list.
|
| short * | next_auxt_type |
| | Next aux terrain type in list.
|
| short | first_bord_type |
| | Head of border type list.
|
| short * | next_bord_type |
| | Next border type in list.
|
| short | first_conn_type |
| | Head of connection type list.
|
| short * | next_conn_type |
| | Next connection type in list.
|
| int * | tmp_u_array |
| | Tempoary Unit type array.
|
| int * | tmp_u2_array |
| | More utype scratch space.
|
| int * | tmp_t_array |
| | Tempoary Terrain type array.
|
| int * | tmp_m_array |
| | Tempoary Material type array.
|
| int * | tmp_a_array |
| | Tempoary Advance type array.
|
| int ** | tmp_uu_array |
| | Scratch space in the likeness of a TableUU.
|
This file defines the structures that are filled in with type info, one for each type, plus the declarations for all functions and variables.