-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtileset.h
40 lines (33 loc) · 806 Bytes
/
tileset.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
#ifndef TILESET_H
#define TILESET_H
#include <QMap>
#include <QPixmap>
#include "tile.h"
class TileSet {
// int firstTileID;
// QString name;
// int spacing;
// int margin;
// int tileWidth;
// int tileHeight;
// QPixmap img;
// std::vector<QRect> subRects;
// std::vector<QString> tilesNames; // fireball specific load
// std::vector<QPixmap> tiles;
public:
QString name;
QMap<int, Tile*> tiles;
QMap<QString, QString> properties;
//public:
TileSet();
TileSet(QString name);
void setName(QString name);
QString getName();
QMap<QString, QString> *getProperties();
void putTile(int id, Tile *tile);
Tile *getGlobalTile(int id);
Tile *getLocalTile(int id);
QList<Tile*> getTiles();
int firshgid;
};
#endif // TILESET_H