summaryrefslogtreecommitdiff
path: root/sim/src/Scenario.cpp
blob: 49201c3a1a9d9174a096dad7e6de0cd54ba9a059 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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