aboutsummaryrefslogtreecommitdiff
path: root/TileAppearance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TileAppearance.cpp')
-rw-r--r--TileAppearance.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/TileAppearance.cpp b/TileAppearance.cpp
index b91301f..7c5b080 100644
--- a/TileAppearance.cpp
+++ b/TileAppearance.cpp
@@ -1,18 +1,18 @@
-#include "TileAppearance.h"
+#include "TileColorFactory.h"
using namespace std;
-Color TileAppearance::get_color(string type) {
- auto & type_map = TileAppearance::get_collection();
+Color TileColorFactory::get_color(string type) {
+ auto & type_map = TileColorFactory::get_collection();
if (type_map.contains(type))
return type_map.at(type);
- return TileAppearance::default_color;
+ return TileColorFactory::default_color;
}
-void TileAppearance::register_color(string type, Color color) {
- auto & type_map = TileAppearance::get_collection();
+void TileColorFactory::register_color(string type, Color color) {
+ auto & type_map = TileColorFactory::get_collection();
type_map[type] = color;
}