annotate Game.h @ 1122:45a8862d8b6e

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