diff options
author | Aki <please@ignore.pl> | 2022-12-03 01:01:39 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-12-03 01:01:39 +0100 |
commit | 13e4f3e3908220d484b01b9fb6dc4375ab28a16e (patch) | |
tree | e35ecc703948ad0dea4a63260ab621cd95c229b4 /sim/src/Scenario.cpp | |
parent | 2f7d5c306430d65d18eac184551bac8937877d49 (diff) | |
download | kurator-13e4f3e3908220d484b01b9fb6dc4375ab28a16e.zip kurator-13e4f3e3908220d484b01b9fb6dc4375ab28a16e.tar.gz kurator-13e4f3e3908220d484b01b9fb6dc4375ab28a16e.tar.bz2 |
Extracted Scenario and related things into own campaign module
Diffstat (limited to 'sim/src/Scenario.cpp')
-rw-r--r-- | sim/src/Scenario.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/sim/src/Scenario.cpp b/sim/src/Scenario.cpp deleted file mode 100644 index 49201c3..0000000 --- a/sim/src/Scenario.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include <kurator/sim/Scenario.h> - - -namespace kurator -{ -namespace sim -{ - - -int -Scenario::total_teams() const -{ - int last_team = 0; - for (const auto& ship : ships) { - if (ship.team > last_team) - last_team = ship.team; - } - return last_team + 1; -} - - -} // namespace sim -} // namespace kurator |