Crossfire Server, Branches 1.12
R18729
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
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
;
66
sint8
save
[
NROFATTACKS
];
67
sint8
mod
[
NROFATTACKS
];
68
sint8
chance
;
69
sint8
difficulty
;
70
sint8
magic
;
71
sint8
damage
;
72
sint8
wc
;
73
sint8
ac
;
74
sint8
sp
;
75
int
weight
;
76
int
value
;
77
struct
_materialtype
*
next
;
78
}
materialtype_t
;
79
80
EXTERN
materialtype_t
*
materialt
;
81
82
#endif
/* MATERIAL_H */
sint8
signed char sint8
Definition:
global.h:80
_materialtype::name
const char * name
Definition:
material.h:63
materialt
EXTERN materialtype_t * materialt
Definition:
material.h:80
_materialtype::value
int value
Definition:
material.h:76
_materialtype::material
int material
Definition:
material.h:65
_materialtype::magic
sint8 magic
Definition:
material.h:70
_materialtype::weight
int weight
Definition:
material.h:75
materialtype_t
struct _materialtype materialtype_t
_materialtype
Definition:
material.h:62
_materialtype::save
sint8 save[NROFATTACKS]
Definition:
material.h:66
_materialtype::difficulty
sint8 difficulty
Definition:
material.h:69
_materialtype::wc
sint8 wc
Definition:
material.h:72
_materialtype::ac
sint8 ac
Definition:
material.h:73
EXTERN
#define EXTERN
Definition:
init.c:34
_materialtype::mod
sint8 mod[NROFATTACKS]
Definition:
material.h:67
NROFATTACKS
#define NROFATTACKS
Definition:
attack.h:45
_materialtype::next
struct _materialtype * next
Definition:
material.h:77
_materialtype::chance
sint8 chance
Definition:
material.h:68
_materialtype::damage
sint8 damage
Definition:
material.h:71
_materialtype::sp
sint8 sp
Definition:
material.h:74
_materialtype::description
const char * description
Definition:
material.h:64
crossfire-code
server
branches
1.12
include
material.h
Generated on Sun Nov 18 2018 02:40:29 for Crossfire Server, Branches 1.12 by
1.8.6