World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Overlays.h
См. документацию.
1 #pragma once
2 
3 #include <cstdint>
4 
5 /* 282 */
6 #pragma pack(push, 1)
7 struct OtherOverlay {
8  OtherOverlay();
9  void Reset();
10 
13  int16_t sprite_frame_time; // __int16 field_4;
15  int16_t screen_space_x; // __int16 field_8;
16  int16_t screen_space_y; // __int16 field_A;
19  int field_10;
20 };
21 #pragma pack(pop)
22 
23 /* 63 */
24 #pragma pack(push, 1)
27  : //----- (0045848D)
28  field_3E8(0),
29  bRedraw(false) {}
30 
31  void Reset();
32  int _4418B1(int a2, int a3, int a4, int a5);
33  int _4418B6(int uOverlayID, int16_t a3, int a4, int a5, int16_t a6);
34  void DrawTurnBasedIcon(int a2);
35 
37  int field_3E8;
38  int bRedraw;
39 };
40 #pragma pack(pop)
41 
42 /* 52 */
43 #pragma pack(push, 1)
44 struct OverlayDesc {
49 };
50 #pragma pack(pop)
51 
52 #pragma pack(push, 1)
53 struct OverlayList {
54  inline OverlayList()
55  : //----- (00458474)
56  uNumOverlays(0),
57  pOverlays(nullptr) {}
58 
59  void ToFile();
60  void FromFile(void *data_mm6, void *data_mm7, void *data_mm8);
61  bool FromFileTxt(const char *Args);
62  void InitializeSprites();
63 
64  unsigned int uNumOverlays;
66 };
67 #pragma pack(pop)
68 
69 extern struct OtherOverlayList *pOtherOverlayList; // idb
70 extern struct OverlayList *pOverlayList;
uint16_t
unsigned __int16 uint16_t
Definition: SDL_config.h:37
OtherOverlay::field_10
int field_10
Definition: Overlays.h:19
OverlayDesc::uOverlayID
uint16_t uOverlayID
Definition: Overlays.h:45
int16_t
signed __int16 int16_t
Definition: SDL_config.h:36
OverlayDesc
Definition: Overlays.h:44
OverlayList::OverlayList
OverlayList()
Definition: Overlays.h:54
OverlayList::InitializeSprites
void InitializeSprites()
Definition: Overlays.cpp:100
OtherOverlayList::_4418B6
int _4418B6(int uOverlayID, int16_t a3, int a4, int a5, int16_t a6)
Definition: Overlays.cpp:32
OverlayDesc::uSpriteFramesetID
uint16_t uSpriteFramesetID
Definition: Overlays.h:47
OtherOverlayList::_4418B1
int _4418B1(int a2, int a3, int a4, int a5)
Definition: Overlays.cpp:29
OtherOverlayList::bRedraw
int bRedraw
Definition: Overlays.h:38
OtherOverlay::sprite_frame_time
int16_t sprite_frame_time
Definition: Overlays.h:13
OverlayList
Definition: Overlays.h:53
OtherOverlay::field_C
int16_t field_C
Definition: Overlays.h:17
OtherOverlay::field_0
int16_t field_0
Definition: Overlays.h:11
OtherOverlayList::OtherOverlayList
OtherOverlayList()
Definition: Overlays.h:26
OtherOverlayList::pOverlays
OtherOverlay pOverlays[50]
Definition: Overlays.h:36
OverlayList::FromFileTxt
bool FromFileTxt(const char *Args)
Definition: Overlays.cpp:138
OtherOverlay
Definition: Overlays.h:7
OverlayDesc::uOverlayType
uint16_t uOverlayType
Definition: Overlays.h:46
OverlayDesc::field_6
int16_t field_6
Definition: Overlays.h:48
OtherOverlay::screen_space_y
int16_t screen_space_y
Definition: Overlays.h:16
OtherOverlayList::DrawTurnBasedIcon
void DrawTurnBasedIcon(int a2)
Definition: Overlays.cpp:67
pOtherOverlayList
struct OtherOverlayList * pOtherOverlayList
Definition: Overlays.cpp:19
OtherOverlay::field_6
int16_t field_6
Definition: Overlays.h:14
pOverlayList
struct OverlayList * pOverlayList
Definition: Overlays.cpp:20
OtherOverlay::field_E
int16_t field_E
Definition: Overlays.h:18
OtherOverlay::screen_space_x
int16_t screen_space_x
Definition: Overlays.h:15
OverlayList::uNumOverlays
unsigned int uNumOverlays
Definition: Overlays.h:64
OverlayList::pOverlays
struct OverlayDesc * pOverlays
Definition: Overlays.h:65
OtherOverlayList
Definition: Overlays.h:25
OtherOverlay::field_2
int16_t field_2
Definition: Overlays.h:12
OtherOverlay::OtherOverlay
OtherOverlay()
Definition: Overlays.cpp:216
OtherOverlayList::field_3E8
int field_3E8
Definition: Overlays.h:37
OverlayList::FromFile
void FromFile(void *data_mm6, void *data_mm7, void *data_mm8)
Definition: Overlays.cpp:119
OverlayList::ToFile
void ToFile()
Definition: Overlays.cpp:106
OtherOverlayList::Reset
void Reset()
Definition: Overlays.cpp:24
OtherOverlay::Reset
void Reset()
Definition: Overlays.cpp:203