diff options
Diffstat (limited to 'SetNeighborTileBehavior.h')
-rw-r--r-- | SetNeighborTileBehavior.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/SetNeighborTileBehavior.h b/SetNeighborTileBehavior.h index d316420..53bfbc0 100644 --- a/SetNeighborTileBehavior.h +++ b/SetNeighborTileBehavior.h @@ -3,19 +3,16 @@ #include "TileBehavior.h" class SetNeighborTileBehavior : public TileBehavior { + friend class TileBehaviorFactory; + using TileBehavior::TileBehavior; + public: virtual void step(Artist *); virtual void update(Tile &); - virtual std::unique_ptr<TileBehavior> clone(Museum &); static constexpr const char * type = "B"; private: - using TileBehavior::TileBehavior; - static SetNeighborTileBehavior instance; - SetNeighborTileBehavior() = default; - -private: int dx = 0; int dy = 0; }; |