]> git.jsancho.org Git - lugaru.git/blob - Source/Constants.h
676932812d6356101e2a196a0566d5d637b7d5f3
[lugaru.git] / Source / Constants.h
1 /*
2 Copyright (C) 2003, 2010 - Wolfire Games
3
4 This file is part of Lugaru.
5
6 Lugaru is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
15 See the GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20 */
21
22 #ifndef _CONSTANTS_H_
23 #define _CONSTANTS_H_
24
25 // cat src/Constants.h | sed -e 's/#define/const int/' -e 's/ [0-9]*$/ =&;/'
26 // chew on that --Jookia
27
28 const int awardklutz = 0;
29 const int awardflawless = 1;
30 const int awardalldead = 2;
31 const int awardnodead = 3;
32 const int awardstealth = 4;
33 const int awardswordsman = 5;
34 const int awardkungfu = 6;
35 const int awardknifefighter = 7;
36 const int awardcoward = 8;
37 const int awardevasion = 9;
38 const int awardacrobat = 10;
39 const int awardlongrange = 11;
40 const int awardbrutal = 12;
41 const int awardhyper = 13;
42 const int awardaikido = 14;
43 const int awardrambo = 15;
44 const int awardfast = 16;
45 const int awardrealfast = 17;
46 const int awarddamnfast = 18;
47 const int awardstrategy = 19;
48 const int awardbojutsu = 20;
49
50 const int mapkilleveryone = 0;
51 const int mapgosomewhere = 1;
52 const int mapkillsomeone = 2;
53 const int mapkillmost = 3;
54
55 enum pathtypes {wpkeepwalking, wppause};
56
57 static const char *pathtypenames[] = {"keepwalking", "pause"};
58
59 enum editortypes {typeactive, typesitting, typesittingwall, typesleeping,
60                   typedead1, typedead2, typedead3, typedead4};
61
62 static const char *editortypenames[] = {
63   "active", "sitting", "sitting wall", "sleeping",
64   "dead1", "dead2", "dead3", "dead4"
65 };
66
67 const int tracheotomy = 1;
68 const int backstab = 2;
69 const int spinecrusher = 3;
70 const int ninja = 4;
71 const int style = 5;
72 const int cannon = 6;
73 const int aimbonus = 7;
74 const int deepimpact = 8;
75 const int touchofdeath = 9;
76 const int swordreversebonus = 10;
77 const int staffreversebonus = 11;
78 const int reverseko = 12;
79 const int solidhit = 13;
80 const int twoxcombo = 14;
81 const int threexcombo = 15;
82 const int fourxcombo = 16;
83 const int megacombo = 17;
84 const int Reversal = 18;
85 const int Stabbonus = 19;
86 const int Slicebonus = 20;
87 const int Bullseyebonus = 21;
88 const int Slashbonus = 22;
89 const int Wolfbonus = 23;
90 const int FinishedBonus = 24;
91 const int TackleBonus = 25;
92 const int AboveBonus = 26;
93
94 const int boneconnect = 0;
95 const int constraint = 1;
96 const int muscle = 2;
97
98 const int head = 0; // DO NOT CONFLICT WITH ZLIB's variable head
99 const int neck = 1;
100 const int leftshoulder = 2;
101 const int leftelbow = 3;
102 const int leftwrist = 4;
103 const int lefthand = 5;
104 const int rightshoulder = 6;
105 const int rightelbow = 7;
106 const int rightwrist = 8;
107 const int righthand = 9;
108 const int abdomen = 10;
109 const int lefthip = 11;
110 const int righthip = 12;
111 const int groin = 13;
112 const int leftknee = 14;
113 const int leftankle = 15;
114 const int leftfoot = 16;
115 const int rightknee = 17;
116 const int rightankle = 18;
117 const int rightfoot = 19;
118
119 const int max_joints = 50;
120 const int max_frames = 50;
121 const int max_muscles = 100;
122
123 const int animation_count = 140;
124
125 const int runanim = 0;
126 const int bounceidleanim = 1;
127 const int stopanim = 2;
128 const int jumpupanim = 3;
129 const int jumpdownanim = 4;
130 const int landanim = 5;
131 const int climbanim = 6;
132 const int hanganim = 7;
133 const int spinkickanim = 8;
134 const int tempanim = 9;
135 const int getupfromfrontanim = 10;
136 const int getupfrombackanim = 11;
137 const int crouchanim = 12;
138 const int sneakanim = 13;
139 const int rollanim = 14;
140 const int flipanim = 15;
141 const int spinkickreversedanim = 16;
142 const int spinkickreversalanim = 17;
143 const int lowkickanim = 18;
144 const int sweepanim = 19;
145 const int sweepreversedanim = 20;
146 const int sweepreversalanim = 21;
147 const int rabbitkickanim = 22;
148 const int rabbitkickreversedanim = 23;
149 const int rabbitkickreversalanim = 24;
150 const int upunchanim = 25;
151 const int staggerbackhighanim = 26;
152 const int upunchreversedanim = 27;
153 const int upunchreversalanim = 28;
154 const int hurtidleanim = 29;
155 const int backhandspringanim = 30;
156 const int fightidleanim = 31;
157 const int walkanim = 32;
158 const int fightsidestep = 33;
159 const int killanim = 34;
160 const int sneakattackanim = 35;
161 const int sneakattackedanim = 36;
162 const int drawrightanim = 37;
163 const int knifeslashstartanim = 38;
164 const int crouchstabanim = 39;
165 const int crouchdrawrightanim = 40;
166 const int knifefollowanim = 41;
167 const int knifefollowedanim = 42;
168 const int knifethrowanim = 43;
169 const int removeknifeanim = 44;
170 const int crouchremoveknifeanim = 45;
171 const int jumpreversedanim = 46;
172 const int jumpreversalanim = 47;
173 const int landhardanim = 48;
174 const int staggerbackhardanim = 49;
175 const int dropkickanim = 50;
176 const int winduppunchanim = 51;
177 const int winduppunchblockedanim = 52;
178 const int blockhighleftanim = 53;
179 const int blockhighleftstrikeanim = 54;
180 const int walljumpfrontanim = 55;
181 const int walljumpbackanim = 56;
182 const int walljumpleftanim = 57;
183 const int walljumprightanim = 58;
184 const int backflipanim = 59;
185 const int leftflipanim = 60;
186 const int rightflipanim = 61;
187 const int walljumprightkickanim = 62;
188 const int walljumpleftkickanim = 63;
189 const int knifefightidleanim = 64;
190 const int knifesneakattackanim = 65;
191 const int knifesneakattackedanim = 66;
192 const int swordstabanim = 67;
193 const int swordslashleftanim = 68;
194 const int swordslashrightanim = 69;
195 const int swordfightidleanim = 70;
196 const int swordsneakattackanim = 71;
197 const int swordsneakattackedanim = 72;
198 const int drawleftanim = 73;
199 const int swordslashanim = 74;
200 const int swordgroundstabanim = 75;
201 const int dodgebackanim = 76;
202 const int swordslashreversedanim = 77;
203 const int swordslashreversalanim = 78;
204 const int knifeslashreversedanim = 79;
205 const int knifeslashreversalanim = 80;
206 const int swordfightidlebothanim = 81;
207 const int swordslashparryanim = 82;
208 const int sworddisarmanim = 83;
209 const int swordslashparriedanim = 84;
210 const int wolfidle = 85;
211 const int wolffightidle = 86;
212 const int wolfswordidle = 87;
213 const int wolfhurtidle = 88;
214 const int wolfcrouchanim = 89;
215 const int wolfsneakanim = 90;
216 const int wolfrunanim = 91;
217 const int wolfstopanim = 92;
218 const int wolfclawanim = 93;
219 const int wolflandanim = 94;
220 const int wolflandhardanim = 95;
221 const int wolfrunninganim = 96;
222 const int rabbitrunninganim = 97;
223 const int frontflipanim = 98;
224 const int rabbittackleanim = 99;
225 const int rabbittacklinganim = 100;
226 const int rabbittackledfrontanim = 101;
227 const int rabbittackledbackanim = 102;
228 const int rabbittacklereversal = 103;
229 const int rabbittacklereversed = 104;
230 const int wolftackleanim = 105;
231 const int wolftacklinganim = 106;
232 const int wolftackledfrontanim = 107;
233 const int wolftackledbacanim = 108;
234 const int wolftacklereversal = 109;
235 const int wolftacklereversed = 110;
236 const int wolfslapanim = 111;
237 const int wolfbashanim = 112;
238 const int staffhitanim = 113;
239 const int staffgroundsmashanim = 114;
240 const int staffspinhitanim = 115;
241 const int staffhitreversedanim = 116;
242 const int staffhitreversalanim = 117;
243 const int staffspinhitreversedanim = 118;
244 const int staffspinhitreversalanim = 119;
245 const int sleepanim = 120;
246 const int sitanim = 121;
247 const int talkidleanim = 122;
248 const int sitwallanim = 123;
249 const int dead1anim = 124;
250 const int dead2anim = 125;
251 const int dead3anim = 126;
252 const int dead4anim = 127;
253
254 const int max_dialogues = 20;
255 const int max_dialoguelength = 20;
256
257 const int max_model_vertex = 3000;              // maximum number of vertexs
258 const int max_textured_triangle = 3000;         // maximum number of texture-filled triangles in a model
259
260 const int stream_music1desert = 0;
261 const int stream_music1grass = 1;
262 const int stream_music1snow = 2;
263 const int stream_music2 = 3;
264 const int stream_music3 = 4;
265 const int stream_music4 = 5;
266 const int stream_menumusic = 6;
267 const int stream_desertambient = 7;
268 const int stream_firesound = 8;
269 const int stream_wind = 9;
270
271 //const int music1desert = 0;
272 //const int music1grass = 1;
273 //const int music1snow = 2;
274 //const int music2 = 3;
275 //const int music3 = 4;
276 //const int music4 = 5;
277 //const int menumusic = 6;
278 //const int desertambient = 7;
279 //const int firesound = 8;
280 //const int wind = 9;
281 const int footstepsound = 10;
282 const int footstepsound2 = 11;
283 const int footstepsound3 = 12;
284 const int footstepsound4 = 13;
285 const int jumpsound = 14;
286 const int landsound = 15;
287 const int whooshsound = 16;
288 const int hawksound = 17;
289 const int landsound1 = 18;
290 const int landsound2 = 19;
291 const int breaksound = 20;
292 const int lowwhooshsound = 21;
293 const int heavyimpactsound = 22;
294 const int firestartsound = 23;
295 const int fireendsound = 24;
296 const int breaksound2 = 25;
297 const int knifedrawsound = 26;
298 const int knifesheathesound = 27;
299 const int knifeswishsound = 28;
300 const int knifeslicesound = 29;
301 const int skidsound = 30;
302 const int snowskidsound = 31;
303 const int bushrustle = 32;
304 const int midwhooshsound = 33;
305 const int highwhooshsound = 34;
306 const int movewhooshsound = 35;
307 const int thudsound = 36;
308 const int whooshhitsound = 37;
309 const int clank1sound = 38;
310 const int clank2sound = 39;
311 const int clank3sound = 40;
312 const int clank4sound = 41;
313 const int consolefailsound = 42;
314 const int consolesuccesssound = 43;
315 const int swordslicesound = 44;
316 const int metalhitsound = 45;
317 const int clawslicesound = 46;
318 const int splattersound = 47;
319 const int growlsound = 48;
320 const int growl2sound = 49;
321 const int barksound = 50;
322 const int snarlsound = 51;
323 const int snarl2sound = 52;
324 const int barkgrowlsound = 53;
325 const int bark2sound = 54;
326 const int bark3sound = 55;
327 const int rabbitattacksound = 56;
328 const int rabbitattack2sound = 57;
329 const int rabbitattack3sound = 58;
330 const int rabbitattack4sound = 59;
331 const int rabbitpainsound = 60;
332 const int rabbitpain1sound = 61;
333 const int rabbitpain2sound = 62;
334 const int rabbitchitter = 63;
335 const int rabbitchitter2 = 64;
336 const int fleshstabsound = 65;
337 const int fleshstabremovesound = 66;
338 const int swordstaffsound = 67;
339 const int staffbodysound = 68;
340 const int staffheadsound = 69;
341 const int alarmsound = 70;
342 const int staffbreaksound = 71;
343
344 const int normalmode = 0;
345 const int motionblurmode = 1;
346 const int radialzoommode = 2;
347 const int realmotionblurmode = 3;
348 const int doublevisionmode = 4;
349 const int glowmode = 5;
350
351 const int maxplayers = 10;
352 #endif