Grail (C++)  1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::simgames::ISimulatedGameStateTranslator Class Referenceabstract

Public Member Functions

virtual std::pair< std::unique_ptr< SimulatedGame >, std::shared_ptr< class ISimulatedGameUnit > > CreateGame ()=0
 Return the SimulatedGame object an the unit paired with it. The paired unit is a virtual representation of the entity Reasoner is attached to. More...
 
virtual void StartRefreshingGameState (const class AIEntity &entity, std::function< void()> refreshingFinishedCallback)=0
 This method is called when SimulatedGameReasoner requests for a new start state. When you are done with preparing the proper start state (all properties of units etc.) call the @refreshingFinishedCallback. More...
 

Member Function Documentation

◆ CreateGame()

virtual std::pair<std::unique_ptr<SimulatedGame>, std::shared_ptr<class ISimulatedGameUnit> > grail::simgames::ISimulatedGameStateTranslator::CreateGame ( )
pure virtual

Return the SimulatedGame object an the unit paired with it. The paired unit is a virtual representation of the entity Reasoner is attached to.

◆ StartRefreshingGameState()

virtual void grail::simgames::ISimulatedGameStateTranslator::StartRefreshingGameState ( const class AIEntity entity,
std::function< void()>  refreshingFinishedCallback 
)
pure virtual

This method is called when SimulatedGameReasoner requests for a new start state. When you are done with preparing the proper start state (all properties of units etc.) call the @refreshingFinishedCallback.


The documentation for this class was generated from the following file: