From fe8f7273f0efdfe319a0d3e3b2fc2847992745af Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Mon, 21 Oct 2024 14:02:34 +0200 Subject: fix more design --- NullTileBehavior.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'NullTileBehavior.h') diff --git a/NullTileBehavior.h b/NullTileBehavior.h index 72aa196..004b256 100644 --- a/NullTileBehavior.h +++ b/NullTileBehavior.h @@ -3,15 +3,10 @@ #include "TileBehavior.h" class NullTileBehavior : public TileBehavior { + friend class TileBehaviorFactory; + using TileBehavior::TileBehavior; + public: virtual void update(Tile &); - virtual std::unique_ptr clone(Museum &); - - static constexpr const char * type = ""; - -private: - using TileBehavior::TileBehavior; - static NullTileBehavior instance; - NullTileBehavior() = default; }; -- cgit v1.2.3