]> git.jsancho.org Git - lugaru.git/blob - Source/Constants.h
Make bonuses an enum
[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 mapkilleveryone = 0;
29 const int mapgosomewhere = 1;
30 const int mapkillsomeone = 2;
31 const int mapkillmost = 3;
32
33 enum pathtypes {wpkeepwalking, wppause};
34
35 static const char *pathtypenames[] = {"keepwalking", "pause"};
36
37 enum editortypes {typeactive, typesitting, typesittingwall, typesleeping,
38                   typedead1, typedead2, typedead3, typedead4};
39
40 static const char *editortypenames[] = {
41   "active", "sitting", "sitting wall", "sleeping",
42   "dead1", "dead2", "dead3", "dead4"
43 };
44
45 const int boneconnect = 0;
46 const int constraint = 1;
47 const int muscle = 2;
48
49 const int head = 0; // DO NOT CONFLICT WITH ZLIB's variable head
50 const int neck = 1;
51 const int leftshoulder = 2;
52 const int leftelbow = 3;
53 const int leftwrist = 4;
54 const int lefthand = 5;
55 const int rightshoulder = 6;
56 const int rightelbow = 7;
57 const int rightwrist = 8;
58 const int righthand = 9;
59 const int abdomen = 10;
60 const int lefthip = 11;
61 const int righthip = 12;
62 const int groin = 13;
63 const int leftknee = 14;
64 const int leftankle = 15;
65 const int leftfoot = 16;
66 const int rightknee = 17;
67 const int rightankle = 18;
68 const int rightfoot = 19;
69
70 const int max_joints = 50;
71 const int max_frames = 50;
72 const int max_muscles = 100;
73
74 const int max_dialogues = 20;
75 const int max_dialoguelength = 20;
76
77 const int max_model_vertex = 3000;              // maximum number of vertexs
78 const int max_textured_triangle = 3000;         // maximum number of texture-filled triangles in a model
79
80 const int normalmode = 0;
81 const int motionblurmode = 1;
82 const int radialzoommode = 2;
83 const int realmotionblurmode = 3;
84 const int doublevisionmode = 4;
85 const int glowmode = 5;
86
87 const int maxplayers = 10;
88 #endif