Base class for all actions in SimulatedGame. Derive from it for your actions.
More...
#include <ISimulatedGameAction.hh>
Base class for all actions in SimulatedGame. Derive from it for your actions.
◆ Apply()
Applies the effects of the action and returns the next Unit to make an action.
- Parameters
-
currentUnit | - Unit that performs the action (currently active unit). |
runtimeControl | - Interface for basic game-control flow (termination, scores, turn). |
- Returns
- unit taking next action
◆ CloneForLearning()
std::unique_ptr< ISimulatedGameAction > grail::simgames::ISimulatedGameAction::CloneForLearning |
( |
| ) |
const |
|
virtual |
Returns a deep copy of the action object. Used only in offline learning approach and DecisionTrees. If you don't use offline learning or decision tree, you don't have to provide implementation of this method.
◆ EqualsForLearning()
bool grail::simgames::ISimulatedGameAction::EqualsForLearning |
( |
const ISimulatedGameAction & |
other | ) |
const |
|
virtual |
Returns whether the action object is equal to other. If you don't use offline learning or decision tree, you don't have to provide implementation of this method.
◆ HashForLearning()
size_t grail::simgames::ISimulatedGameAction::HashForLearning |
( |
| ) |
const |
|
virtual |
Returns hash of the action object. Used only in offline learning approach and DecisionTrees. If you don't use offline learning or decision tree, you don't have to provide implementation of this method.
The documentation for this class was generated from the following files: