-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtiledmaplayer.h
35 lines (28 loc) · 860 Bytes
/
tiledmaplayer.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
#ifndef TILEDMAPLAYER_H
#define TILEDMAPLAYER_H
#include <iostream>
#include <vector>
using namespace std;
class TiledMapLayer
{
private:
string name;
int width;
int height;
vector<int> data;
public:
TiledMapLayer();
TiledMapLayer(string name, int width, int height);
~TiledMapLayer();
string getName(){ return this->name; }
int getWidth(){ return this->width; }
int getHeight(){ return this->height; }
int getData(int index){ return this->data[index]; }
int getDataSize(){ return this->data.size(); }
void setName(string name){ this->name = name; }
void setName(char* name){ this->name = name; }
void setWidth(int width){ this->width = width; }
void setHeight(int height){ this->height = height; }
void insertData(int data){ this->data.push_back(data); }
};
#endif // TILEDMAPLAYER_H