diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-11 18:39:15 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-11 18:39:15 +0200 |
commit | 12a719a9fd9b8e89159c407c3b612b226c860778 (patch) | |
tree | fdfdb2d78bde252946a27d04d44ce9e1cafe2e15 /NullTileBehavior.h | |
parent | 70feb9ed564fb7f557b7ab8b8d65e6376811b6ce (diff) |
add placeholder tile behaviors
Diffstat (limited to 'NullTileBehavior.h')
-rw-r--r-- | NullTileBehavior.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/NullTileBehavior.h b/NullTileBehavior.h new file mode 100644 index 0000000..6b68a4a --- /dev/null +++ b/NullTileBehavior.h @@ -0,0 +1,15 @@ +#pragma once + +#include "TileBehaviorStrategy.h" + +class NullTileBehavior : public TileBehaviorStrategy { +public: + virtual void run(Tile &); + virtual std::unique_ptr<TileBehaviorStrategy> clone(); + +private: + using TileBehaviorStrategy::TileBehaviorStrategy; + static NullTileBehavior instance; + NullTileBehavior() = default; +}; + |