diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-21 14:02:34 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-21 14:02:34 +0200 |
commit | fe8f7273f0efdfe319a0d3e3b2fc2847992745af (patch) | |
tree | 9f56560c8a35c3e281881fa48cd79b26f8e8de7e /StepTileBehavior.cpp | |
parent | 4cb7ca42003c177e3acc80075d7594e555966106 (diff) |
fix more design
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); -} - |