aboutsummaryrefslogtreecommitdiff
path: root/TileBehavior.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 /TileBehavior.h
parent4cb7ca42003c177e3acc80075d7594e555966106 (diff)
fix more design
Diffstat (limited to 'TileBehavior.h')
-rw-r--r--TileBehavior.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/TileBehavior.h b/TileBehavior.h
index b79e7f5..c6e6859 100644
--- a/TileBehavior.h
+++ b/TileBehavior.h
@@ -11,14 +11,12 @@ class TileBehavior {
public:
virtual void step(Artist *);
virtual void update(Tile &) = 0;
- virtual std::unique_ptr<TileBehavior> clone(Museum & m) = 0;
protected:
- TileBehavior(const std::string type);
- TileBehavior() = default;
+ TileBehavior(Museum &);
protected:
unsigned int interactions = 0;
- Museum * museum = nullptr;
+ Museum & museum;
};