1 #ifndef GRAIL_SIMULATED_GAMES_SNAPSHOTS_H
2 #define GRAIL_SIMULATED_GAMES_SNAPSHOTS_H
5 #include <unordered_map>
13 class ISimulatedGameUnit;
29 std::map<std::string, std::string>
state = {};
61 int activeUnitUID = 0;
68 std::vector<SimulatedGameActionMetadataSnapshot> actionMetadataSnapshots = {};
102 float absoluteTime = 0;
103 float relativeTime = 0;
Definition: SimulatedGamesSnapshots.h:95
std::vector< simulation::SimulatedGameUnitSnapshot > unitSnapshots
Units that took part in the game.
Definition: SimulatedGamesSnapshots.h:97
std::vector< simulation::SimulatedGameIterationSnapshot > iterationSnapshots
Snapshots of iterations contained in the SimulatedGameSnapshot.
Definition: SimulatedGamesSnapshots.h:100
Definition: SimulatedGamesSnapshots.h:75
std::vector< float > scores
Scores achieved by teams at the end of the iteration.
Definition: SimulatedGamesSnapshots.h:85
void Clear()
Clears all the stored data.
Definition: SimulatedGamesSnapshots.cpp:16
std::vector< SimulatedGameMonteCarloEventSnapshot > monteCarloSnapshots
Events that happened during the iteration in the Monte Carlo (simulation) phase.
Definition: SimulatedGamesSnapshots.h:82
std::vector< SimulatedGameUCTEventSnapshot > uctSnapshots
Events that happened during the iteration in the UCT (selection) phase.
Definition: SimulatedGamesSnapshots.h:79
Definition: SimulatedGamesSnapshots.h:55
std::vector< SimulatedGameUnitSnapshot > unitSnapshots
States of units after action was performed.
Definition: SimulatedGamesSnapshots.h:60
std::string chosenActionDescription
The action performed by the active unit.
Definition: SimulatedGamesSnapshots.h:57
Definition: SimulatedGamesSnapshots.h:67
Definition: SimulatedGamesSnapshots.h:18
int orderID
Ordered unique identifier of the unit. In this order they will apear in the GUI tool.
Definition: SimulatedGamesSnapshots.h:23
std::string description
Display text for the unit in logs and GUI tool.
Definition: SimulatedGamesSnapshots.h:26
int teamIndex
The "owning" player. Units of the same team should share the same color in the GUI tool.
Definition: SimulatedGamesSnapshots.h:20
std::map< std::string, std::string > state
State of the unit as serialized by FillDebugRepresentation method of a unit.
Definition: SimulatedGamesSnapshots.h:29