-
Notifications
You must be signed in to change notification settings - Fork 1
/
Screen.h
31 lines (29 loc) · 1.19 KB
/
Screen.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//---------------------------------------------------------------------------
#ifndef ScreenH
#define ScreenH
//---------------------------------------------------------------------------
#include "Image.h"
#include "Window.h"
//---------------------------------------------------------------------------
typedef std::vector<unsigned char> ScreenData;
typedef struct {
unsigned char Type;
unsigned char Index;
unsigned char ScreenIndex;
TPoint Position;
} SpritePosition;
typedef std::vector<SpritePosition> Sprites;
//---------------------------------------------------------------------------
class GameScreen
{
private:
public:
ScreenData m_Blocks;
Sprites m_Sprites;
__fastcall GameScreen(const String& data, unsigned int screenIndex);
void __fastcall Draw(int room, int x, int y, TBitmap* bitmap, int scalar, const ImageList& blocks, const ImageList& objects, const ImageList& sprites, const Window& window);
};
//---------------------------------------------------------------------------
typedef std::vector<std::unique_ptr<GameScreen>> ScreenList;
//---------------------------------------------------------------------------
#endif