source: golgotha/src/golg/g1_limits.hh

Last change on this file was 80, checked in by Sam Hocevar, 12 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 2.1 KB
Line 
1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#ifndef G1_LIMITS_HH
10#define G1_LIMITS_HH
11#include "math/num_type.hh"
12
13enum { G1_MAX_OBJECTS_BITS=12 };
14enum { G1_MAX_OBJECTS=1<<G1_MAX_OBJECTS_BITS };     // in a level at any time
15enum { G1_MAX_MODELS=300 };
16enum { G1_MAX_OBJECT_TYPES=400 };
17enum { G1_MAX_TILES=500 };   // maximum building & ground "types" defined for game
18enum { G1_MAX_SPRITES=300 } ;
19enum { G1_MAX_PLAYERS=5 };      // maximum number of players, including the no_player team
20// teams a player can be on, for single player game, the player is always on the ALLY team
21enum g1_team_type { G1_ALLY, G1_ENEMY, G1_MAX_TEAMS };
22enum { G1_MAX_SOUNDS=20 };
23enum { G1_MAX_WAYPOINTS=200 };  // maximum number of way points in a path
24enum { G1_MAX_CELL_FUNCTIONS=30 }; // maximum number of functions that can be assigned to cells
25enum { G1_MAX_UNIT_PADS_PER_PLAYER=8 };
26enum { G1_MAX_POLY_LIST_POLYS=256}; //max number of polygons in the poly list
27enum { G1_MAX_TEXTURES=1500 };      // total game textures total
28enum { G1_MAX_ANIMATIONS=50 };     // total animating textures total
29enum { G1_CHROMA_COLOR=(254<<16)|(2<<8)|166 } ;
30enum { G1_GRADE_LEVELS=4 };       // number of grade levels for vehicles
31enum { G1_CRITICALS_PER_CELL=4 }; // number of nearest critical point references in a cell
32enum { G1_MAX_MAPS=1 };            // maximum maps per level, will require some change for more
33enum { G1_MAX_TAKEOVERPADS=100 };  // maximum number of takeover pads in a map
34enum { G1_BUILD_PAD_W=6,           // size of construction pad
35       G1_BUILD_PAD_H=6 };
36
37enum { G1_MIN_MAP_DIMENSION=10,
38       G1_MAX_MAP_DIMENSION=150 };
39
40#endif
Note: See TracBrowser for help on using the repository browser.