-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCArea.h
55 lines (32 loc) · 1.06 KB
/
CArea.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//=============================================================================
#ifndef _CAREA_H_
#define _CAREA_H_
#include "CMap.h"
//=============================================================================
class CArea
{
public:
static CArea AreaControl;
public:
std::vector<CMap> MapList;
private:
SDL_Surface* Surf_Tileset_Passables;
SDL_Surface* Surf_Tileset_Impassables;
public:
int AreaSize;
int areaWidth;
int areaHeight;
char PassablesFile[255];
char ImpassablesFile[255];
CArea();
void OnCreateNew(int nareaWidth, int nareaHeight);
bool OnLoad(char* File);
void OnRender(SDL_Surface* Surf_Display, int CameraX, int CameraY);
void OnCleanup();
public:
CMap* GetMap(int X, int Y);
CTile* GetTile(int X, int Y);
bool OnSave(char* File, char*, char*);
};
//=============================================================================
#endif