aboutsummaryrefslogtreecommitdiff
path: root/NullTileBehavior.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-11 18:39:15 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-11 18:39:15 +0200
commit12a719a9fd9b8e89159c407c3b612b226c860778 (patch)
treefdfdb2d78bde252946a27d04d44ce9e1cafe2e15 /NullTileBehavior.h
parent70feb9ed564fb7f557b7ab8b8d65e6376811b6ce (diff)
add placeholder tile behaviors
Diffstat (limited to 'NullTileBehavior.h')
-rw-r--r--NullTileBehavior.h15
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;
+};
+