annotate Engine/Engine.h @ 2575:a76d408c5132 tip

DrawTranslucent -> DrawTextureGrayShade Removed old texture drawing stuff
author a.parshin
date Wed, 09 Mar 2016 01:39:52 +0200
parents dd36326a9994
children
rev   line source
2541
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
1 #pragma once
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
2 #include "Engine/ErrorHandling.h"
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
3 #include "Engine/Log.h"
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
4 #include "Engine/MM7.h"
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
5 #include "Engine/mm7_data.h"
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
6
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
7 void SetCurrentMenuID(enum MENU_STATE);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
8 enum MENU_STATE GetCurrentMenuID();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
9
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
10 void Engine_DeinitializeAndTerminate(int exitCode);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
11
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
12
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
13 #pragma once
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
14 #include "Engine/VectorTypes.h"
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
15
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
16 #include "OSAPI.h"
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
17
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
18 #include "Engine/MapInfo.h"
2574
dd36326a9994 More texture refactoring
a.parshin
parents: 2543
diff changeset
19 #include "Engine/AssetsManager.h"
2541
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
20
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
21
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
22 #define GAME_FLAGS_1_01_lightmap_related 0x01
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
23 #define GAME_FLAGS_1_DRAW_BLV_DEBUGS 0x08
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
24 #define GAME_FLAGS_2_SATURATE_LIGHTMAPS 0x02
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
25 #define GAME_FLAGS_2_ALTER_GRAVITY 0x08
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
26 #define GAME_FLAGS_2_TARGETING_MODE 0x10
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
27 #define GAME_FLAGS_2_DRAW_BLOODSPLATS 0x20
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
28
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
29
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
30
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
31 /* 320 */
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
32 enum GAME_STATE
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
33 {
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
34 GAME_STATE_PLAYING = 0,
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
35 GAME_FINISHED = 1,
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
36 GAME_STATE_CHANGE_LOCATION = 2,
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
37 GAME_STATE_LOADING_GAME = 3,
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
38 GAME_STATE_NEWGAME_OUT_GAMEMENU = 4,
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
39 GAME_STATE_5 = 5,
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
40 GAME_STATE_STARTING_NEW_GAME = 6,
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
41 GAME_STATE_GAME_QUITTING_TO_MAIN_MENU = 7,
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
42 GAME_STATE_PARTY_DIED = 8,
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
43 GAME_STATE_FINAL_WINDOW = 9,
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
44 GAME_STATE_A = 10
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
45 };
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
46
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
47
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
48
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
49 /* 105 */
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
50 #pragma pack(push, 1)
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
51 struct Game__StationaryLight
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
52 {
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
53 Vec3_float_ vPosition;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
54 Vec3_float_ vRGBColor;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
55 float flt_18;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
56 };
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
57 #pragma pack(pop)
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
58
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
59
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
60 /* 108 */
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
61 #pragma pack(push, 1)
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
62 struct Game_stru0
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
63 {
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
64 int field_0;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
65 unsigned __int8 *ptr_4;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
66 int field_8;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
67 int field_C;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
68 };
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
69 #pragma pack(pop)
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
70
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
71
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
72 /* 279 */
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
73 #pragma pack(push, 1)
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
74 //Game_stru1
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
75 struct Game_Bloodsplat
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
76 {
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
77 float x;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
78 float y;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
79 float z;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
80 float r;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
81 float g;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
82 float b;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
83 float radius;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
84 };
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
85 #pragma pack(pop)
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
86
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
87
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
88 class Vis;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
89 class LightmapBuilder;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
90 class ParticleEngine;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
91 class Mouse;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
92 class Keyboard;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
93 class ThreadWard;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
94 class CShow;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
95 class GammaController;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
96 struct stru9;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
97 struct stru10;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
98
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
99 /* 104 */
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
100 #pragma pack(push, 1)
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
101 struct Engine
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
102 {
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
103 static Engine *Create();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
104 static void Destroy();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
105
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
106 protected: Engine();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
107 protected: virtual ~Engine();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
108
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
109
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
110 public:
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
111 //void _44E904_gamma_saturation_adjust();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
112 //bool InitializeGammaController();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
113 bool PickMouse(float fPickDepth, unsigned int uMouseX, unsigned int uMouseY, bool bOutline, struct Vis_SelectionFilter *sprite_filter, struct Vis_SelectionFilter *face_filter);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
114 bool PickKeyboard(bool bOutline, struct Vis_SelectionFilter *sprite_filter, struct Vis_SelectionFilter *face_filter);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
115 void OutlineSelection();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
116 signed int _44EC23(struct Polygon *a2, int *a3, signed int a4);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
117 signed int _44ED0A(struct BLVFace *a2, int *a3, signed int a4);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
118 bool AlterGamma_BLV(struct BLVFace *pFace, signed int *pColor);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
119 bool AlterGamma_ODM(struct ODMFace *pFace, signed int *pColor);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
120 bool draw_debug_outlines();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
121 bool _44EEA7();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
122 bool _44F07B();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
123 void ToggleFlags(unsigned int uMask);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
124 void ToggleFlags2(unsigned int uFlag);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
125 void _44F0FD();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
126 void PushStationaryLights(int a2);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
127 void PrepareBloodsplats();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
128 void Deinitialize();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
129 void DrawParticles();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
130 void Draw();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
131
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
132 //----- (0042EB6A) --------------------------------------------------------
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
133 struct stru6 *GetStru6() { return this->pStru6Instance; }
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
134 //----- (0042EB71) --------------------------------------------------------
2543
b6140dfeac27 GameOver h/cpp
a.parshin
parents: 2541
diff changeset
135 //struct IndoorCameraD3D *GetIndoorCamera() { return this->pIndoorCameraD3D; }
2541
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
136
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
137
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
138 //void ( ***vdestructor_ptr)(Game *, bool);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
139 Game__StationaryLight pStationaryLights[25];
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
140 char field_2C0[1092];
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
141 unsigned int uNumStationaryLights;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
142 Game_Bloodsplat pBloodsplats[20];
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
143 int field_938;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
144 int field_93C;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
145 int field_940;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
146 int field_944;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
147 int field_948;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
148 int field_94C;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
149 int field_950;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
150 int field_954;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
151 int field_958;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
152 int field_95C;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
153 int field_960;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
154 int field_964;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
155 int field_968;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
156 int field_96C;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
157 int field_970;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
158 Mouse *pMouse;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
159 int field_978;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
160 Game_stru0 stru_97C;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
161 char field_98C[1148];
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
162 int uNumBloodsplats;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
163 int field_E0C;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
164 __int64 field_E10;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
165 int uNumStationaryLights_in_pStationaryLightsStack;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
166 unsigned int __depricated1;//unsigned int bGammaControlInitialized;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
167 unsigned int uFlags;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
168 unsigned int uFlags2;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
169 float fSaturation;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
170 unsigned __int64 __depricated2;//unsigned __int64 uSomeGammaStartTime;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
171 unsigned __int64 __depricated3;//__int64 uSomeGammaDeltaTime;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
172 void/*ThreadWard*/ *pThreadWardInstance;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
173 ParticleEngine *pParticleEngine;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
174 Mouse *pMouseInstance;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
175 LightmapBuilder *pLightmapBuilder;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
176 Vis *pVisInstance;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
177 stru6 *pStru6Instance;
2543
b6140dfeac27 GameOver h/cpp
a.parshin
parents: 2541
diff changeset
178 void *__depricated5;//IndoorCameraD3D *pIndoorCameraD3D;
2541
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
179 stru9 *pStru9Instance;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
180 stru10 *pStru10Instance;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
181 void/*stru11*/ *pStru11Instance;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
182 void/*stru12*/ *pStru12Instance;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
183 void/*CShow*/ *pCShow;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
184 Keyboard *pKeyboardInstance;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
185 void *__depricated_4;//GammaController *pGammaController;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
186 int field_E74;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
187 };
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
188 #pragma pack(pop)
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
189
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
190
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
191
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
192
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
193
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
194
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
195 extern Engine *pEngine;
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
196
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
197 void sub_42FBDD();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
198 void CloseWindowBackground();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
199 void back_to_game();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
200
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
201 void UpdateUserInput_and_MapSpecificStuff();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
202 void PrepareWorld(unsigned int _0_box_loading_1_fullscreen);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
203 void DoPrepareWorld(unsigned int bLoading, int _1_fullscreen_loading_2_box);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
204
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
205 //int __stdcall aWinProc(HWND hWnd, UINT Msg, WPARAM wParam, unsigned int lParam);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
206 int __stdcall InsertMM7CDDialogFunc(HWND hDlg, int a2, __int16 a3, int a4);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
207 bool __fastcall FindMM7CD(HWND hWnd, char *pCDDrive);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
208 //bool __fastcall Initialize(HINSTANCE hInst, char *pCmdLine);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
209
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
210 void FinalInitialization();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
211 bool __fastcall CheckMM7CD(char c);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
212 void SecondaryInitialization();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
213
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
214
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
215 void MM6_Initialize(const wchar_t *pIniFilename);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
216 void MM7Initialization();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
217
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
218 void __fastcall PrepareToLoadODM(unsigned int bLoading, struct ODMRenderParams *a2);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
219 void ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
220 void _461103_load_level_sub();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
221 void InitializeTurnBasedAnimations(void *);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
222 unsigned int GetGravityStrength();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
223 void GameUI_StatusBar_UpdateTimedString(unsigned int bForceHide); // idb
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
224
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
225 void __fastcall sub_44861E_set_texture(unsigned int uFaceCog, const char *pFilename);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
226 void __fastcall sub_44892E_set_faces_bit(int sCogNumber, int bit, int on);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
227 void __fastcall SetDecorationSprite(uint16_t uCog, bool bHide, const char *pFileName); // idb
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
228 void _494035_timed_effects__water_walking_damage__etc();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
229 void _493938_regenerate();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
230 void sub_491E3A();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
231 const char *GetReputationString(signed int a1);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
232 unsigned int __fastcall _494820_training_time(unsigned int a1);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
233 void LoadLevel_InitializeLevelStr();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
234 void OnMapLeave();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
235 void OnMapLoad();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
236 void Level_LoadEvtAndStr(const char *pLevelName);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
237 void sub_4452BB();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
238 bool _44100D_should_alter_right_panel();
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
239 void Transition_StopSound_Autosave(const char *pMapName, MapStartPoint point); // sub_44987B idb
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
240
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
241 void __fastcall sub_4451A8_press_any_key(int a1, int a2, int a4);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
242
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
243 void OnTimer(int);
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents:
diff changeset
244 bool TeleportToNWCDungeon();