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 /SetNeighborTileBehavior.cpp | |
parent | 4cb7ca42003c177e3acc80075d7594e555966106 (diff) |
fix more design
Diffstat (limited to 'SetNeighborTileBehavior.cpp')
-rw-r--r-- | SetNeighborTileBehavior.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/SetNeighborTileBehavior.cpp b/SetNeighborTileBehavior.cpp index d934d4b..d56fa0b 100644 --- a/SetNeighborTileBehavior.cpp +++ b/SetNeighborTileBehavior.cpp @@ -1,5 +1,3 @@ -#include <memory> - #include "SetNeighborTileBehavior.h" #include "CreateArtistTileBehavior.h" #include "Artist.h" @@ -7,8 +5,6 @@ using namespace std; -SetNeighborTileBehavior SetNeighborTileBehavior::instance { SetNeighborTileBehavior::type }; - void SetNeighborTileBehavior::step(Artist * artist) { this->interactions++; if (dx != 0 || dy != 0) return; @@ -36,9 +32,3 @@ void SetNeighborTileBehavior::update(Tile & tile) { tile.set_type(CreateArtistTileBehavior::type); } -unique_ptr<TileBehavior> SetNeighborTileBehavior::clone(Museum & museum) { - auto instance = new SetNeighborTileBehavior(); - instance->museum = &museum; - return unique_ptr<TileBehavior>(instance); -} - |