 |
Grail (C++)
1.4.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
3 #ifndef GRAIL_SIMULATED_GAME_STOCHASTIC_UNIT_H
4 #define GRAIL_SIMULATED_GAME_STOCHASTIC_UNIT_H
8 #include "ISimulatedGameAction.hh"
9 #include "ISimulatedGameUnit.hh"
15 class SimulatedGameRuntime;
38 virtual size_t GetRandomActionIndex(std::vector<std::unique_ptr<const ISimulatedGameAction>>& actions,
39 RandomGenerator& rand_gen)
const;
42 virtual bool IsStochastic()
const override final;
50 #endif //GRAIL_SIMULATED_GAME_STOCHASTIC_UNIT_H
virtual int GetTeamIndex() const override
TeamIndex is relevant for SimulatedGameStochasticUnit only for GUI purposes (to show it as a separate...
Definition: SimulatedGameStochasticUnit.cpp:9
A base class of a unit in SimulatedGame that peforms actions according to some probability distributi...
Definition: SimulatedGameStochasticUnit.hh:23
The main interface class for the SimulatedGame reasoner based on the MCTS algorithm....
Definition: SimulatedGame.hh:30
Base class of a unit in the SimulatedGame framework. A unit represents part of the game-state and pef...
Definition: ISimulatedGameUnit.hh:28
This class should not be visible to developers at all.
Definition: SimulatedGameNode.hh:25
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:14