From d8289105193707daede1a5b59137f18e20f20aeb Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 18 Oct 2024 15:48:14 +0200 Subject: (2/2) rename --- SetNeighborTileBehavior.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 SetNeighborTileBehavior.h (limited to 'SetNeighborTileBehavior.h') 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 clone(Museum &); + + static constexpr const char * type = "B"; + +private: + using TileBehavior::TileBehavior; + static SetNeighborTileBehavior instance; + SetNeighborTileBehavior() = default; + +private: + int dx = 0; + int dy = 0; +}; + -- cgit v1.2.3