diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 15:48:14 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-18 15:48:14 +0200 |
commit | d8289105193707daede1a5b59137f18e20f20aeb (patch) | |
tree | 939908b9c4c6f7aaef8aa61ee2e04be3e85610b6 /SetNeighborTileBehavior.h | |
parent | 76e61d68bbf568ec0d7fc4632e52d4de5496b003 (diff) |
(2/2) rename
Diffstat (limited to 'SetNeighborTileBehavior.h')
-rw-r--r-- | SetNeighborTileBehavior.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/SetNeighborTileBehavior.h b/SetNeighborTileBehavior.h new file mode 100644 index 0000000..d316420 --- /dev/null +++ b/SetNeighborTileBehavior.h @@ -0,0 +1,22 @@ +#pragma once + +#include "TileBehavior.h" + +class SetNeighborTileBehavior : public 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; +}; + |