Brunot
Loading...
Searching...
No Matches
GameRules Struct Reference

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

Detailed Description

An indicator that loops through a parents' nodes children and can "select" them on keypress.

@Selector.h

Constructor & Destructor Documentation

◆ GameRules() [1/3]

GameRules::GameRules ( )
Here is the caller graph for this function:

◆ GameRules() [2/3]

GameRules::GameRules ( const GameRules & )
default
Here is the call graph for this function:

◆ GameRules() [3/3]

GameRules::GameRules ( GameRules && )
default
Here is the call graph for this function:

◆ ~GameRules()

GameRules::~GameRules ( )
default
Here is the call graph for this function:

Member Function Documentation

◆ getBoardDimensions()

auto GameRules::getBoardDimensions ( ) const->conststd::pair< int, int > &
Here is the caller graph for this function:

◆ getMaxCardsPerPlayerHand()

auto GameRules::getMaxCardsPerPlayerHand ( ) const->int

◆ getMaxNumberOfCardsPlayedPerTurn()

auto GameRules::getMaxNumberOfCardsPlayedPerTurn ( ) const->int
Here is the caller graph for this function:

◆ getTimeLimit()

auto GameRules::getTimeLimit ( ) const->float
Here is the caller graph for this function:

◆ load()

auto GameRules::load ( Stream & stream) ->void

◆ operator=() [1/2]

auto GameRules::operator= ( const GameRules & other) ->GameRules &=default
default
Here is the call graph for this function:

◆ operator=() [2/2]

auto GameRules::operator= ( GameRules && other) ->GameRules &=default
defaultnoexcept
Here is the call graph for this function:

◆ save()

auto GameRules::save ( Stream & stream) const->void

◆ setBoardDimensions()

auto GameRules::setBoardDimensions ( std::pair< int, int > && newDimension) ->void
Here is the caller graph for this function:

◆ setMaxCardsPerPlayerHand()

auto GameRules::setMaxCardsPerPlayerHand ( int newMax) ->void
Here is the caller graph for this function:

◆ setMaxNumberOfCardsPlayedPerTurn()

auto GameRules::setMaxNumberOfCardsPlayedPerTurn ( int newMax) ->void
Here is the caller graph for this function:

◆ setTimeLimit()

auto GameRules::setTimeLimit ( float newTimeLimit) ->void
Here is the caller graph for this function:

◆ from_json

auto from_json ( const json & j,
GameRules & g )->void
friend

◆ to_json

auto to_json ( json & j,
const GameRules & g )->void
friend

Member Data Documentation

◆ boardDimensions

std::pair<int, int> GameRules::boardDimensions
private

◆ maxCardsPerPlayerHand

int GameRules::maxCardsPerPlayerHand
private

◆ maxNumberOfCardsPlayedPerTurn

int GameRules::maxNumberOfCardsPlayedPerTurn
private

◆ timeLimit

float GameRules::timeLimit
private

timeLimit is stored in seconds


The documentation for this struct was generated from the following files:
  • /home/egrazil/sites/Brunot/The House/source/Utility/GameRules.h
  • /home/egrazil/sites/Brunot/The House/source/Utility/GameRules.cpp