 |
Grail (C++)
1.1.1
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
1 #ifndef GRAIL_SIMULATED_GAMES_SNAPSHOTS_H
2 #define GRAIL_SIMULATED_GAMES_SNAPSHOTS_H
6 #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;
107 #endif //GRAIL_SIMULATED_GAMES_SNAPSHOTS_H
std::string chosenActionDescription
The action performed by the active unit.
Definition: SimulatedGamesSnapshots.h:57
Definition: SimulatedGamesSnapshots.h:74
void Clear()
Clears all the stored data.
Definition: SimulatedGamesSnapshots.cpp:19
std::vector< SimulatedGameMonteCarloEventSnapshot > monteCarloSnapshots
Events that happened during the iteration in the Monte Carlo (simulation) phase.
Definition: SimulatedGamesSnapshots.h:82
Definition: SimulatedGamesSnapshots.h:54
std::vector< float > scores
Scores achieved by teams at the end of the iteration.
Definition: SimulatedGamesSnapshots.h:85
std::vector< SimulatedGameUCTEventSnapshot > uctSnapshots
Events that happened during the iteration in the UCT (selection) phase.
Definition: SimulatedGamesSnapshots.h:79
Definition: SimulatedGamesSnapshots.h:17
int teamIndex
The "owning" player. Units of the same team should share the same color in the GUI tool.
Definition: SimulatedGamesSnapshots.h:20
Definition: SimulatedGamesSnapshots.h:94
std::vector< simulation::SimulatedGameUnitSnapshot > unitSnapshots
Units that took part in the game.
Definition: SimulatedGamesSnapshots.h:97
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
std::map< std::string, std::string > state
State of the unit as serialized by FillDebugRepresentation method of a unit.
Definition: SimulatedGamesSnapshots.h:29
Definition: SimulatedGamesSnapshots.h:66
std::vector< SimulatedGameUnitSnapshot > unitSnapshots
States of units after action was performed.
Definition: SimulatedGamesSnapshots.h:60
std::vector< simulation::SimulatedGameIterationSnapshot > iterationSnapshots
Snapshots of iterations contained in the SimulatedGameSnapshot.
Definition: SimulatedGamesSnapshots.h:100
Base class of a unit in the SimulatedGame framework. A unit represents part of the game-state and pef...
Definition: ISimulatedGameUnit.hh:26