 |
Grail (C++)
1.1.1
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
1 #ifndef GRAIL_SIMULATED_GAME_STOCHASTIC_UNIT_H
2 #define GRAIL_SIMULATED_GAME_STOCHASTIC_UNIT_H
6 #include "ISimulatedGameAction.hh"
7 #include "ISimulatedGameUnit.hh"
13 class SimulatedGameRuntime;
37 virtual size_t GetRandomActionIndex(std::vector<std::unique_ptr<const ISimulatedGameAction>>& actions,
38 RandomGenerator& rand_gen)
const;
41 virtual bool IsStochastic()
const override final;
49 #endif //GRAIL_SIMULATED_GAME_STOCHASTIC_UNIT_H
virtual size_t GetRandomActionIndex(std::vector< std::unique_ptr< const ISimulatedGameAction >> &actions, RandomGenerator &rand_gen) const
This function returns index of the action (rather than the action itself) chosen according to the uni...
Definition: SimulatedGameStochasticUnit.cpp:12
This class should not be visible to developers at all.
Definition: SimulatedGameNode.h:23
The main interface class for the SimulatedGame reasoner based on the MCTS algorithm....
Definition: SimulatedGame.hh:28
virtual int GetTeamIndex() const override
TeamIndex is relevant for SimulatedGameStochasticUnit only for GUI purposes (to show it as a separate...
Definition: SimulatedGameStochasticUnit.cpp:7
A base class of a unit in SimulatedGame that peforms actions according to some probability distributi...
Definition: SimulatedGameStochasticUnit.hh:21
Base class of a unit in the SimulatedGame framework. A unit represents part of the game-state and pef...
Definition: ISimulatedGameUnit.hh:26