Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //------------------------------------------------------------------------------------------------------------
- // MechCmdr2 Global Instances of Things
- UserHeapPtr systemHeap = NULL;
- UserHeapPtr guiHeap = NULL;
- FastFile **fastFiles = NULL;
- long numFastFiles = 0;
- long maxFastFiles = 0;
- long GameDifficulty = 0;
- long gammaLevel = 0;
- extern long DigitalMasterVolume;
- extern long MusicVolume;
- extern long sfxVolume;
- extern long RadioVolume;
- extern long BettyVolume;
- long resolution = 0;
- long renderer = 0;
- long FilterState = gos_FilterNone;
- bool quitGame = FALSE;
- bool justStartMission = FALSE;
- bool gamePaused = FALSE;
- bool hasGuardBand = false;
- bool canMultiTextureDetail = false;
- bool useUnlimitedAmmo = true;
- bool useLeftRightMouseProfile = true; // if false, use old style commands
- bool justResaveAllMaps = false;
- extern bool useWaterInterestTexture;
- extern bool useShadows;
- extern bool aborted;
- bool gotBombData = false;
- TimerManagerPtr timerManager = NULL;
- bool initGameLogs = false;
- bool initNetLog = false;
- GameLog* NetLog = NULL;
- bool initCombatLog = false;
- GameLog* CombatLog = NULL;
- bool initBugLog = false;
- GameLog* BugLog = NULL;
- bool initLRMoveLog = false;
- bool KillAmbientLight = false;
- void InitDW (void);
- extern DWORD NumDevices;
- unsigned long elementHeapSize = 1024000;
- unsigned long maxElements = 2048;
- unsigned long maxGroups = 1024;
- unsigned long systemHeapSize = 8192000;
- unsigned long guiHeapSize = 1023999;
- unsigned long logisticsHeapSize = 4095999;
- unsigned long missionHeapSize = 3072000;
- unsigned long spriteDataHeapSize = 2048000;
- unsigned long spriteHeapSize = 8192000;
- unsigned long polyHeapSize = 1024000;
- extern float ProcessorSpeed;
- void __stdcall ExitGameOS();
- DWORD gosResourceHandle = 0;
- HGOSFONT3D gosFontHandle = 0;
- float gosFontScale = 1.0;
- extern HGOSFONT3D FontHandle;
- FloatHelpPtr globalFloatHelp = NULL;
- unsigned long currentFloatHelp = 0;
- float MaxMinUV = 8.0f;
- DWORD BaseVertexColor = 0x00000000; //This color is applied to all vertices in game as Brightness correction.
- enum { CPU_UNKNOWN, CPU_PENTIUM, CPU_MMX, CPU_KATMAI } Processor = CPU_PENTIUM; //Needs to be set when GameOS supports ProcessorID -- MECHCMDR2
- extern float frameRate;
- void EnterWindowMode();
- extern long MaxMoveGoalChecks;
- extern bool useSound;
- extern bool useMusic;
- long MaxResourcePoints = -1;
- bool ShowMovers = false;
- bool EnemiesGoalPlan = false;
- bool inViewMode = false;
- extern bool CullPathAreas;
- unsigned long viewObject = 0x0;
- char missionName[1024];
- extern char FileMissingString[];
- extern char CDMissingString[];
- extern char MissingTitleString[];
- char* ExceptionGameMsg = NULL;
- char buildNumber[80];
- extern long TERRAIN_TXM_SIZE;
- long ObjectTextureSize = 128;
- extern unsigned long MultiPlayCommanderId;
- extern bool useRealLOS;
- bool reloadBounds = false;
- extern long DrawDebugCells;
- extern long GameVisibleVertices;
- bool EULAShown = false;
- SoundSystem* sndSystem;
- extern bool gNoDialogs;
- //DEBUG
- #define MAX_SHAPES 0
- TG_MultiShape testShape[36];
- TG_AnimateShape testAnim[36];
- Stuff::Vector3D pos[36] =
- {
- Stuff::Vector3D(-3400.0f,3000.0f,-1.0f),
- Stuff::Vector3D(-3300.0f,2700.0f,-1.0f),
- Stuff::Vector3D(-3300.0f,2800.0f,-1.0f),
- Stuff::Vector3D(-3300.0f,2900.0f,-1.0f),
- Stuff::Vector3D(-3300.0f,3000.0f,-1.0f),
- Stuff::Vector3D(-3200.0f,2700.0f,-1.0f),
- Stuff::Vector3D(-3200.0f,2800.0f,-1.0f),
- Stuff::Vector3D(-3200.0f,2900.0f,-1.0f),
- Stuff::Vector3D(-3200.0f,3000.0f,-1.0f),
- Stuff::Vector3D(-3100.0f,2700.0f,-1.0f),
- Stuff::Vector3D(-3100.0f,2800.0f,-1.0f),
- Stuff::Vector3D(-3100.0f,2900.0f,-1.0f),
- Stuff::Vector3D(-3100.0f,3000.0f,-1.0f),
- Stuff::Vector3D(-3000.0f,2700.0f,-1.0f),
- Stuff::Vector3D(-3000.0f,2800.0f,-1.0f),
- Stuff::Vector3D(-3000.0f,2900.0f,-1.0f),
- Stuff::Vector3D(-3000.0f,3000.0f,-1.0f),
- Stuff::Vector3D(-2900.0f,2700.0f,-1.0f),
- Stuff::Vector3D(-2900.0f,2800.0f,-1.0f),
- Stuff::Vector3D(-2900.0f,2900.0f,-1.0f),
- Stuff::Vector3D(-2900.0f,3000.0f,-1.0f),
- Stuff::Vector3D(-2800.0f,2700.0f,-1.0f),
- Stuff::Vector3D(-2800.0f,2800.0f,-1.0f),
- Stuff::Vector3D(-2800.0f,2900.0f,-1.0f),
- Stuff::Vector3D(-2800.0f,3000.0f,-1.0f),
- Stuff::Vector3D(-2700.0f,2700.0f,-1.0f),
- Stuff::Vector3D(-2700.0f,2800.0f,-1.0f),
- Stuff::Vector3D(-2700.0f,2900.0f,-1.0f),
- Stuff::Vector3D(-2700.0f,3000.0f,-1.0f),
- Stuff::Vector3D(-2600.0f,2700.0f,-1.0f),
- Stuff::Vector3D(-2600.0f,2800.0f,-1.0f),
- Stuff::Vector3D(-2600.0f,2900.0f,-1.0f),
- Stuff::Vector3D(-2600.0f,3000.0f,-1.0f),
- Stuff::Vector3D(-2500.0f,2700.0f,-1.0f),
- Stuff::Vector3D(-2500.0f,2800.0f,-1.0f),
- Stuff::Vector3D(-2500.0f,2900.0f,-1.0f)
- };
- #ifdef LAB_ONLY
- long currentLineElement = 0;
- LineElement *debugLines[10000];
- #define ProfileTime(x,y) x=GetCycles();y;x=GetCycles()-x;
- extern __int64 MCTimeMultiplayerUpdate;
- #else
- #define ProfileTime(x,y) y;
- #endif
- #define MAX_KILL_AT_START 100
- long NumDisableAtStart = 0;
- long DisableAtStart[MAX_KILL_AT_START];
- OptionsScreenWrapper *optionsScreenWrapper = NULL;
- bool bInvokeOptionsScreenFlag = false;
- bool SnifferMode = false;
- gos_VERTEX *testVertex = NULL;
- WORD *indexArray = NULL;
- DWORD testTextureHandle = 0xffffffff;
- float totalTime = 0;
- DWORD numIterations = 4;
- DWORD curIteration = 0;
- DWORD curDevice = 0;
- bool isUsingSoftware = false;
- #define MAX_HARDWARE_CARDS 5
- float trisPerSecond[MAX_HARDWARE_CARDS] =
- {
- 0.0f, 0.0f, 0.0f, 0.0f, 0.0f
- };
- extern bool loadInMissionSave;
- extern char CDInstallPath[];
- extern float averageFrameRate;
- extern long currentFrameNum;
- extern float last30Frames[];
- extern bool WindowsNT;
- extern EString *g_textureCache_FilenameOfLastLoadedTexture;
- bool checkedBomb = false;
Advertisement
Add Comment
Please, Sign In to add comment