]> git.jsancho.org Git - lugaru.git/blob - Source/Constants.h
Make animation types an enum, move to a separate file
[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 max_dialogues = 20;
124 const int max_dialoguelength = 20;
125
126 const int max_model_vertex = 3000;              // maximum number of vertexs
127 const int max_textured_triangle = 3000;         // maximum number of texture-filled triangles in a model
128
129 const int stream_music1desert = 0;
130 const int stream_music1grass = 1;
131 const int stream_music1snow = 2;
132 const int stream_music2 = 3;
133 const int stream_music3 = 4;
134 const int stream_music4 = 5;
135 const int stream_menumusic = 6;
136 const int stream_desertambient = 7;
137 const int stream_firesound = 8;
138 const int stream_wind = 9;
139
140 //const int music1desert = 0;
141 //const int music1grass = 1;
142 //const int music1snow = 2;
143 //const int music2 = 3;
144 //const int music3 = 4;
145 //const int music4 = 5;
146 //const int menumusic = 6;
147 //const int desertambient = 7;
148 //const int firesound = 8;
149 //const int wind = 9;
150 const int footstepsound = 10;
151 const int footstepsound2 = 11;
152 const int footstepsound3 = 12;
153 const int footstepsound4 = 13;
154 const int jumpsound = 14;
155 const int landsound = 15;
156 const int whooshsound = 16;
157 const int hawksound = 17;
158 const int landsound1 = 18;
159 const int landsound2 = 19;
160 const int breaksound = 20;
161 const int lowwhooshsound = 21;
162 const int heavyimpactsound = 22;
163 const int firestartsound = 23;
164 const int fireendsound = 24;
165 const int breaksound2 = 25;
166 const int knifedrawsound = 26;
167 const int knifesheathesound = 27;
168 const int knifeswishsound = 28;
169 const int knifeslicesound = 29;
170 const int skidsound = 30;
171 const int snowskidsound = 31;
172 const int bushrustle = 32;
173 const int midwhooshsound = 33;
174 const int highwhooshsound = 34;
175 const int movewhooshsound = 35;
176 const int thudsound = 36;
177 const int whooshhitsound = 37;
178 const int clank1sound = 38;
179 const int clank2sound = 39;
180 const int clank3sound = 40;
181 const int clank4sound = 41;
182 const int consolefailsound = 42;
183 const int consolesuccesssound = 43;
184 const int swordslicesound = 44;
185 const int metalhitsound = 45;
186 const int clawslicesound = 46;
187 const int splattersound = 47;
188 const int growlsound = 48;
189 const int growl2sound = 49;
190 const int barksound = 50;
191 const int snarlsound = 51;
192 const int snarl2sound = 52;
193 const int barkgrowlsound = 53;
194 const int bark2sound = 54;
195 const int bark3sound = 55;
196 const int rabbitattacksound = 56;
197 const int rabbitattack2sound = 57;
198 const int rabbitattack3sound = 58;
199 const int rabbitattack4sound = 59;
200 const int rabbitpainsound = 60;
201 const int rabbitpain1sound = 61;
202 const int rabbitpain2sound = 62;
203 const int rabbitchitter = 63;
204 const int rabbitchitter2 = 64;
205 const int fleshstabsound = 65;
206 const int fleshstabremovesound = 66;
207 const int swordstaffsound = 67;
208 const int staffbodysound = 68;
209 const int staffheadsound = 69;
210 const int alarmsound = 70;
211 const int staffbreaksound = 71;
212
213 const int normalmode = 0;
214 const int motionblurmode = 1;
215 const int radialzoommode = 2;
216 const int realmotionblurmode = 3;
217 const int doublevisionmode = 4;
218 const int glowmode = 5;
219
220 const int maxplayers = 10;
221 #endif