-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatictile.cpp
69 lines (55 loc) · 1.34 KB
/
statictile.cpp
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#include "statictile.h"
//StaticTile::StaticTile() {
//}
//int StaticTile::getId() {
// return id;
//}
//void StaticTile::setId(int id) {
// this->id = id;
//}
//StaticTile::BlendMode StaticTile::getBlendMode() {
// return blendMode;
//}
//void StaticTile::setBlendMode(BlendMode blendMode) {
// this->blendMode = blendMode;
//}
//QMap<QString, QString> *StaticTile::getProperties() {
//// if (properties == NULL) {
//// properties = new QMap<QString, QString>();
//// }
// return &properties;
//}
QPixmap StaticTile::getPixmap() {
return pixmap;
}
void StaticTile::setPixmap(QPixmap pixmap) {
this->pixmap = pixmap;
}
float StaticTile::getOffsetX() {
return offsetX;
}
void StaticTile::setOffsetX(float offsetX) {
this->offsetX = offsetX;
}
float StaticTile::getOffsetY() {
return offsetY;
}
void StaticTile::setOffsetY(float offsetY) {
this->offsetY = offsetY;
}
/** Creates a static tile with the given region
*
* @param QPixmap the {@link QPixmap} to use. */
StaticTile::StaticTile(QPixmap pixmap) {
this->pixmap = pixmap;
}
/** Copy constructor
*
* @param copy the StaticTiledMapTile to copy. */
//StaticTile::StaticTile(StaticTile copy) {
// if (copy.properties != NULL) {
// getProperties() =+ copy.properties;
// }
// this->pixmap = copy.pixmap;
// this->id = copy.id;
//}