blob: d34e1ba0b4ea48b5728eb7b0c20eaee40c5ebec7 (
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/sim/components.h>
#include "Spawner.h"
namespace kurator
{
namespace sim
{
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 sim
} // namespace kurator
|