An aspect representing a computer controlled player of the game of ur, which makes its decisions completely randomly.
More...
#include <ur_player_cpu_random.hpp>
|
|
std::shared_ptr< BaseSimObjectAspect > | clone () const override |
| |
|
|
static std::string | getSimObjectAspectTypeName () |
| |
|
static std::shared_ptr< BaseSimObjectAspect > | create (const nlohmann::json &jsonAspectProperties) |
| |
|
|
std::string | mControllerPath {} |
| | The path to the game controller this player interfaces with.
|
| |
| std::unique_ptr< UrPlayerControls > | mControls {} |
| | The controls object created by the game controller.
|
| |
|
std::random_device | mRandomDevice {} |
| | The device responsible for providing this class with random numbers.
|
| |
|
std::default_random_engine | mRandomEngine { mRandomDevice() } |
| | An engine using the random device.
|
| |
|
ToyMaker::SignalObserver< GamePhaseData > | mObserveMovePrompted { *this, "MovePromptedObserved", [this](GamePhaseData phaseData) { this->onMovePrompted(phaseData); }} |
| | The observer connected with this aspect, responsible for receiving and responding to move prompt events.
|
| |
An aspect representing a computer controlled player of the game of ur, which makes its decisions completely randomly.
◆ onMovePrompted()
Callback for an event from GameOfUrController, prompting this player for a new game-related action.
- Parameters
-
◆ mControls
The controls object created by the game controller.
Provides the interface through which this player is able to interact with the (data model representation of the) game.
The documentation for this class was generated from the following files: