|
Defines |
#define | OFFS(TYPE, FLD) (offsetof(TYPE, FLD)) |
#define | DEF_UPROP_I(NAME, FNAME, DOC, SLOT, LO, DFLT, HI) { NAME, FNAME, NULL, NULL, OFFS(Utype, SLOT), DOC, DFLT, NULL, LO, HI }, |
#define | DEF_UPROP_S(NAME, FNAME, DOC, SLOT, DFLT) { NAME, NULL, FNAME, NULL, OFFS(Utype, SLOT), DOC, 0, DFLT, 0, 0 }, |
#define | DEF_UPROP_L(NAME, FNAME, DOC, SLOT) { NAME, NULL, NULL, FNAME, OFFS(Utype, SLOT), DOC, 0, NULL, 0, 0 }, |
#define | DEF_MPROP_I(NAME, FNAME, DOC, SLOT, LO, DFLT, HI) { NAME, FNAME, NULL, NULL, OFFS(Mtype, SLOT), DOC, DFLT, NULL, LO, HI }, |
#define | DEF_MPROP_S(NAME, FNAME, DOC, SLOT, DFLT) { NAME, NULL, FNAME, NULL, OFFS(Mtype, SLOT), DOC, 0, DFLT, 0, 0 }, |
#define | DEF_MPROP_L(NAME, FNAME, DOC, SLOT) { NAME, NULL, NULL, FNAME, OFFS(Mtype, SLOT), DOC, 0, NULL, 0, 0 }, |
#define | DEF_TPROP_I(NAME, FNAME, DOC, SLOT, LO, DFLT, HI) { NAME, FNAME, NULL, NULL, OFFS(Ttype, SLOT), DOC, DFLT, NULL, LO, HI }, |
#define | DEF_TPROP_S(NAME, FNAME, DOC, SLOT, DFLT) { NAME, NULL, FNAME, NULL, OFFS(Ttype, SLOT), DOC, 0, DFLT, 0, 0 }, |
#define | DEF_TPROP_L(NAME, FNAME, DOC, SLOT) { NAME, NULL, NULL, FNAME, OFFS(Ttype, SLOT), DOC, 0, NULL, 0, 0 }, |
#define | DEF_APROP_I(NAME, FNAME, DOC, SLOT, LO, DFLT, HI) { NAME, FNAME, NULL, NULL, OFFS(Atype, SLOT), DOC, DFLT, NULL, LO, HI }, |
#define | DEF_APROP_S(NAME, FNAME, DOC, SLOT, DFLT) { NAME, NULL, FNAME, NULL, OFFS(Atype, SLOT), DOC, 0, DFLT, 0, 0 }, |
#define | DEF_APROP_L(NAME, FNAME, DOC, SLOT) { NAME, NULL, NULL, FNAME, OFFS(Atype, SLOT), DOC, 0, NULL, 0, 0 }, |
#define | DEF_UPROP_I(name, FNAME, doc, SLOT, lo, dflt, hi) int FNAME(int u) { checku(u); return utypes[u].SLOT; } |
#define | DEF_UPROP_S(name, FNAME, doc, SLOT, dflt) char *FNAME(int u) { checku(u); return utypes[u].SLOT; } |
#define | DEF_UPROP_L(name, FNAME, doc, SLOT) Obj *FNAME(int u) { checku(u); return utypes[u].SLOT; } |
#define | DEF_MPROP_I(name, FNAME, doc, SLOT, lo, dflt, hi) int FNAME(int m) { checkm(m); return mtypes[m].SLOT; } |
#define | DEF_MPROP_S(name, FNAME, doc, SLOT, dflt) char *FNAME(int m) { checkm(m); return mtypes[m].SLOT; } |
#define | DEF_MPROP_L(name, FNAME, doc, SLOT) Obj *FNAME(int m) { checkm(m); return mtypes[m].SLOT; } |
#define | DEF_TPROP_I(name, FNAME, doc, SLOT, lo, dflt, hi) int FNAME(int t) { checkt(t); return ttypes[t].SLOT; } |
#define | DEF_TPROP_S(name, FNAME, doc, SLOT, dflt) char *FNAME(int t) { checkt(t); return ttypes[t].SLOT; } |
#define | DEF_TPROP_L(name, FNAME, doc, SLOT) Obj *FNAME(int t) { checkt(t); return ttypes[t].SLOT; } |
#define | DEF_APROP_I(name, FNAME, doc, SLOT, lo, dflt, hi) int FNAME(int a) { checka(a); return atypes[a].SLOT; } |
#define | DEF_APROP_S(name, FNAME, doc, SLOT, dflt) char *FNAME(int a) { checka(a); return atypes[a].SLOT; } |
#define | DEF_APROP_L(name, FNAME, doc, SLOT) Obj *FNAME(int a) { checka(a); return atypes[a].SLOT; } |
Variables |
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.
|