Global Memory Table of Content Intro Class Tree 
Previous Next

Defines of global imporance

All over the source code you will find very important limitting constants.
Some are defined in context with enumerations in C++ other are definitions in th classical c style #define.

typedef FalconPrivateList*   F4PFList;
typedef FalconPrivateOrderedList* F4POList;
typedef VuListIterator*    F4LIt;
 
typedef ulong CampaignTime;
#define CampaignSeconds   1000
#define CampaignMinutes  60000
#define CampaignHours  3600000
#define CampaignDay   86400000

#define INFINITE_TIME  4294967295  // Max value of CampaignTime
#define VEHICLES_PER_UNIT 16
#define FEATURES_PER_OBJ 32
#define MAXIMUM_ROLES  16
#define MAXIMUM_OBJTYPES 32
#define MAXIMUM_WEAPTYPES 220
#define MAX_UNIT_CHILDREN 5
#define MAX_FEAT_DEPEND  5
//these constants are of importance to falcon
#define MAX_NUMBER_OF_OBJECTIVES  4000
#define MAX_NUMBER_OF_UNITS    2000 // Max # of NON volitile units only
#define MAX_NUMBER_OF_VOLITILE_UNITS 8000
#define MAX_CAMP_ENTITIES    (MAX_NUMBER_OF_OBJECTIVES+MAX_NUMBER_OF_UNITS+MAX_NUMBER_OF_VOLITILE_UNITS)

#define MONOMODE_OFF  0
#define MONOMODE_TEXT  1
#define MONOMODE_MAP  2

 

#define FALCON_ORIGIN_LAT 33.775918333F //33 degrees, 45 minutes, 33.06 secs
#define FALCON_ORIGIN_LONG 119.1148778F //119 degrees, 6 minutes, 53.56
#define TOTAL_CPCALLBACK_SLOTS  150
#define TOTAL_BUTTONCALLBACK_SLOTS      111
static const int MAX_STATE_STACK_DEPTH                          = 8;    // Arbitrary
static const int MAX_SLOT_AND_DYNAMIC_PER_OBJECT        = 64;   // Arbitrary
static const int MAX_TEXTURES_PER_OBJECT                        = 128;  // Arbitrary
static const int MAX_CLIP_PLANES                                        = 6;    // 5 view volume, plus 1 extra
static const int MAX_VERTS_PER_POLYGON                          = 32;   // Arbitrary
static const int MAX_VERT_POOL_SIZE                                     = 4096; // Arbitrary
static const int MAX_VERTS_PER_CLIPPED_POLYGON          = MAX_VERTS_PER_POLYGON + MAX_CLIP_PLANES;
static const int MAX_CLIP_VERTS                                         = 2 * MAX_CLIP_PLANES;
static const int MAX_VERTS_PER_OBJECT_TREE                      = MAX_VERT_POOL_SIZE - MAX_VERTS_PER_POLYGON - MAX_CLIP_VERTS;