aboutsummaryrefslogtreecommitdiff
path: root/GrayTileBehavior.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'GrayTileBehavior.cpp')
-rw-r--r--GrayTileBehavior.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/GrayTileBehavior.cpp b/GrayTileBehavior.cpp
index 257c32d..2023bb8 100644
--- a/GrayTileBehavior.cpp
+++ b/GrayTileBehavior.cpp
@@ -1,21 +1,21 @@
#include <memory>
-#include "GrayTileBehavior.h"
-#include "RedTileBehavior.h"
+#include "StepTileBehavior.h"
+#include "DeleteArtistTileBehavior.h"
#include "Tile.h"
using namespace std;
-GrayTileBehavior GrayTileBehavior::instance { GrayTileBehavior::type };
+StepTileBehavior StepTileBehavior::instance { StepTileBehavior::type };
-void GrayTileBehavior::update(Tile & tile) {
+void StepTileBehavior::update(Tile & tile) {
if (this->interactions < 3) return;
- tile.set_type(RedTileBehavior::type);
+ tile.set_type(DeleteArtistTileBehavior::type);
}
-unique_ptr<TileBehaviorStrategy> GrayTileBehavior::clone(Museum & museum) {
- auto instance = new GrayTileBehavior();
+unique_ptr<TileBehavior> StepTileBehavior::clone(Museum & museum) {
+ auto instance = new StepTileBehavior();
instance->museum = &museum;
- return unique_ptr<TileBehaviorStrategy>(instance);
+ return unique_ptr<TileBehavior>(instance);
}