Mercurial > mm7
annotate Game.h @ 734:2f4e33c1ed24
stru154
author | Nomad |
---|---|
date | Fri, 22 Mar 2013 16:16:40 +0200 |
parents | ecfb1b3c9a39 |
children | a6ef7125f6e4 |
rev | line source |
---|---|
0 | 1 #pragma once |
2 #include "LightmapBuilder.h" | |
3 #include "DecalBuilder.h" | |
4 #include "ParticleEngine.h" | |
5 #include "Vis.h" | |
6 #include "Mouse.h" | |
7 #include "Keyboard.h" | |
8 #include "IndoorCameraD3D.h" | |
9 #include "CShow.h" | |
10 #include "GammaControl.h" | |
11 #include "stru6.h" | |
12 #include "stru9.h" | |
13 #include "stru10.h" | |
14 #include "stru11.h" | |
15 #include "stru12.h" | |
16 | |
17 | |
18 | |
676
ecfb1b3c9a39
BLV: when standing right on the portal (orange wall) everything looks fine
Nomad
parents:
638
diff
changeset
|
19 #define GAME_FLAGS_1_DRAW_BLV_DEBUGS 0x08 |
592 | 20 #define GAME_FLAGS_2_SATURATE_LIGHTMAPS 0x02 |
21 #define GAME_FLAGS_2_ALTER_GRAVITY 0x08 | |
22 #define GAME_FLAGS_2_TARGETING_MODE 0x10 | |
23 #define GAME_FLAGS_2_DRAW_BLOODSPLATS 0x20 | |
573 | 24 |
0 | 25 |
26 | |
27 /* 320 */ | |
28 enum GAME_STATE | |
29 { | |
30 GAME_STATE_0 = 0x0, | |
31 GAME_FINISHED = 0x1, | |
32 GAME_STATE_2 = 0x2, | |
33 GAME_STATE_3 = 0x3, | |
101 | 34 GAME_STATE_NEWGAME_OUT_GAMEMENU = 0x4, |
0 | 35 GAME_STATE_5 = 0x5, |
36 GAME_STATE_6 = 0x6, | |
734 | 37 GAME_STATE_GAME_QUITTING_TO_MAIN_MENU = 7, |
0 | 38 GAME_STATE_8 = 0x8, |
39 GAME_STATE_FINAL_WINDOW = 0x9, | |
40 GAME_STATE_A = 0xA | |
41 }; | |
42 | |
43 | |
44 | |
45 /* 105 */ | |
46 #pragma pack(push, 1) | |
47 struct Game__StationaryLight | |
48 { | |
49 Vec3_float_ vPosition; | |
50 Vec3_float_ vRGBColor; | |
51 float flt_18; | |
52 }; | |
53 #pragma pack(pop) | |
54 | |
55 | |
56 /* 108 */ | |
57 #pragma pack(push, 1) | |
58 struct Game_stru0 | |
59 { | |
60 int field_0; | |
61 unsigned __int8 *ptr_4; | |
62 int field_8; | |
63 int field_C; | |
64 }; | |
65 #pragma pack(pop) | |
66 | |
67 | |
68 /* 279 */ | |
69 #pragma pack(push, 1) | |
70 //Game_stru1 | |
71 struct Game_Bloodsplat | |
72 { | |
73 float x; | |
74 float y; | |
75 float z; | |
76 float r; | |
77 float g; | |
78 float b; | |
79 float radius; | |
80 }; | |
81 #pragma pack(pop) | |
82 | |
83 /* 104 */ | |
84 #pragma pack(push, 1) | |
85 struct Game | |
86 { | |
87 static Game *Create(); | |
88 static void Destroy(); | |
89 | |
90 protected: Game(); | |
522 | 91 protected: virtual ~Game(); |
0 | 92 |
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(); |
99 signed int _44EC23(struct stru148 *a2, int *a3, signed int a4); | |
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 | |
522 | 122 //void (__thiscall ***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; | |
156 ThreadWard *pThreadWardInstance; | |
157 ParticleEngine *pParticleEngine; | |
158 Mouse *pMouseInstance; | |
159 LightmapBuilder *pLightmapBuilder; | |
160 Vis *pVisInstance; | |
161 stru6 *pStru6Instance; | |
162 IndoorCameraD3D *pIndoorCameraD3D; | |
163 stru9 *pStru9Instance; | |
164 stru10 *pStru10Instance; | |
165 stru11 *pStru11Instance; | |
166 stru12 *pStru12Instance; | |
167 CShow *pCShow; | |
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; |