Crossfire Server, Branches 1.12  R18729
material.h
Go to the documentation of this file.
1 /*
2  * static char *rcsid_material_h =
3  * "$Id: material.h 9313 2008-06-13 12:05:26Z anmaster $";
4  */
5 
6 /*
7  CrossFire, A Multiplayer game for X-windows
8 
9  Copyright (C) 2002 Mark Wedel & Crossfire Development Team
10  Copyright (C) 1992 Frank Tore Johansen
11 
12  This program is free software; you can redistribute it and/or modify
13  it under the terms of the GNU General Public License as published by
14  the Free Software Foundation; either version 2 of the License, or
15  (at your option) any later version.
16 
17  This program is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  GNU General Public License for more details.
21 
22  You should have received a copy of the GNU General Public License
23  along with this program; if not, write to the Free Software
24  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 
26  The authors can be reached via e-mail at crossfire-devel@real-time.com
27 */
28 
34 /* #defines are needed by living.h, so they must be loaded early */
35 #ifndef MATERIAL_H
36 #define MATERIAL_H
37 
42 #define NROFMATERIALS 13
43 
44 #define M_PAPER 1
45 #define M_IRON 2
46 #define M_GLASS 4
47 #define M_LEATHER 8
48 #define M_WOOD 16
49 #define M_ORGANIC 32
50 #define M_STONE 64
51 #define M_CLOTH 128
52 #define M_ADAMANT 256
53 #define M_LIQUID 512
54 #define M_SOFT_METAL 1024
55 #define M_BONE 2048
56 #define M_ICE 4096
57 #define M_SPECIAL 8192 /* when displaying names, don't show the
58  materialname */
59 
62 typedef struct _materialtype {
63  const char *name;
64  const char *description;
65  int material;
75  int weight;
76  int value;
79 
81 
82 #endif /* MATERIAL_H */
signed char sint8
Definition: global.h:80
const char * name
Definition: material.h:63
EXTERN materialtype_t * materialt
Definition: material.h:80
int material
Definition: material.h:65
sint8 magic
Definition: material.h:70
struct _materialtype materialtype_t
sint8 save[NROFATTACKS]
Definition: material.h:66
sint8 difficulty
Definition: material.h:69
sint8 wc
Definition: material.h:72
sint8 ac
Definition: material.h:73
#define EXTERN
Definition: init.c:34
sint8 mod[NROFATTACKS]
Definition: material.h:67
#define NROFATTACKS
Definition: attack.h:45
struct _materialtype * next
Definition: material.h:77
sint8 chance
Definition: material.h:68
sint8 damage
Definition: material.h:71
sint8 sp
Definition: material.h:74
const char * description
Definition: material.h:64