summaryrefslogtreecommitdiff
path: root/campaign/include
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-12-03 01:01:39 +0100
committerAki <please@ignore.pl>2022-12-03 01:01:39 +0100
commit13e4f3e3908220d484b01b9fb6dc4375ab28a16e (patch)
treee35ecc703948ad0dea4a63260ab621cd95c229b4 /campaign/include
parent2f7d5c306430d65d18eac184551bac8937877d49 (diff)
downloadkurator-13e4f3e3908220d484b01b9fb6dc4375ab28a16e.zip
kurator-13e4f3e3908220d484b01b9fb6dc4375ab28a16e.tar.gz
kurator-13e4f3e3908220d484b01b9fb6dc4375ab28a16e.tar.bz2
Extracted Scenario and related things into own campaign module
Diffstat (limited to 'campaign/include')
-rw-r--r--campaign/include/kurator/campaign/Scenario.h24
-rw-r--r--campaign/include/kurator/campaign/ShipConfig.h22
-rw-r--r--campaign/include/kurator/campaign/scenarios.h19
3 files changed, 65 insertions, 0 deletions
diff --git a/campaign/include/kurator/campaign/Scenario.h b/campaign/include/kurator/campaign/Scenario.h
new file mode 100644
index 0000000..23647fc
--- /dev/null
+++ b/campaign/include/kurator/campaign/Scenario.h
@@ -0,0 +1,24 @@
+#pragma once
+
+#include <string>
+#include <vector>
+
+#include "ShipConfig.h"
+
+
+namespace kurator
+{
+namespace campaign
+{
+
+
+struct Scenario
+{
+ std::string name;
+ std::vector<ShipConfig> ships;
+ int total_teams() const;
+};
+
+
+} // namespace campaign
+} // namespace kurator
diff --git a/campaign/include/kurator/campaign/ShipConfig.h b/campaign/include/kurator/campaign/ShipConfig.h
new file mode 100644
index 0000000..cb5ca48
--- /dev/null
+++ b/campaign/include/kurator/campaign/ShipConfig.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#include <string>
+#include <vector>
+
+
+namespace kurator
+{
+namespace campaign
+{
+
+
+struct ShipConfig
+{
+ int team;
+ std::string type;
+ std::vector<std::string> turrets;
+};
+
+
+} // namespace campaign
+} // namespace kurator
diff --git a/campaign/include/kurator/campaign/scenarios.h b/campaign/include/kurator/campaign/scenarios.h
new file mode 100644
index 0000000..cdc1e19
--- /dev/null
+++ b/campaign/include/kurator/campaign/scenarios.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#include "Scenario.h"
+
+
+namespace kurator
+{
+namespace campaign
+{
+namespace scenarios
+{
+
+
+Scenario example();
+
+
+} // namespace scenarios
+} // namespace campaign
+} // namespace kurator