summaryrefslogtreecommitdiff
path: root/sim/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 /sim/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 'sim/include')
-rw-r--r--sim/include/kurator/sim/Battle.h4
-rw-r--r--sim/include/kurator/sim/Scenario.h24
-rw-r--r--sim/include/kurator/sim/ShipConfig.h22
-rw-r--r--sim/include/kurator/sim/scenarios.h19
4 files changed, 2 insertions, 67 deletions
diff --git a/sim/include/kurator/sim/Battle.h b/sim/include/kurator/sim/Battle.h
index e1728f4..0b20ce8 100644
--- a/sim/include/kurator/sim/Battle.h
+++ b/sim/include/kurator/sim/Battle.h
@@ -5,7 +5,7 @@
#include <entt/entity/registry.hpp>
#include <entt/signal/dispatcher.hpp>
-#include "Scenario.h"
+#include <kurator/campaign/Scenario.h>
namespace kurator
@@ -24,7 +24,7 @@ public:
};
-auto prepare(const Scenario& scenario) -> std::unique_ptr<Battle>;
+auto prepare(const campaign::Scenario& scenario) -> std::unique_ptr<Battle>;
} // namespace sim
diff --git a/sim/include/kurator/sim/Scenario.h b/sim/include/kurator/sim/Scenario.h
deleted file mode 100644
index b037365..0000000
--- a/sim/include/kurator/sim/Scenario.h
+++ /dev/null
@@ -1,24 +0,0 @@
-#pragma once
-
-#include <string>
-#include <vector>
-
-#include "ShipConfig.h"
-
-
-namespace kurator
-{
-namespace sim
-{
-
-
-struct Scenario
-{
- std::string name;
- std::vector<ShipConfig> ships;
- int total_teams() const;
-};
-
-
-} // namespace sim
-} // namespace kurator
diff --git a/sim/include/kurator/sim/ShipConfig.h b/sim/include/kurator/sim/ShipConfig.h
deleted file mode 100644
index bb089ac..0000000
--- a/sim/include/kurator/sim/ShipConfig.h
+++ /dev/null
@@ -1,22 +0,0 @@
-#pragma once
-
-#include <string>
-#include <vector>
-
-
-namespace kurator
-{
-namespace sim
-{
-
-
-struct ShipConfig
-{
- int team;
- std::string type;
- std::vector<std::string> turrets;
-};
-
-
-} // namespace sim
-} // namespace kurator
diff --git a/sim/include/kurator/sim/scenarios.h b/sim/include/kurator/sim/scenarios.h
deleted file mode 100644
index d22b62a..0000000
--- a/sim/include/kurator/sim/scenarios.h
+++ /dev/null
@@ -1,19 +0,0 @@
-#pragma once
-
-#include "Scenario.h"
-
-
-namespace kurator
-{
-namespace sim
-{
-namespace scenarios
-{
-
-
-Scenario example();
-
-
-} // namespace scenarios
-} // namespace sim
-} // namespace kurator