diff options
Diffstat (limited to 'StepTileBehavior.cpp')
-rw-r--r-- | StepTileBehavior.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/StepTileBehavior.cpp b/StepTileBehavior.cpp index 2023bb8..ff1217e 100644 --- a/StepTileBehavior.cpp +++ b/StepTileBehavior.cpp @@ -1,21 +1,11 @@ -#include <memory> - #include "StepTileBehavior.h" #include "DeleteArtistTileBehavior.h" #include "Tile.h" using namespace std; -StepTileBehavior StepTileBehavior::instance { StepTileBehavior::type }; - void StepTileBehavior::update(Tile & tile) { if (this->interactions < 3) return; tile.set_type(DeleteArtistTileBehavior::type); } -unique_ptr<TileBehavior> StepTileBehavior::clone(Museum & museum) { - auto instance = new StepTileBehavior(); - instance->museum = &museum; - return unique_ptr<TileBehavior>(instance); -} - |