Mercurial > mm7
annotate Game.h @ 1863:97b75e6100ff
Actor::Explode cleaned up
author | Grumpy7 |
---|---|
date | Mon, 14 Oct 2013 07:40:44 +0200 |
parents | 934074e7fcc1 |
children | 30c2b575d25c |
rev | line source |
---|---|
0 | 1 #pragma once |
1016 | 2 #include "VectorTypes.h" |
0 | 3 |
4 | |
1394 | 5 #define GAME_FLAGS_1_01 0x01 |
676
ecfb1b3c9a39
BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents:
638
diff
changeset
|
6 #define GAME_FLAGS_1_DRAW_BLV_DEBUGS 0x08 |
592 | 7 #define GAME_FLAGS_2_SATURATE_LIGHTMAPS 0x02 |
8 #define GAME_FLAGS_2_ALTER_GRAVITY 0x08 | |
9 #define GAME_FLAGS_2_TARGETING_MODE 0x10 | |
10 #define GAME_FLAGS_2_DRAW_BLOODSPLATS 0x20 | |
573 | 11 |
0 | 12 |
13 | |
14 /* 320 */ | |
15 enum GAME_STATE | |
16 { | |
982 | 17 GAME_STATE_PLAYING = 0, |
981 | 18 GAME_FINISHED = 1, |
19 GAME_STATE_2 = 2, | |
1214
0d6c7ff3cddd
simplified stru193_math constructor and class definition
Grumpy7
parents:
1016
diff
changeset
|
20 GAME_STATE_LOADING_GAME = 3, |
981 | 21 GAME_STATE_NEWGAME_OUT_GAMEMENU = 4, |
22 GAME_STATE_5 = 5, | |
982 | 23 GAME_STATE_STARTING_NEW_GAME = 6, |
734 | 24 GAME_STATE_GAME_QUITTING_TO_MAIN_MENU = 7, |
981 | 25 GAME_STATE_PARTY_DIED = 8, |
26 GAME_STATE_FINAL_WINDOW = 9, | |
27 GAME_STATE_A = 10 | |
0 | 28 }; |
29 | |
30 | |
31 | |
32 /* 105 */ | |
33 #pragma pack(push, 1) | |
34 struct Game__StationaryLight | |
35 { | |
36 Vec3_float_ vPosition; | |
37 Vec3_float_ vRGBColor; | |
38 float flt_18; | |
39 }; | |
40 #pragma pack(pop) | |
41 | |
42 | |
43 /* 108 */ | |
44 #pragma pack(push, 1) | |
45 struct Game_stru0 | |
46 { | |
47 int field_0; | |
48 unsigned __int8 *ptr_4; | |
49 int field_8; | |
50 int field_C; | |
51 }; | |
52 #pragma pack(pop) | |
53 | |
54 | |
55 /* 279 */ | |
56 #pragma pack(push, 1) | |
57 //Game_stru1 | |
58 struct Game_Bloodsplat | |
59 { | |
60 float x; | |
61 float y; | |
62 float z; | |
63 float r; | |
64 float g; | |
65 float b; | |
66 float radius; | |
67 }; | |
68 #pragma pack(pop) | |
69 | |
1016 | 70 |
71 class Vis; | |
72 class LightmapBuilder; | |
73 class ParticleEngine; | |
74 class Mouse; | |
75 class Keyboard; | |
76 class ThreadWard; | |
77 class CShow; | |
78 class GammaController; | |
79 struct stru9; | |
80 struct stru10; | |
81 | |
0 | 82 /* 104 */ |
83 #pragma pack(push, 1) | |
84 struct Game | |
85 { | |
86 static Game *Create(); | |
87 static void Destroy(); | |
88 | |
89 protected: Game(); | |
522 | 90 protected: virtual ~Game(); |
0 | 91 |
1016 | 92 |
0 | 93 public: |
94 void _44E904(); | |
95 bool InitializeGammaController(); | |
194 | 96 bool PickMouse(float fPickDepth, unsigned int uMouseX, unsigned int uMouseY, bool bOutline, struct Vis_SelectionFilter *sprite_filter, struct Vis_SelectionFilter *face_filter); |
97 bool PickKeyboard(bool bOutline, struct Vis_SelectionFilter *sprite_filter, struct Vis_SelectionFilter *face_filter); | |
0 | 98 void OutlineSelection(); |
1392 | 99 signed int _44EC23(struct Polygon *a2, int *a3, signed int a4); |
0 | 100 signed int _44ED0A(struct BLVFace *a2, int *a3, signed int a4); |
638 | 101 bool AlterGamma_BLV(struct BLVFace *pFace, unsigned int *pColor); |
102 bool AlterGamma_ODM(struct ODMFace *pFace, unsigned int *pColor); | |
0 | 103 bool draw_debug_outlines(); |
104 bool _44EEA7(); | |
105 bool _44F07B(); | |
106 void ToggleFlags(unsigned int uMask); | |
107 void ToggleFlags2(unsigned int uFlag); | |
108 void _44F0FD(); | |
109 void PushStationaryLights(int a2); | |
110 void PrepareBloodsplats(); | |
111 void Deinitialize(); | |
112 void Loop(); | |
113 void DrawParticles(); | |
114 void Draw(); | |
115 | |
116 //----- (0042EB6A) -------------------------------------------------------- | |
117 struct stru6 *GetStru6() {return this->pStru6Instance;} | |
118 //----- (0042EB71) -------------------------------------------------------- | |
119 struct IndoorCameraD3D *GetIndoorCamera() {return this->pIndoorCameraD3D;} | |
120 | |
121 | |
1458 | 122 //void ( ***vdestructor_ptr)(Game *, bool); |
0 | 123 Game__StationaryLight pStationaryLights[25]; |
124 char field_2C0[1092]; | |
125 unsigned int uNumStationaryLights; | |
126 Game_Bloodsplat pBloodsplats[20]; | |
127 int field_938; | |
128 int field_93C; | |
129 int field_940; | |
130 int field_944; | |
131 int field_948; | |
132 int field_94C; | |
133 int field_950; | |
134 int field_954; | |
135 int field_958; | |
136 int field_95C; | |
137 int field_960; | |
138 int field_964; | |
139 int field_968; | |
140 int field_96C; | |
141 int field_970; | |
142 Mouse *pMouse; | |
143 int field_978; | |
144 Game_stru0 stru_97C; | |
145 char field_98C[1148]; | |
146 int uNumBloodsplats; | |
147 int field_E0C; | |
148 __int64 field_E10; | |
149 int uNumStationaryLights_in_pStationaryLightsStack; | |
150 unsigned int bGammaControlInitialized; | |
151 unsigned int uFlags; | |
152 unsigned int uFlags2; | |
153 float fSaturation; | |
154 unsigned __int64 uSomeGammaStartTime; | |
155 __int64 uSomeGammaDeltaTime; | |
1397 | 156 void/*ThreadWard*/ *pThreadWardInstance; |
0 | 157 ParticleEngine *pParticleEngine; |
158 Mouse *pMouseInstance; | |
159 LightmapBuilder *pLightmapBuilder; | |
160 Vis *pVisInstance; | |
161 stru6 *pStru6Instance; | |
162 IndoorCameraD3D *pIndoorCameraD3D; | |
163 stru9 *pStru9Instance; | |
164 stru10 *pStru10Instance; | |
1392 | 165 void/*stru11*/ *pStru11Instance; |
166 void/*stru12*/ *pStru12Instance; | |
1397 | 167 void/*CShow*/ *pCShow; |
0 | 168 Keyboard *pKeyboardInstance; |
169 GammaController *pGammaController; | |
170 int field_E74; | |
171 }; | |
172 #pragma pack(pop) | |
173 | |
174 | |
175 | |
176 | |
177 | |
178 | |
179 extern Game *pGame; |