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

This class should not be visible to developers at all. More...

#include <SimulatedGameNode.hh>

Public Member Functions

 SimulatedGameNode (ISimulatedGameUnit *, SimulatedGameRuntime &runtime)
 
 SimulatedGameNode (SimulatedGameNode &&)=default
 
void Backpropagate (float score)
 
const ISimulatedGameActionGetRandomAction (RandomGenerator &rand_gen)
 
void PerformActionByIndex (size_t actionIndex, SimulatedGameRuntime &runtime)
 
ISimulatedGameUnitGetActiveUnit () const
 
SimulatedGameNodeSelectNext (SimulatedGameHelper &helper, RandomGenerator &rand_gen)
 
SimulatedGameNodeSelectNext (SimulatedGameHelper &helper, RandomGenerator &rand_gen, SimulatedGameSnapshotObserver &observer)
 
SimulatedGameNodePerformUCT (SimulatedGameHelper &helper, RandomGenerator &rand_gen)
 
std::vector< SimulatedGameActionMetadataGetActionsWithMetadata () const
 
void FillPlan (std::unordered_map< const ISimulatedGameUnit *, std::vector< const ISimulatedGameAction * >> &plan, int teamIndex) const
 
void FillPlanWithMetadata (std::unordered_map< const ISimulatedGameUnit *, std::vector< SimulatedGameActionMetadata >> &plan, int teamIndex) const
 
void FillPath (std::vector< std::pair< const ISimulatedGameUnit *, const ISimulatedGameAction * >> &path) const
 
const ISimulatedGameActionGetBestAction () const
 
const SimulatedGameActionMetadata GetBestActionMetadata () const
 
const ISimulatedGameActionGetActionByIndex (size_t actionIndex) const
 
double GetVisits () const
 
bool IsTerminal () const
 

Public Attributes

std::vector< std::unique_ptr< SimulatedGameNode > > children {}
 

Friends

class SimulatedGame
 

Detailed Description

This class should not be visible to developers at all.


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