1 /*
2    Copyright (C) 2004 by James Gregory
3    Part of the GalaxyHack project
4 
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License.
7    This program is distributed in the hope that it will be useful,
8    but WITHOUT ANY WARRANTY.
9 
10    See the COPYING file for more details.
11 */
12 
13 #ifndef GUARD_GlobalConstants
14 #define GUARD_GlobalConstants
15 
16 //I don't care if Microsoft thinks sprintf is deprecated
17 #pragma warning(disable:4996)
18 
19 #define WFLAG_STATIC 1
20 #define WFLAG_TILED 2
21 #define WFLAG_CANTCLOSE 4
22 #define WFLAG_INVISIBLE 8
23 
24 #define MFLAG_BOLD 1
25 #define MFLAG_CRECT 2
26 #define MFLAG_CRECTWIDTH 4
27 #define MFLAG_FADED 8
28 
29 #include <SDL.h>
30 #include <string>
31 
32 using std::string;
33 
34 const string myVersionNumber = "1.74";
35 //(James when counting A=1, B=2 etc)
36 const int standardRandomSeed = 10113518;
37 
38 typedef std::basic_string<unsigned char> ustring;
39 
40 const int screenBPP = 16;
41 
42 const int all_constant = 0x7F7F7F7F;
43 const int none_constant = 0x7F7F7F7E;
44 const int infinite_constant = 0x7F7F7F7F;
45 
46 const int maxPlayers = 4;
47 const int startingRectDim = 3000;
48 
49 const int lineGap = 18;
50 const int normalLetterWidth = 8;
51 const int boldLetterWidth = 9;
52 const int smallBorderSize = 2;
53 const int bigBorderSize = 7;
54 
55 const int nFontChars = 91;
56 const int nWeapons = 16;
57 const int nGenPictures = 43;
58 
59 const int maxWorldUpdateInterval = 400;
60 const int maxScrollInterval = 300;
61 const int maxNameLength = 20;
62 const int maxTextInputLength = 120;
63 const int standardInterval = 33;
64 
65 const int LCSWidth = 328;
66 const int LCSHeight = 72;
67 const int LCSCap = 3;
68 const int LCSFrCap = 2;
69 
70 const int MCSWidth = 512;
71 const int MCSHeight = 112;
72 const int MCSCap = 6;
73 const int MCSFrCap = 4;
74 
75 const int HCSWidth = 768;
76 const int HCSHeight = 168;
77 const int HCSCap = 9;
78 const int HCSFrCap = 6;
79 
80 const int FrWidth = 84;
81 const int FrHeight = 44;
82 const int FrSmNumber = 2;
83 
84 const int SSWidth = 8;
85 const int SSHeight = 8;
86 
87 const int csGroupSize = 1;
88 const int frGroupSize = 1;
89 const int ssGroupSize = 3;
90 
91 const int sliderWinWidth = 250;
92 const int sliderWinHeight = 80;
93 
94 const int framesPerAnimFrame = 3;
95 const int maxMessageVectorSize = 6;
96 const int launchTimePerGroup = 15;
97 
98 const int SmShBackBackTime = launchTimePerGroup * HCSCap;
99 
100 const int maxGroups = 60;
101 
102 const int csExplodeFrames = 9;
103 const int frExplodeFrames = 7;
104 const int ssExplodeFrames = 6;
105 const int explosionExplodeFrames = 4;
106 
107 const int screenMoveSpeed = 40;
108 
109 const int maxIns = 100;
110 const int maxScriptDigits = 6;
111 const int maxAIInt = 999999;
112 const int nAIVars = 10;
113 
114 const int smShGroupSpacing = 2;
115 
116 const int moveLeeway = 30;
117 const int maxAiming = 15;
118 const int staggerFrames = 10;
119 
120 const int menuItemWidth = 160;
121 
122 #endif
123