diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-21 14:02:34 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-21 14:02:34 +0200 |
commit | fe8f7273f0efdfe319a0d3e3b2fc2847992745af (patch) | |
tree | 9f56560c8a35c3e281881fa48cd79b26f8e8de7e /TileBehavior.h | |
parent | 4cb7ca42003c177e3acc80075d7594e555966106 (diff) |
fix more design
Diffstat (limited to 'TileBehavior.h')
-rw-r--r-- | TileBehavior.h | 6 |
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; }; |