Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

tables.c File Reference

#include "config.h"
#include "misc.h"
#include "lisp.h"
#include "game.h"
#include "table.def"

Include dependency graph for tables.c:

Include dependency graph

Defines

#define DEF_UU_TABLE(NAME, FNAME, DOC, TABLE, CNST, LO, DFLT, HI, VALTYPE)   { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, UTYP, UTYP, VALTYPE },
#define DEF_UM_TABLE(NAME, FNAME, DOC, TABLE, CNST, LO, DFLT, HI, VALTYPE)   { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, UTYP, MTYP, VALTYPE },
#define DEF_UT_TABLE(NAME, FNAME, DOC, TABLE, CNST, LO, DFLT, HI, VALTYPE)   { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, UTYP, TTYP, VALTYPE },
#define DEF_TM_TABLE(NAME, FNAME, DOC, TABLE, CNST, LO, DFLT, HI, VALTYPE)   { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, TTYP, MTYP, VALTYPE },
#define DEF_TT_TABLE(NAME, FNAME, DOC, TABLE, CNST, LO, DFLT, HI, VALTYPE)   { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, TTYP, TTYP, VALTYPE },
#define DEF_MM_TABLE(NAME, FNAME, DOC, TABLE, CNST, LO, DFLT, HI, VALTYPE)   { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, MTYP, MTYP, VALTYPE },
#define DEF_UA_TABLE(NAME, FNAME, DOC, TABLE, CNST, LO, DFLT, HI, VALTYPE)   { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, UTYP, ATYP, VALTYPE },
#define DEF_AM_TABLE(NAME, FNAME, DOC, TABLE, CNST, LO, DFLT, HI, VALTYPE)   { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, ATYP, MTYP, VALTYPE },
#define DEF_AA_TABLE(NAME, FNAME, DOC, TABLE, CNST, LO, DFLT, HI, VALTYPE)   { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, ATYP, ATYP, VALTYPE },
#define DEF_UU_TABLE(name, FNAME, doc, TABLE, CNST, lo, DFLT, hi, valtype)
#define DEF_UM_TABLE(name, FNAME, doc, TABLE, CNST, lo, DFLT, hi, valtype)
#define DEF_UT_TABLE(name, FNAME, doc, TABLE, CNST, lo, DFLT, hi, valtype)
#define DEF_TM_TABLE(name, FNAME, doc, TABLE, CNST, lo, DFLT, hi, valtype)
#define DEF_TT_TABLE(name, FNAME, doc, TABLE, CNST, lo, DFLT, hi, valtype)
#define DEF_MM_TABLE(name, FNAME, doc, TABLE, CNST, lo, DFLT, hi, valtype)
#define DEF_UA_TABLE(name, FNAME, doc, TABLE, CNST, lo, DFLT, hi, valtype)
#define DEF_AM_TABLE(name, FNAME, doc, TABLE, CNST, lo, DFLT, hi, valtype)
#define DEF_AA_TABLE(name, FNAME, doc, TABLE, CNST, lo, DFLT, hi, valtype)

Variables

TableDefn tabledefns []
 Array of table definitions.


Define Documentation

#define DEF_AA_TABLE name,
FNAME,
doc,
TABLE,
CNST,
lo,
DFLT,
hi,
valtype   ) 
 

Value:

short *TABLE = NULL, CNST = DFLT;  \
  int FNAME(int a1, int a2) \
    { checka(a1);  checka(a2);  \
      return (TABLE ? TABLE[numatypes*(a1)+(a2)] : CNST); }

#define DEF_AA_TABLE NAME,
FNAME,
DOC,
TABLE,
CNST,
LO,
DFLT,
HI,
VALTYPE   )     { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, ATYP, ATYP, VALTYPE },
 

#define DEF_AM_TABLE name,
FNAME,
doc,
TABLE,
CNST,
lo,
DFLT,
hi,
valtype   ) 
 

Value:

short *TABLE = NULL, CNST = DFLT;  \
  int FNAME(int a, int m) \
    { checka(a);  checkm(m);  \
      return (TABLE ? TABLE[nummtypes*(a)+(m)] : CNST); }

#define DEF_AM_TABLE NAME,
FNAME,
DOC,
TABLE,
CNST,
LO,
DFLT,
HI,
VALTYPE   )     { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, ATYP, MTYP, VALTYPE },
 

#define DEF_MM_TABLE name,
FNAME,
doc,
TABLE,
CNST,
lo,
DFLT,
hi,
valtype   ) 
 

