|
Brunot
|
An indicator that loops through a parents' nodes children and can "select" them on keypress. More...
#include <GameRules.h>
Public Member Functions | |
| GameRules () | |
| GameRules (const GameRules &)=default | |
| GameRules (GameRules &&)=default | |
| auto | operator= (const GameRules &other) -> GameRules &=default |
| auto | operator= (GameRules &&other) noexcept -> GameRules &=default |
| ~GameRules ()=default | |
| auto | load (Stream &stream) -> void |
| auto | save (Stream &stream) const -> void |
| auto | getMaxCardsPerPlayerHand () const -> int |
| auto | setMaxCardsPerPlayerHand (int newMax) -> void |
| auto | getMaxNumberOfCardsPlayedPerTurn () const -> int |
| auto | setMaxNumberOfCardsPlayedPerTurn (int newMax) -> void |
| auto | getBoardDimensions () const -> const std::pair< int, int > & |
| auto | setBoardDimensions (std::pair< int, int > &&newDimension) -> void |
| auto | getTimeLimit () const -> float |
| auto | setTimeLimit (float newTimeLimit) -> void |
Private Attributes | |
| int | maxCardsPerPlayerHand |
| int | maxNumberOfCardsPlayedPerTurn |
| std::pair< int, int > | boardDimensions |
| float | timeLimit |
| timeLimit is stored in seconds | |
Friends | |
| auto | to_json (json &j, const GameRules &g) ->void |
| auto | from_json (const json &j, GameRules &g) ->void |
An indicator that loops through a parents' nodes children and can "select" them on keypress.
@Selector.h
| GameRules::GameRules | ( | ) |
|
default |
|
default |
|
default |
| auto GameRules::getBoardDimensions | ( | ) | const->conststd::pair< int, int > & |
| auto GameRules::getMaxCardsPerPlayerHand | ( | ) | const->int |
| auto GameRules::getMaxNumberOfCardsPlayedPerTurn | ( | ) | const->int |
| auto GameRules::getTimeLimit | ( | ) | const->float |
| auto GameRules::load | ( | Stream & | stream | ) | ->void |
| auto GameRules::save | ( | Stream & | stream | ) | const->void |
| auto GameRules::setBoardDimensions | ( | std::pair< int, int > && | newDimension | ) | ->void |
| auto GameRules::setMaxCardsPerPlayerHand | ( | int | newMax | ) | ->void |
| auto GameRules::setMaxNumberOfCardsPlayedPerTurn | ( | int | newMax | ) | ->void |
| auto GameRules::setTimeLimit | ( | float | newTimeLimit | ) | ->void |
|
private |
|
private |
|
private |
|
private |
timeLimit is stored in seconds