blob: 7505ae8b5482264596ace1dbdee261e11f024474 (
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
|
#pragma once
#include <random>
#include <kurator/battles/components.h>
namespace kurator
{
namespace battles
{
class RandomSpawner
{
public:
RandomSpawner(int total_teams, double distance, double variation);
Transform get(int team);
private:
const double angle_step;
std::random_device device;
std::uniform_real_distribution<double> distribution_d;
std::uniform_real_distribution<double> distribution_a;
};
} // namespace battles
} // namespace kurator
|