Grail (C++)  1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::data::SimulatedGameUnitSnapshot Struct Reference

#include <SimulatedGamesSnapshots.h>

Public Member Functions

 SimulatedGameUnitSnapshot (const simgames::ISimulatedGameUnit &unit, int orderID)
 

Public Attributes

int teamIndex = 0
 The "owning" player. Units of the same team should share the same color in the GUI tool.
 
int orderID = 0
 Ordered unique identifier of the unit. In this order they will apear in the GUI tool.
 
std::string description = ""
 Display text for the unit in logs and GUI tool.
 
std::map< std::string, std::string > state = {}
 State of the unit as serialized by FillDebugRepresentation method of a unit.
 

Detailed Description

DTO - data transfer object / plain data object. Container for debug data that describes state of a unit in SimulatedGame at particular time.


The documentation for this struct was generated from the following files: