Guest User

Untitled

a guest
Feb 15th, 2015
2,360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.67 KB | None | 0 0
  1. //------------------------------------------------------------------------------------------------------------
  2. // MechCmdr2 Global Instances of Things
  3. UserHeapPtr systemHeap = NULL;
  4. UserHeapPtr guiHeap = NULL;
  5.  
  6. FastFile **fastFiles = NULL;
  7. long numFastFiles = 0;
  8. long maxFastFiles = 0;
  9.  
  10. long GameDifficulty = 0;
  11. long gammaLevel = 0;
  12. extern long DigitalMasterVolume;
  13. extern long MusicVolume;
  14. extern long sfxVolume;
  15. extern long RadioVolume;
  16. extern long BettyVolume;
  17. long resolution = 0;
  18. long renderer = 0;
  19. long FilterState = gos_FilterNone;
  20. bool quitGame = FALSE;
  21. bool justStartMission = FALSE;
  22. bool gamePaused = FALSE;
  23. bool hasGuardBand = false;
  24. bool canMultiTextureDetail = false;
  25. bool useUnlimitedAmmo = true;
  26. bool useLeftRightMouseProfile = true; // if false, use old style commands
  27. bool justResaveAllMaps = false;
  28. extern bool useWaterInterestTexture;
  29. extern bool useShadows;
  30.  
  31. extern bool aborted;
  32. bool gotBombData = false;
  33.  
  34. TimerManagerPtr timerManager = NULL;
  35.  
  36. bool initGameLogs = false;
  37. bool initNetLog = false;
  38. GameLog* NetLog = NULL;
  39. bool initCombatLog = false;
  40. GameLog* CombatLog = NULL;
  41. bool initBugLog = false;
  42. GameLog* BugLog = NULL;
  43. bool initLRMoveLog = false;
  44.  
  45. bool KillAmbientLight = false;
  46.  
  47. void InitDW (void);
  48.  
  49. extern DWORD NumDevices;
  50.  
  51. unsigned long elementHeapSize = 1024000;
  52. unsigned long maxElements = 2048;
  53. unsigned long maxGroups = 1024;
  54.  
  55. unsigned long systemHeapSize = 8192000;
  56. unsigned long guiHeapSize = 1023999;
  57. unsigned long logisticsHeapSize = 4095999;
  58. unsigned long missionHeapSize = 3072000;
  59. unsigned long spriteDataHeapSize = 2048000;
  60. unsigned long spriteHeapSize = 8192000;
  61. unsigned long polyHeapSize = 1024000;
  62.  
  63. extern float ProcessorSpeed;
  64. void __stdcall ExitGameOS();
  65.  
  66. DWORD gosResourceHandle = 0;
  67. HGOSFONT3D gosFontHandle = 0;
  68. float gosFontScale = 1.0;
  69. extern HGOSFONT3D FontHandle;
  70. FloatHelpPtr globalFloatHelp = NULL;
  71. unsigned long currentFloatHelp = 0;
  72. float MaxMinUV = 8.0f;
  73.  
  74. DWORD BaseVertexColor = 0x00000000; //This color is applied to all vertices in game as Brightness correction.
  75.  
  76. enum { CPU_UNKNOWN, CPU_PENTIUM, CPU_MMX, CPU_KATMAI } Processor = CPU_PENTIUM; //Needs to be set when GameOS supports ProcessorID -- MECHCMDR2
  77. extern float frameRate;
  78. void EnterWindowMode();
  79.  
  80. extern long MaxMoveGoalChecks;
  81. extern bool useSound;
  82. extern bool useMusic;
  83. long MaxResourcePoints = -1;
  84. bool ShowMovers = false;
  85. bool EnemiesGoalPlan = false;
  86. bool inViewMode = false;
  87. extern bool CullPathAreas;
  88. unsigned long viewObject = 0x0;
  89. char missionName[1024];
  90.  
  91. extern char FileMissingString[];
  92. extern char CDMissingString[];
  93. extern char MissingTitleString[];
  94.  
  95. char* ExceptionGameMsg = NULL;
  96.  
  97. char buildNumber[80];
  98.  
  99. extern long TERRAIN_TXM_SIZE;
  100. long ObjectTextureSize = 128;
  101.  
  102. extern unsigned long MultiPlayCommanderId;
  103. extern bool useRealLOS;
  104. bool reloadBounds = false;
  105.  
  106. extern long DrawDebugCells;
  107.  
  108. extern long GameVisibleVertices;
  109.  
  110. bool EULAShown = false;
  111. SoundSystem* sndSystem;
  112.  
  113. extern bool gNoDialogs;
  114.  
  115. //DEBUG
  116. #define MAX_SHAPES 0
  117. TG_MultiShape testShape[36];
  118. TG_AnimateShape testAnim[36];
  119.  
  120. Stuff::Vector3D pos[36] =
  121. {
  122. Stuff::Vector3D(-3400.0f,3000.0f,-1.0f),
  123. Stuff::Vector3D(-3300.0f,2700.0f,-1.0f),
  124. Stuff::Vector3D(-3300.0f,2800.0f,-1.0f),
  125. Stuff::Vector3D(-3300.0f,2900.0f,-1.0f),
  126. Stuff::Vector3D(-3300.0f,3000.0f,-1.0f),
  127. Stuff::Vector3D(-3200.0f,2700.0f,-1.0f),
  128. Stuff::Vector3D(-3200.0f,2800.0f,-1.0f),
  129. Stuff::Vector3D(-3200.0f,2900.0f,-1.0f),
  130. Stuff::Vector3D(-3200.0f,3000.0f,-1.0f),
  131. Stuff::Vector3D(-3100.0f,2700.0f,-1.0f),
  132. Stuff::Vector3D(-3100.0f,2800.0f,-1.0f),
  133. Stuff::Vector3D(-3100.0f,2900.0f,-1.0f),
  134. Stuff::Vector3D(-3100.0f,3000.0f,-1.0f),
  135. Stuff::Vector3D(-3000.0f,2700.0f,-1.0f),
  136. Stuff::Vector3D(-3000.0f,2800.0f,-1.0f),
  137. Stuff::Vector3D(-3000.0f,2900.0f,-1.0f),
  138. Stuff::Vector3D(-3000.0f,3000.0f,-1.0f),
  139. Stuff::Vector3D(-2900.0f,2700.0f,-1.0f),
  140. Stuff::Vector3D(-2900.0f,2800.0f,-1.0f),
  141. Stuff::Vector3D(-2900.0f,2900.0f,-1.0f),
  142. Stuff::Vector3D(-2900.0f,3000.0f,-1.0f),
  143. Stuff::Vector3D(-2800.0f,2700.0f,-1.0f),
  144. Stuff::Vector3D(-2800.0f,2800.0f,-1.0f),
  145. Stuff::Vector3D(-2800.0f,2900.0f,-1.0f),
  146. Stuff::Vector3D(-2800.0f,3000.0f,-1.0f),
  147. Stuff::Vector3D(-2700.0f,2700.0f,-1.0f),
  148. Stuff::Vector3D(-2700.0f,2800.0f,-1.0f),
  149. Stuff::Vector3D(-2700.0f,2900.0f,-1.0f),
  150. Stuff::Vector3D(-2700.0f,3000.0f,-1.0f),
  151. Stuff::Vector3D(-2600.0f,2700.0f,-1.0f),
  152. Stuff::Vector3D(-2600.0f,2800.0f,-1.0f),
  153. Stuff::Vector3D(-2600.0f,2900.0f,-1.0f),
  154. Stuff::Vector3D(-2600.0f,3000.0f,-1.0f),
  155. Stuff::Vector3D(-2500.0f,2700.0f,-1.0f),
  156. Stuff::Vector3D(-2500.0f,2800.0f,-1.0f),
  157. Stuff::Vector3D(-2500.0f,2900.0f,-1.0f)
  158. };
  159.  
  160. #ifdef LAB_ONLY
  161. long currentLineElement = 0;
  162. LineElement *debugLines[10000];
  163.  
  164. #define ProfileTime(x,y) x=GetCycles();y;x=GetCycles()-x;
  165. extern __int64 MCTimeMultiplayerUpdate;
  166. #else
  167. #define ProfileTime(x,y) y;
  168. #endif
  169.  
  170. #define MAX_KILL_AT_START 100
  171.  
  172. long NumDisableAtStart = 0;
  173. long DisableAtStart[MAX_KILL_AT_START];
  174.  
  175. OptionsScreenWrapper *optionsScreenWrapper = NULL;
  176. bool bInvokeOptionsScreenFlag = false;
  177.  
  178. bool SnifferMode = false;
  179. gos_VERTEX *testVertex = NULL;
  180. WORD *indexArray = NULL;
  181. DWORD testTextureHandle = 0xffffffff;
  182. float totalTime = 0;
  183. DWORD numIterations = 4;
  184. DWORD curIteration = 0;
  185. DWORD curDevice = 0;
  186. bool isUsingSoftware = false;
  187. #define MAX_HARDWARE_CARDS 5
  188. float trisPerSecond[MAX_HARDWARE_CARDS] =
  189. {
  190. 0.0f, 0.0f, 0.0f, 0.0f, 0.0f
  191. };
  192.  
  193. extern bool loadInMissionSave;
  194. extern char CDInstallPath[];
  195.  
  196. extern float averageFrameRate;
  197. extern long currentFrameNum;
  198. extern float last30Frames[];
  199.  
  200. extern bool WindowsNT;
  201.  
  202. extern EString *g_textureCache_FilenameOfLastLoadedTexture;
  203.  
  204. bool checkedBomb = false;
Advertisement
Add Comment
Please, Sign In to add comment