summaryrefslogtreecommitdiff
path: root/battles/src/TeamManager.h
blob: 384d9ee9f4034e80010699f2bf34edb899bb6a6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once

#include <random>
#include <vector>

#include <entt/entity/registry.hpp>


namespace kurator
{
namespace battles
{


class TeamManager
{
public:
	using Team = std::vector<entt::entity>;
	TeamManager();
	void add(int team, entt::entity entity);
	Team get(int team) const;
	entt::entity random(int team);
	void clear(entt::registry& registry);
private:
	std::vector<Team> teams;
	std::mt19937 generator;
};


}  // namespace battles
}  // namespace kurator