Crossfire Server, Trunk
material.h
Go to the documentation of this file.
1 
6 /* #defines are needed by living.h, so they must be loaded early */
7 #ifndef MATERIAL_H
8 #define MATERIAL_H
9 
14 #define M_PAPER 1
15 #define M_IRON 2
16 #define M_GLASS 4
17 #define M_LEATHER 8
18 #define M_WOOD 16
19 #define M_ORGANIC 32
20 #define M_STONE 64
21 #define M_CLOTH 128
22 #define M_ADAMANT 256
23 #define M_LIQUID 512
24 #define M_SOFT_METAL 1024
25 #define M_BONE 2048
26 #define M_ICE 4096
27 #define M_SPECIAL 8192
30 
31 
33  const char *name;
34  const char *description;
35  int material;
36  int8_t save[NROFATTACKS];
37  int8_t mod[NROFATTACKS];
38 };
39 
41 EXTERN std::vector<materialtype_t *> materials;
42 
43 #endif /* MATERIAL_H */
materialtype_t::mod
int8_t mod[NROFATTACKS]
Definition: material.h:37
materials
EXTERN std::vector< materialtype_t * > materials
Definition: material.h:41
NROFATTACKS
#define NROFATTACKS
Definition: attack.h:17
materialtype_t::material
int material
Definition: material.h:35
materialtype_t::name
const char * name
Definition: material.h:33
materialtype_t::save
int8_t save[NROFATTACKS]
Definition: material.h:36
EXTERN
#define EXTERN
Definition: global.h:15
materialtype_t::description
const char * description
Definition: material.h:34
materialtype_t
Definition: material.h:32