Crossfire Server, Branches 1.12  R18729
living.h
Go to the documentation of this file.
1 /*
2  * static char *rcsid_living_h =
3  * "$Id: living.h 11578 2009-02-23 22:02:27Z lalo $";
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 #ifndef LIVING_H
35 #define LIVING_H
36 
41 #define STR 0
42 #define DEX 1
43 #define CON 2
44 #define WIS 3
45 #define CHA 4
46 #define INT 5
47 #define POW 6
48 #define NUM_STATS 7
50 
51 
52 #define MAXLEVEL 115
53 
54 extern const char *const attacks[NROFATTACKS];
55 
56 extern const float cha_bonus[MAX_STAT + 1];
57 extern const int dex_bonus[MAX_STAT + 1];
58 extern const int thaco_bonus[MAX_STAT + 1];
59 extern const int turn_bonus[MAX_STAT + 1];
60 extern const int max_carry[MAX_STAT + 1];
61 extern const int dam_bonus[MAX_STAT + 1];
62 extern const int learn_spell[];
63 extern const char *const restore_msg[NUM_STATS];
64 extern const char *const statname[NUM_STATS];
65 extern const char *const short_stat_name[NUM_STATS];
66 extern const char *const lose_msg[NUM_STATS];
67 extern const float speed_bonus[MAX_STAT + 1];
68 extern const uint32 weight_limit[MAX_STAT + 1];
69 extern const int cleric_chance[MAX_STAT + 1];
70 extern const int fear_bonus[MAX_STAT + 1];
71 
77 typedef struct liv {
79  sint8 wc, ac;
88  sint64 exp;
90 } living;
91 
92 #endif /* LIVING_H */
signed char sint8
Definition: global.h:80
sint8 Int
Definition: living.h:78
sint8 ac
Definition: living.h:79
signed short sint16
Definition: global.h:72
struct liv living
const int fear_bonus[MAX_STAT+1]
Definition: living.c:170
const int learn_spell[]
Definition: living.c:154
signed int sint32
Definition: global.h:64
sint16 maxgrace
Definition: living.h:86
const int dam_bonus[MAX_STAT+1]
Definition: living.c:119
const char *const statname[NUM_STATS]
Definition: living.c:273
sint64 exp
Definition: living.h:88
Definition: living.h:77
sint16 sp
Definition: living.h:83
const int thaco_bonus[MAX_STAT+1]
Definition: living.c:124
const char *const restore_msg[NUM_STATS]
Definition: living.c:240
sint16 maxsp
Definition: living.h:84
sint8 Con
Definition: living.h:78
sint16 hp
Definition: living.h:81
sint16 maxhp
Definition: living.h:82
sint8 Wis
Definition: living.h:78
sint16 dam
Definition: living.h:87
const char *const short_stat_name[NUM_STATS]
Definition: living.c:278
const int turn_bonus[MAX_STAT+1]
Definition: living.c:165
sint8 Cha
Definition: living.h:78
const int max_carry[MAX_STAT+1]
Definition: living.c:129
sint8 luck
Definition: living.h:80
sint8 wc
Definition: living.h:79
sint8 Str
Definition: living.h:78
#define NUM_STATS
Definition: living.h:48
sint16 grace
Definition: living.h:85
const char *const lose_msg[NUM_STATS]
Definition: living.c:262
sint8 Dex
Definition: living.h:78
const uint32 weight_limit[MAX_STAT+1]
Definition: living.c:143
const int cleric_chance[MAX_STAT+1]
Definition: living.c:160
#define NROFATTACKS
Definition: attack.h:45
sint8 Pow
Definition: living.h:78
unsigned int uint32
Definition: global.h:58
const float speed_bonus[MAX_STAT+1]
Definition: living.c:109
const int dex_bonus[MAX_STAT+1]
Definition: living.c:104
const char *const attacks[NROFATTACKS]
Definition: living.c:220
const float cha_bonus[MAX_STAT+1]
Definition: living.c:94
#define MAX_STAT
Definition: define.h:78
sint32 food
Definition: living.h:89