summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--campaign/include/kurator/campaign/Scenario.h2
-rw-r--r--campaign/src/Scenario.cpp2
-rw-r--r--sim/src/BaseBattle.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/campaign/include/kurator/campaign/Scenario.h b/campaign/include/kurator/campaign/Scenario.h
index cbefd56..8d8d6ea 100644
--- a/campaign/include/kurator/campaign/Scenario.h
+++ b/campaign/include/kurator/campaign/Scenario.h
@@ -17,7 +17,7 @@ struct Scenario
std::string name;
double radius;
std::vector<ShipConfig> ships;
- int total_teams() const;
+ int last_team() const;
};
diff --git a/campaign/src/Scenario.cpp b/campaign/src/Scenario.cpp
index cd5a1c6..74cad9e 100644
--- a/campaign/src/Scenario.cpp
+++ b/campaign/src/Scenario.cpp
@@ -8,7 +8,7 @@ namespace campaign
int
-Scenario::total_teams() const
+Scenario::last_team() const
{
int last_team = 0;
for (const auto& ship : ships) {
diff --git a/sim/src/BaseBattle.cpp b/sim/src/BaseBattle.cpp
index 99c1b99..46c98ed 100644
--- a/sim/src/BaseBattle.cpp
+++ b/sim/src/BaseBattle.cpp
@@ -23,7 +23,7 @@ namespace sim
BaseBattle::BaseBattle(const campaign::Scenario& scenario) :
time {0.0},
_registry {},
- spawner {scenario.total_teams(), scenario.radius, 0.1}
+ spawner {scenario.last_team(), scenario.radius, 0.1}
{
const auto repo = universe::load_sample();
Builder build {_registry, spawner};