Value:

short *TABLE = NULL, CNST = DFLT;  \
  int FNAME(int m1, int m2) \
    { checkm(m1);  checkm(m2);  \
      return (TABLE ? TABLE[nummtypes*(m1)+(m2)] : CNST); }

#define DEF_MM_TABLE NAME,
FNAME,
DOC,
TABLE,
CNST,
LO,
DFLT,
HI,
VALTYPE   )     { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, MTYP, MTYP, VALTYPE },
 

#define DEF_TM_TABLE name,
FNAME,
doc,
TABLE,
CNST,
lo,
DFLT,
hi,
valtype   ) 
 

Value:

short *TABLE = NULL, CNST = DFLT;  \
  int FNAME(int t, int m) \
    { checkt(t);  checkm(m);  \
      return (TABLE ? TABLE[nummtypes*(t)+(m)] : CNST); }

#define DEF_TM_TABLE NAME,
FNAME,
DOC,
TABLE,
CNST,
LO,
DFLT,
HI,
VALTYPE   )     { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, TTYP, MTYP, VALTYPE },
 

#define DEF_TT_TABLE name,
FNAME,
doc,
TABLE,
CNST,
lo,
DFLT,
hi,
valtype   ) 
 

Value:

short *TABLE = NULL, CNST = DFLT;  \
  int FNAME(int t1, int t2) \
    { checkt(t1);  checkt(t2);  \
      return (TABLE ? TABLE[numttypes*(t1)+(t2)] : CNST); }

#define DEF_TT_TABLE NAME,
FNAME,
DOC,
TABLE,
CNST,
LO,
DFLT,
HI,
VALTYPE   )     { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, TTYP, TTYP, VALTYPE },
 

#define DEF_UA_TABLE name,
FNAME,
doc,
TABLE,
CNST,
lo,
DFLT,
hi,
valtype   ) 
 

Value:

short *TABLE = NULL, CNST = DFLT;  \
  int FNAME(int u, int a) \
    { checku(u);  checka(a);  \
      return (TABLE ? TABLE[numatypes*(u)+(a)] : CNST); }

#define DEF_UA_TABLE NAME,
FNAME,
DOC,
TABLE,
CNST,
LO,
DFLT,
HI,
VALTYPE   )     { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, UTYP, ATYP, VALTYPE },
 

#define DEF_UM_TABLE name,
FNAME,
doc,
TABLE,
CNST,
lo,
DFLT,
hi,
valtype   ) 
 

Value:

short *TABLE = NULL, CNST = DFLT;  \
  int FNAME(int u, int m) \
    { checku(u);  checkm(m);  \
      return (TABLE ? TABLE[nummtypes*(u)+(m)] : CNST); }

#define DEF_UM_TABLE NAME,
FNAME,
DOC,
TABLE,
CNST,
LO,
DFLT,
HI,
VALTYPE   )     { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, UTYP, MTYP, VALTYPE },
 

#define DEF_UT_TABLE name,
FNAME,
doc,
TABLE,
CNST,
lo,
DFLT,
hi,
valtype   ) 
 

Value:

short *TABLE = NULL, CNST = DFLT;  \
  int FNAME(int u, int t) \
    { checku(u);  checkt(t);  \
      return (TABLE ? TABLE[numttypes*(u)+(t)] : CNST); }

#define DEF_UT_TABLE NAME,
FNAME,
DOC,
TABLE,
CNST,
LO,
DFLT,
HI,
VALTYPE   )     { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, UTYP, TTYP, VALTYPE },
 

#define DEF_UU_TABLE name,
FNAME,
doc,
TABLE,
CNST,
lo,
DFLT,
hi,
valtype   ) 
 

Value:

short *TABLE = NULL, CNST = DFLT;  \
  int FNAME(int u1, int u2) \
    { checku(u1);  checku(u2);  \
      return (TABLE ? TABLE[numutypes*(u1)+(u2)] : CNST); }

#define DEF_UU_TABLE NAME,
FNAME,
DOC,
TABLE,
CNST,
LO,
DFLT,
HI,
VALTYPE   )     { NAME, FNAME, DOC, &TABLE, DFLT, LO, HI, UTYP, UTYP, VALTYPE },
 


Variable Documentation

TableDefn tabledefns[]
 

Array of table definitions.


Generated on Sat Sep 17 10:29:37 2005 for XconqKernel by doxygen 1.3.6