annotate Game.h @ 68:fdacbc653945

BLV render: first image
author Nomad
date Sat, 27 Oct 2012 19:23:06 +0200
parents bcc051713d20
children
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2 #include "LightmapBuilder.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3 #include "DecalBuilder.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4 #include "ParticleEngine.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5 #include "Vis.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 #include "Mouse.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 #include "Keyboard.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 #include "IndoorCameraD3D.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 #include "CShow.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 #include "GammaControl.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 #include "stru6.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 #include "stru9.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 #include "stru10.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 #include "stru11.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 #include "stru12.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 /* 320 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 enum GAME_STATE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 GAME_STATE_0 = 0x0,
3
540178ef9b18 Main menu functionality
Nomad
parents: 0
diff changeset
25 GAME_FINISHED = 0x1,
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 GAME_STATE_2 = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 GAME_STATE_3 = 0x3,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 GAME_STATE_4 = 0x4,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 GAME_STATE_5 = 0x5,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 GAME_STATE_6 = 0x6,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 GAME_STATE_7 = 0x7,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 GAME_STATE_8 = 0x8,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 GAME_STATE_FINAL_WINDOW = 0x9,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 GAME_STATE_A = 0xA
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 /* 105 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 struct Game__StationaryLight
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 Vec3_float_ vPosition;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 Vec3_float_ vRGBColor;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 float flt_18;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50 /* 108 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 struct Game_stru0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 int field_0;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 unsigned __int8 *ptr_4;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 int field_8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 int field_C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 /* 279 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 #pragma pack(push, 1)
45
bcc051713d20 BLV render & seffects
Nomad
parents: 3
diff changeset
64 //Game_stru1
bcc051713d20 BLV render & seffects
Nomad
parents: 3
diff changeset
65 struct Game_Bloodsplat
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66 {
45
bcc051713d20 BLV render & seffects
Nomad
parents: 3
diff changeset
67 float x;
bcc051713d20 BLV render & seffects
Nomad
parents: 3
diff changeset
68 float y;
bcc051713d20 BLV render & seffects
Nomad
parents: 3
diff changeset
69 float z;
bcc051713d20 BLV render & seffects
Nomad
parents: 3
diff changeset
70 float r;
bcc051713d20 BLV render & seffects
Nomad
parents: 3
diff changeset
71 float g;
bcc051713d20 BLV render & seffects
Nomad
parents: 3
diff changeset
72 float b;
bcc051713d20 BLV render & seffects
Nomad
parents: 3
diff changeset
73 float radius;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 /* 104 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 struct Game
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81 static Game *Create();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82 static void Destroy();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 protected: Game();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85 protected: ~Game();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 public:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 void _44E904();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 bool InitializeGammaController();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 char PickMouse(float fPickDepth, unsigned int uMouseX, unsigned int uMouseY, bool bOutline, struct stru157 *a5, struct stru157 *a6);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91 bool _44EB12(bool bOutline, struct stru157 *a3, struct stru157 *a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92 void OutlineSelection();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93 signed int _44EC23(struct stru148 *a2, int *a3, signed int a4);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94 signed int _44ED0A(struct BLVFace *a2, int *a3, signed int a4);
68
fdacbc653945 BLV render: first image
Nomad
parents: 45
diff changeset
95 bool AlterGamma(struct BLVFace *pFace, unsigned int *pColor);
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96 bool _44EE30(struct ODMFace *a2, int a3);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97 bool draw_debug_outlines();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98 bool _44EEA7();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99 bool _44F07B();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100 void ToggleFlags(unsigned int uMask);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 void ToggleFlags2(unsigned int uFlag);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102 void _44F0FD();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 void PushStationaryLights(int a2);
45
bcc051713d20 BLV render & seffects
Nomad
parents: 3
diff changeset
104 void PrepareBloodsplats();
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 void Deinitialize();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 void Loop();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 void DrawParticles();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108 void Draw();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 //----- (0042EB6A) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 struct stru6 *GetStru6() {return this->pStru6Instance;}
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 //----- (0042EB71) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113 struct IndoorCameraD3D *GetIndoorCamera() {return this->pIndoorCameraD3D;}
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116 void (__thiscall ***vdestructor_ptr)(Game *, bool);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117 Game__StationaryLight pStationaryLights[25];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118 char field_2C0[1092];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119 unsigned int uNumStationaryLights;
45
bcc051713d20 BLV render & seffects
Nomad
parents: 3
diff changeset
120 Game_Bloodsplat pBloodsplats[20];
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 int field_938;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 int field_93C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 int field_940;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124 int field_944;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125 int field_948;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126 int field_94C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
127 int field_950;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
128 int field_954;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
129 int field_958;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
130 int field_95C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
131 int field_960;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
132 int field_964;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
133 int field_968;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
134 int field_96C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
135 int field_970;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
136 Mouse *pMouse;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
137 int field_978;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
138 Game_stru0 stru_97C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
139 char field_98C[1148];
45
bcc051713d20 BLV render & seffects
Nomad
parents: 3
diff changeset
140 int uNumBloodsplats;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
141 int field_E0C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
142 __int64 field_E10;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
143 int uNumStationaryLights_in_pStationaryLightsStack;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
144 unsigned int bGammaControlInitialized;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
145 unsigned int uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
146 unsigned int uFlags2;
68
fdacbc653945 BLV render: first image
Nomad
parents: 45
diff changeset
147 float fSaturation;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
148 unsigned __int64 uSomeGammaStartTime;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
149 __int64 uSomeGammaDeltaTime;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
150 ThreadWard *pThreadWardInstance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
151 ParticleEngine *pParticleEngine;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
152 Mouse *pMouseInstance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
153 LightmapBuilder *pLightmapBuilder;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
154 Vis *pVisInstance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
155 stru6 *pStru6Instance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
156 IndoorCameraD3D *pIndoorCameraD3D;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
157 stru9 *pStru9Instance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
158 stru10 *pStru10Instance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
159 stru11 *pStru11Instance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
160 stru12 *pStru12Instance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
161 CShow *pCShow;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
162 Keyboard *pKeyboardInstance;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
163 GammaController *pGammaController;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
164 int field_E74;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
165 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
166 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
167
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
168
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
169
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
170
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
171
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
172
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
173 extern Game *pGame;