aboutsummaryrefslogtreecommitdiff
path: root/SetNeighborTileBehavior.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-21 14:02:34 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-21 14:02:34 +0200
commitfe8f7273f0efdfe319a0d3e3b2fc2847992745af (patch)
tree9f56560c8a35c3e281881fa48cd79b26f8e8de7e /SetNeighborTileBehavior.h
parent4cb7ca42003c177e3acc80075d7594e555966106 (diff)
fix more design
Diffstat (limited to 'SetNeighborTileBehavior.h')
-rw-r--r--SetNeighborTileBehavior.h9
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;
};