1 /* 2 * Created by Ian "Goober5000" Warfield for the FreeSpace2 Source Code Project. 3 * You may not sell or otherwise commercially exploit the source or things you 4 * create based on the source. 5 */ 6 7 8 9 #ifndef _GLOBALS_H 10 #define _GLOBALS_H 11 12 13 // from parselo.h 14 #define PATHNAME_LENGTH 192 15 #define NAME_LENGTH 32 16 #define SEXP_LENGTH 128 17 #define DATE_LENGTH 32 18 #define TIME_LENGTH 16 19 #define DATE_TIME_LENGTH 48 20 #define NOTES_LENGTH 1024 21 #define MULTITEXT_LENGTH 4096 22 #define FILESPEC_LENGTH 64 23 #define MESSAGE_LENGTH 512 24 #define TRAINING_MESSAGE_LENGTH 512 25 #define CONDITION_LENGTH 64 26 27 // from missionparse.h 28 #define MISSION_DESC_LENGTH 512 29 30 // from player.h 31 #define CALLSIGN_LEN 28 // shortened from 32 to allow .plr to be attached without exceeding MAX_FILENAME_LEN 32 #define SHORT_CALLSIGN_PIXEL_W 80 // max width of short_callsign[] in pixels 33 34 #define MAX_IFFS 10 35 36 // from ship.h 37 #define MAX_SHIPS 400 // max number of ship instances there can be.DTP; bumped from 200 to 400 38 #define SHIPS_LIMIT 400 // what MAX_SHIPS will be at release time (for error checking in debug mode); dtp Bumped from 200 to 400 39 40 // from missionparse.h and then redefined to the same value in sexp.h 41 #define TOKEN_LENGTH 32 42 // **************************************************************** 43 // DO NOT CHANGE THIS - IT WILL LIKELY BREAK FREESPACE2 PXO SUPPORT 44 // TALK TO DAVE B FIRST 45 // **************************************************************** 46 #define MAX_SHIP_CLASSES_MULTI 130 47 48 #define MAX_SHIP_CLASSES 250 49 50 #define MAX_WINGS 75 51 52 #define MAX_SHIPS_PER_WING 6 53 54 #define MAX_STARTING_WINGS 3 // number of wings player can start a mission with 55 #define MAX_SQUADRON_WINGS 5 // number of wings in squadron (displayed on HUD) 56 57 #define MAX_TVT_TEAMS 2 // number of teams in a TVT game 58 #define MAX_TVT_WINGS_PER_TEAM 1 // number of wings per team in a TVT game 59 #define MAX_TVT_WINGS MAX_TVT_TEAMS * MAX_TVT_WINGS_PER_TEAM // number of wings in a TVT game 60 61 // from model.h 62 #define MAX_SHIP_PRIMARY_BANKS 3 63 #define MAX_SHIP_SECONDARY_BANKS 4 64 #define MAX_SHIP_WEAPONS (MAX_SHIP_PRIMARY_BANKS+MAX_SHIP_SECONDARY_BANKS) 65 66 // Goober5000 - moved from hudescort.cpp 67 // size of complete escort list, including all those wanting to get onto list but without space 68 #define MAX_COMPLETE_ESCORT_LIST 20 69 70 // from weapon.h 71 #define MAX_WEAPONS 2000 72 73 #define MAX_WEAPON_TYPES 300 74 75 76 // from model.h 77 78 #define MAX_MODEL_TEXTURES 64 79 80 #define MAX_POLYGON_MODELS 300 81 82 // object.h 83 #define MAX_OBJECTS 3500 84 85 // from lighting.cpp 86 #define MAX_LIGHTS 256 87 88 // from weapon.h (and beam.h) 89 #define MAX_BEAM_SECTIONS 5 90 91 #endif // _GLOBALS_H 92