-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMap.h
More file actions
37 lines (26 loc) · 756 Bytes
/
CMap.h
File metadata and controls
37 lines (26 loc) · 756 Bytes
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
//==============================================================================
#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:
bool OnLoad(char* File, int MapX, int MapY);
void AddEnemies(int MapX, int MapY);
void OnRender(SDL_Surface* Surf_Display, int MapX, int MapY);
public:
CTile* GetTile(int X, int Y);
};
//==============================================================================
#endif