diff options
Diffstat (limited to 'Deserializer.cpp')
-rw-r--r-- | Deserializer.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Deserializer.cpp b/Deserializer.cpp index ecadbbe..48c4da9 100644 --- a/Deserializer.cpp +++ b/Deserializer.cpp @@ -5,6 +5,15 @@ void Deserializer::set_target(Museum * museum) { this->museum = museum; } +Deserializer::~Deserializer() { + this->finalize(); +} + +void Deserializer::finalize() { + // TODO: fill empty squares in canvas with white ones + // TODO: remove artists outside the canvas +} + Museum & Deserializer::get_target() { if (this->museum == nullptr) throw Exception("no museum given to Deserializer"); @@ -30,3 +39,10 @@ void Deserializer::add_tile(unsigned int x, unsigned int y, TileData data) { printf("add tile(%d,%d) data(%s)...\n", x, y, data.type.c_str()); } +void Deserializer::add_type(std::string type, Color color, unsigned int weight) { + if (type.length() == 0) return; + + printf("add type(%s) color(#%02x%02x%02x) weight(%d)...\n", type.c_str(), + color.red, color.green, color.blue, weight); +} + |