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