-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMap.h
41 lines (28 loc) · 813 Bytes
/
CMap.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
//==============================================================================
#ifndef _CMAP_H_
#define _CMAP_H_
#include <SDL.h>
#include <vector>
#include "CTile.h"
#include "CSurface.h"
//==============================================================================
class CMap
{
public:
SDL_Surface* Surf_Tileset_Passables;
SDL_Surface* Surf_Tileset_Impassables;
private:
std::vector<CTile> TileList;
public:
CMap();
public:
void OnCreateNew();
bool OnLoad(char* File);
void OnRender(SDL_Surface* Surf_Display, int MapX, int MapY);
public:
CTile* GetTile(int X, int Y);
void SetTile(CTile* tile, int newTile, int newType);
bool OnSave(char* File);
};
//==============================================================================
#endif