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 /DeleteArtistTileBehavior.h | |
parent | 4cb7ca42003c177e3acc80075d7594e555966106 (diff) |
fix more design
Diffstat (limited to 'DeleteArtistTileBehavior.h')
-rw-r--r-- | DeleteArtistTileBehavior.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/DeleteArtistTileBehavior.h b/DeleteArtistTileBehavior.h index 0b2b0d4..9454864 100644 --- a/DeleteArtistTileBehavior.h +++ b/DeleteArtistTileBehavior.h @@ -3,17 +3,14 @@ #include "TileBehavior.h" class DeleteArtistTileBehavior : 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 = "R"; - -private: - using TileBehavior::TileBehavior; - static DeleteArtistTileBehavior instance; - DeleteArtistTileBehavior() = default; }; |