Crossfire Server, Trunk  R20513
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 
32 typedef struct _materialtype {
33  const char *name;
34  const char *description;
35  int material;
38  struct _materialtype *next;
40 
43 
44 #endif /* MATERIAL_H */
int8_t mod[NROFATTACKS]
Modification to resistances.
Definition: material.h:38
const char * name
Name of the material.
Definition: material.h:34
EXTERN materialtype_t * materialt
Material types.
Definition: material.h:43
int8_t save[NROFATTACKS]
Save chances for the attacks.
Definition: material.h:37
int material
What basic type(s) it is linked to.
Definition: material.h:36
struct _materialtype materialtype_t
One material type.
One material type.
Definition: material.h:33
signed char int8_t
Type definitions for fixed-size integer types.
Definition: win32.h:158
#define EXTERN
Definition: init.c:19
#define NROFATTACKS
Definition: attack.h:17
struct _materialtype * next
Next item on the list.
Definition: material.h:39
const char * description
Description, unused.
Definition: material.h:35