ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/cf.schmorp.de/dclient/include/deliantra/data/constants.h
Revision: 1.1
Committed: Sun Oct 17 08:14:50 2010 UTC (16 years ago) by sf-pippijn
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Log Message:
initial import

File Contents

# User Rev Content
1 sf-pippijn 1.1 #pragma once
2    
3     #define TICK 0.120 /* one server tick, not exposed through the protocol of course */
4     #define CS_QUERY_YESNO 0x1
5     #define CS_QUERY_SINGLECHAR 0x2
6     #define CS_QUERY_HIDEINPUT 0x4
7     #define CS_SAY_NORMAL 0x1
8     #define CS_SAY_SHOUT 0x2
9     #define CS_SAY_GSAY 0x4
10     #define FLOAT_MULTI 100000
11     #define FLOAT_MULTF 100000.0
12     #define CS_STAT_HP 1
13     #define CS_STAT_MAXHP 2
14     #define CS_STAT_SP 3
15     #define CS_STAT_MAXSP 4
16     #define CS_STAT_STR 5
17     #define CS_STAT_INT 6
18     #define CS_STAT_WIS 7
19     #define CS_STAT_DEX 8
20     #define CS_STAT_CON 9
21     #define CS_STAT_CHA 10
22     #define CS_STAT_EXP 11
23     #define CS_STAT_LEVEL 12
24     #define CS_STAT_WC 13
25     #define CS_STAT_AC 14
26     #define CS_STAT_DAM 15
27     #define CS_STAT_ARMOUR 16
28     #define CS_STAT_SPEED 17
29     #define CS_STAT_FOOD 18
30     #define CS_STAT_WEAP_SP 19
31     #define CS_STAT_RANGE 20
32     #define CS_STAT_TITLE 21
33     #define CS_STAT_POW 22
34     #define CS_STAT_GRACE 23
35     #define CS_STAT_MAXGRACE 24
36     #define CS_STAT_FLAGS 25
37     #define CS_STAT_WEIGHT_LIM 26
38     #define CS_STAT_EXP64 28
39     #define CS_STAT_SPELL_ATTUNE 29
40     #define CS_STAT_SPELL_REPEL 30
41     #define CS_STAT_SPELL_DENY 31
42     #define CS_STAT_RESIST_START 100
43     #define CS_STAT_RESIST_END 117
44     #define CS_STAT_RES_PHYS 100
45     #define CS_STAT_RES_MAG 101
46     #define CS_STAT_RES_FIRE 102
47     #define CS_STAT_RES_ELEC 103
48     #define CS_STAT_RES_COLD 104
49     #define CS_STAT_RES_CONF 105
50     #define CS_STAT_RES_ACID 106
51     #define CS_STAT_RES_DRAIN 107
52     #define CS_STAT_RES_GHOSTHIT 108
53     #define CS_STAT_RES_POISON 109
54     #define CS_STAT_RES_SLOW 110
55     #define CS_STAT_RES_PARA 111
56     #define CS_STAT_TURN_UNDEAD 112
57     #define CS_STAT_RES_FEAR 113
58     #define CS_STAT_RES_DEPLETE 114
59     #define CS_STAT_RES_DEATH 115
60     #define CS_STAT_RES_HOLYWORD 116
61     #define CS_STAT_RES_BLIND 117
62     #define CS_STAT_SKILLINFO 140
63     #define CS_NUM_SKILLS 50
64     #define SF_FIREON 0x01
65     #define SF_RUNON 0x02
66     #define NDI_BLACK 0
67     #define NDI_WHITE 1
68     #define NDI_NAVY 2
69     #define NDI_RED 3
70     #define NDI_ORANGE 4
71     #define NDI_BLUE 5
72     #define NDI_DK_ORANGE 6
73     #define NDI_GREEN 7
74     #define NDI_LT_GREEN 8
75     #define NDI_GREY 9
76     #define NDI_BROWN 10
77     #define NDI_GOLD 11
78     #define NDI_TAN 12
79     #define NDI_MAX_COLOR 12
80     #define NDI_COLOR_MASK 0x1f
81     #define NDI_REPLY 0x20
82     #define NDI_NOCRATE 0x40
83     #define NDI_CLEAR 0x80
84     #define a_none 0
85     #define a_readied 1
86     #define a_wielded 2
87     #define a_worn 3
88     #define a_active 4
89     #define a_applied 5
90     #define F_APPLIED 0x000F
91     #define F_LOCATION 0x00F0
92     #define F_UNPAID 0x0200
93     #define F_MAGIC 0x0400
94     #define F_CURSED 0x0800
95     #define F_DAMNED 0x1000
96     #define F_OPEN 0x2000
97     #define F_NOPICK 0x4000
98     #define F_LOCKED 0x8000
99     #define CF_FACE_NONE 0
100     #define CF_FACE_BITMAP 1
101     #define CF_FACE_XPM 2
102     #define CF_FACE_PNG 3
103     #define CF_FACE_CACHE 0x10
104     #define FACE_FLOOR 0x80
105     #define FACE_COLOR_MASK 0xf
106     #define UPD_LOCATION 0x01
107     #define UPD_FLAGS 0x02
108     #define UPD_WEIGHT 0x04
109     #define UPD_FACE 0x08
110     #define UPD_NAME 0x10
111     #define UPD_ANIM 0x20
112     #define UPD_ANIMSPEED 0x40
113     #define UPD_NROF 0x80
114     #define UPD_SP_MANA 0x01
115     #define UPD_SP_GRACE 0x02
116     #define UPD_SP_LEVEL 0x04
117     #define SOUND_NORMAL 0
118     #define SOUND_SPELL 1
119    
120     #define PICKUP_NOTHING 0x00000000
121    
122     #define PICKUP_DEBUG 0x10000000
123     #define PICKUP_INHIBIT 0x20000000
124     #define PICKUP_STOP 0x40000000
125     #define PICKUP_NEWMODE 0x80000000
126    
127     #define PICKUP_RATIO 0x0000000F
128    
129     #define PICKUP_FOOD 0x00000010
130     #define PICKUP_DRINK 0x00000020
131     #define PICKUP_VALUABLES 0x00000040
132     #define PICKUP_BOW 0x00000080
133    
134     #define PICKUP_ARROW 0x00000100
135     #define PICKUP_HELMET 0x00000200
136     #define PICKUP_SHIELD 0x00000400
137     #define PICKUP_ARMOUR 0x00000800
138    
139     #define PICKUP_BOOTS 0x00001000
140     #define PICKUP_GLOVES 0x00002000
141     #define PICKUP_CLOAK 0x00004000
142     #define PICKUP_KEY 0x00008000
143    
144     #define PICKUP_MISSILEWEAPON 0x00010000
145     #define PICKUP_ALLWEAPON 0x00020000
146     #define PICKUP_MAGICAL 0x00040000
147     #define PICKUP_POTION 0x00080000
148    
149     #define PICKUP_SPELLBOOK 0x00100000
150     #define PICKUP_SKILLSCROLL 0x00200000
151     #define PICKUP_READABLES 0x00400000
152     #define PICKUP_MAGIC_DEVICE 0x00800000
153    
154     #define PICKUP_NOT_CURSED 0x01000000
155    
156     #define PICKUP_JEWELS 0x02000000
157     #define PICKUP_FLESH 0x04000000