Debian Codegraph @

include/material.h

raw symbols SCIP
1 /**
2 * @file
3 * Material structures and defines.
4 */
5
6 /* #defines are needed by living.h, so they must be loaded early */
7 #ifndef MATERIAL_H
8 #define MATERIAL_H
9
10 /**
11 * @defgroup M_xxx Material types.
12 */
13 /*@{*/
14 #define M_PAPER 1 /**< Paper. */
15 #define M_IRON 2 /**< Iron. */
16 #define M_GLASS 4 /**< Glass. */
17 #define M_LEATHER 8 /**< Leather. */
18 #define M_WOOD 16 /**< Wood. */
19 #define M_ORGANIC 32 /**< General organic. */
20 #define M_STONE 64 /**< Stone. */
21 #define M_CLOTH 128 /**< Cloth. */
22 #define M_ADAMANT 256 /**< Adamant. */
23 #define M_LIQUID 512 /**< Liquid. */
24 #define M_SOFT_METAL 1024 /**< Soft metal. */
25 #define M_BONE 2048 /**< Bone. */
26 #define M_ICE 4096 /**< Ice. */
27 #define M_SPECIAL 8192 /**< When displaying names, don't show the
28 materialname. */
29 /*@}*/
30
31 /** One material type. */
32 typedef struct _materialtype {
33 const char *name; /**< Name of the material. */
34 const char *description; /**< Description, unused. */
35 int material; /**< What basic type(s) it is linked to. */
36 int8_t save[NROFATTACKS];/**< Save chances for the attacks. */
37 int8_t mod[NROFATTACKS]; /**< Modification to resistances. */
38 struct _materialtype *next; /**< Next item on the list. */
39 } materialtype_t;
40
41 /** Material types. */
42 EXTERN materialtype_t *materialt;
43
44 #endif /* MATERIAL_H */