-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMap.h
33 lines (30 loc) · 1.25 KB
/
Map.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
32
33
//---------------------------------------------------------------------------
#ifndef MapH
#define MapH
//---------------------------------------------------------------------------
#include "Window.h"
#include "Image.h"
#include "Screen.h"
//---------------------------------------------------------------------------
//typedef std::vector<unsigned char> MapData;
//---------------------------------------------------------------------------
class Map
{
private:
int m_Width;
int m_Height;
int m_StartScreen;
TRect m_Rect;
public:
// MapData m_MapData;
int m_MapData[16][16];
__fastcall Map(const String& data);
void __fastcall Draw(TBitmap* bitmap, int scalar, const Window& window, const ImageList& blocks, const ImageList& objects, const ImageList& sprites, const ScreenList& screens);
TPoint __fastcall GetRoomPt(int room);
int __property Width = { read = m_Width };
int __property Height = { read = m_Height };
int __property StartScreen = { read = m_StartScreen };
TRect __property Rect = { read = m_Rect };
};
//---------------------------------------------------------------------------
#endif