summaryrefslogtreecommitdiff
path: root/battles/src/scenarios.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-11-10 23:22:15 +0100
committerAki <please@ignore.pl>2022-11-10 23:22:15 +0100
commit35a39b4172008546f0bb4640114a42fb3f3a6f77 (patch)
tree8e04b27ccd995dd4f51d00079ed55410fd866837 /battles/src/scenarios.cpp
parent57cd7872a624179f3c37c20cef488ce2be6666bc (diff)
downloadkurator-35a39b4172008546f0bb4640114a42fb3f3a6f77.zip
kurator-35a39b4172008546f0bb4640114a42fb3f3a6f77.tar.gz
kurator-35a39b4172008546f0bb4640114a42fb3f3a6f77.tar.bz2
Flattened Scenario and move sample to battles module
Diffstat (limited to 'battles/src/scenarios.cpp')
-rw-r--r--battles/src/scenarios.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/battles/src/scenarios.cpp b/battles/src/scenarios.cpp
new file mode 100644
index 0000000..ffb4f27
--- /dev/null
+++ b/battles/src/scenarios.cpp
@@ -0,0 +1,39 @@
+#include <kurator/battles/scenarios.h>
+
+#include <kurator/battles/Scenario.h>
+#include <kurator/universe/ShipType.h>
+
+
+namespace kurator
+{
+namespace battles
+{
+namespace scenarios
+{
+
+
+Scenario
+example()
+{
+ const universe::ShipType halo {"halo", 4.0};
+ const universe::ShipType cube {"cube", 10.0};
+ const universe::ShipType bell {"bell", 10.0};
+ return {
+ "example",
+ {
+ {0, halo, {}},
+ {0, halo, {}},
+ {0, cube, {}},
+ {0, bell, {}},
+ {1, bell, {}},
+ {1, cube, {}},
+ {1, cube, {}},
+ {1, bell, {}},
+ },
+ };
+}
+
+
+} // namespace scenarios
+} // namespace battles
+} // namespace kurator