#include "TileColorFactory.h" using namespace std; const Color & TileColorFactory::get_color(const string & type) { if (this->collection.contains(type)) return this->collection.at(type); return TileColorFactory::default_color; } void TileColorFactory::register_color(const string & type, const Color & color) { this->collection[type] = color; }