diff options
Diffstat (limited to 'src/imports/location/tile.cpp')
-rw-r--r-- | src/imports/location/tile.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/imports/location/tile.cpp b/src/imports/location/tile.cpp new file mode 100644 index 00000000..675fc7b5 --- /dev/null +++ b/src/imports/location/tile.cpp @@ -0,0 +1,27 @@ + +#include "tile.h" + +Tile::Tile() {} +Tile::Tile(const TileSpec &spec, const QPixmap &pixmap) + : spec_(spec), + pixmap_(pixmap) {} + +void Tile::setTileSpec(const TileSpec &spec) +{ + spec_ = spec; +} + +TileSpec Tile::tileSpec() const +{ + return spec_; +} + +void Tile::setPixmap(const QPixmap &pixmap) +{ + pixmap_ = pixmap; +} + +QPixmap Tile::pixmap() const +{ + return pixmap_; +} |