diff options
Diffstat (limited to 'Deserializer.cpp')
-rw-r--r-- | Deserializer.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Deserializer.cpp b/Deserializer.cpp index 7215dd4..fca8d50 100644 --- a/Deserializer.cpp +++ b/Deserializer.cpp @@ -1,22 +1,22 @@ -#include "Deserializer.h" -#include "TileAppearance.h" +#include "MuseumDeserializer.h" +#include "TileColorFactory.h" -Deserializer::Deserializer(Museum & museum) : museum(museum) { } +MuseumDeserializer::MuseumDeserializer(Museum & museum) : museum(museum) { } -void Deserializer::add_artist(ArtistData data) { +void MuseumDeserializer::add_artist(ArtistData data) { this->museum.people.add_artist(data); } -void Deserializer::set_canvas(CanvasData data) { +void MuseumDeserializer::set_canvas(CanvasData data) { this->museum.canvas.set_data(data); } -void Deserializer::set_tile(TileData data) { +void MuseumDeserializer::set_tile(TileData data) { this->museum.canvas.set_tile(data); } -void Deserializer::add_type(std::string type, Color color, unsigned int weight) { +void MuseumDeserializer::add_type(std::string type, Color color, unsigned int weight) { if (type.length() == 0) return; - TileAppearance::register_color(type, color); + TileColorFactory::register_color(type, color); } |