aboutsummaryrefslogtreecommitdiff
path: root/game/prefab/ZapperPoolSubScene.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/prefab/ZapperPoolSubScene.h')
-rw-r--r--game/prefab/ZapperPoolSubScene.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/game/prefab/ZapperPoolSubScene.h b/game/prefab/ZapperPoolSubScene.h
new file mode 100644
index 0000000..25328ee
--- /dev/null
+++ b/game/prefab/ZapperPoolSubScene.h
@@ -0,0 +1,27 @@
+#pragma once
+
+#include <vector>
+
+#include <crepe/api/Scene.h>
+#include <crepe/api/GameObject.h>
+#include <crepe/api/Event.h>
+#include <crepe/util/OptionalRef.h>
+
+#include "ZapperObject.h"
+
+class CreateZapperEvent : public crepe::Event {};
+
+class ZapperPoolSubScene {
+public:
+ ZapperPoolSubScene(crepe::Scene & scene);
+
+private:
+ crepe::GameObject controller;
+ std::vector<ZapperObject> zappers;
+
+private:
+ static constexpr size_t POOL_SIZE = 4;
+
+public:
+ crepe::OptionalRef<ZapperObject> get_next_zapper();
+};