blob: 1ef2f2028c95b5a428a2fba371ab2696dcbb48ae (
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
|
#pragma once
#include <random>
#include <kurator/battles/components.h>
#include "Spawner.h"
namespace kurator
{
namespace battles
{
class RandomSpawner : public Spawner
{
public:
RandomSpawner(int total_teams, double distance, double variation);
Transform get(int team) override;
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
|