#include <Rosetta/Games/Game.hpp>

Public Member Functions | |
Game ()=delete | |
Deleted default constructor. More... | |
Game (GameConfig &gameConfig) | |
virtual | ~Game ()=default |
Default destructor. More... | |
Game (const Game &)=delete | |
Deleted copy constructor. More... | |
Game (Game &&)=delete | |
Deleted move constructor. More... | |
Game & | operator= (const Game &)=delete |
Deleted copy assignment operator. More... | |
Game & | operator= (Game &&)=delete |
Deleted move assignment operator. More... | |
Player & | GetPlayer1 () |
Player & | GetPlayer2 () |
Player & | GetCurrentPlayer () const |
Player & | GetOpponentPlayer () const |
std::size_t | GetNextID () |
std::size_t | GetNextOOP () |
virtual void | BeginFirst () |
Part of the game state. More... | |
virtual void | BeginShuffle () |
Part of the game state. More... | |
virtual void | BeginDraw () |
Part of the game state. More... | |
virtual void | BeginMulligan () |
Part of the game state. More... | |
virtual void | MainBegin () |
Part of the game state. More... | |
virtual void | MainReady () |
Part of the game state. More... | |
virtual void | MainStartTriggers () |
Part of the game state. More... | |
virtual void | MainResource () |
Part of the game state. More... | |
virtual void | MainDraw () |
Part of the game state. More... | |
virtual void | MainStart () |
Part of the game state. More... | |
virtual void | MainEnd () |
Part of the game state. More... | |
virtual void | MainCleanUp () |
Part of the game state. More... | |
virtual void | MainNext () |
Part of the game state. More... | |
virtual void | FinalWrapUp () |
Part of the game state. More... | |
virtual void | FinalGameOver () |
Part of the game state. More... | |
void | StartGame () |
Starts the game. More... | |
Public Attributes | |
State | state = State::INVALID |
Step | step = Step::INVALID |
Step | nextStep = Step::INVALID |
Detailed Description
Game class.
This class stores Hearthstone game states which consists of information of both players.
Constructor & Destructor Documentation
◆ Game() [1/4]
|
delete |
Deleted default constructor.
◆ Game() [2/4]
|
explicit |
Constructs account with given gameConfig
.
- Parameters
-
gameConfig The game config holds all configuration values.
◆ ~Game()
|
virtualdefault |
Default destructor.
◆ Game() [3/4]
|
delete |
Deleted copy constructor.
◆ Game() [4/4]
|
delete |
Deleted move constructor.
Member Function Documentation
◆ BeginDraw()
|
virtual |
Part of the game state.
Reimplemented in RosettaStone::GameAgent.
◆ BeginFirst()
|
virtual |
Part of the game state.
Reimplemented in RosettaStone::GameAgent.
◆ BeginMulligan()
|
virtual |
Part of the game state.
Reimplemented in RosettaStone::GameAgent.
◆ BeginShuffle()
|
virtual |
Part of the game state.
Reimplemented in RosettaStone::GameAgent.
◆ FinalGameOver()
|
virtual |
Part of the game state.
Reimplemented in RosettaStone::GameAgent.
◆ FinalWrapUp()
|
virtual |
Part of the game state.
Reimplemented in RosettaStone::GameAgent.
◆ GetCurrentPlayer()
Player& RosettaStone::Game::GetCurrentPlayer | ( | ) | const |
Returns the player controlling the current turn.
- Returns
- The player controlling the current turn.
◆ GetNextID()
std::size_t RosettaStone::Game::GetNextID | ( | ) |
Gets the next entity identifier.
- Returns
- The next entity ID.
◆ GetNextOOP()
std::size_t RosettaStone::Game::GetNextOOP | ( | ) |
Gets the next order of play index.
- Returns
- The next order of play index.
◆ GetOpponentPlayer()
Player& RosettaStone::Game::GetOpponentPlayer | ( | ) | const |
Returns the opponent player.
- Returns
- The opponent player.
◆ GetPlayer1()
Player& RosettaStone::Game::GetPlayer1 | ( | ) |
Returns the first player.
- Returns
- The first player.
◆ GetPlayer2()
Player& RosettaStone::Game::GetPlayer2 | ( | ) |
Returns the second player.
- Returns
- The second player.
◆ MainBegin()
|
virtual |
Part of the game state.
Reimplemented in RosettaStone::GameAgent.
◆ MainCleanUp()
|
virtual |
Part of the game state.
Reimplemented in RosettaStone::GameAgent.
◆ MainDraw()
|
virtual |
Part of the game state.
Reimplemented in RosettaStone::GameAgent.
◆ MainEnd()
|
virtual |
Part of the game state.
Reimplemented in RosettaStone::GameAgent.
◆ MainNext()
|
virtual |
Part of the game state.
Reimplemented in RosettaStone::GameAgent.
◆ MainReady()
|
virtual |
Part of the game state.
Reimplemented in RosettaStone::GameAgent.
◆ MainResource()
|
virtual |
Part of the game state.
Reimplemented in RosettaStone::GameAgent.
◆ MainStart()
|
virtual |
Part of the game state.
Reimplemented in RosettaStone::GameAgent.
◆ MainStartTriggers()
|
virtual |
Part of the game state.
Reimplemented in RosettaStone::GameAgent.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ StartGame()
void RosettaStone::Game::StartGame | ( | ) |
Starts the game.
Member Data Documentation
◆ nextStep
Step RosettaStone::Game::nextStep = Step::INVALID |
◆ state
State RosettaStone::Game::state = State::INVALID |
◆ step
Step RosettaStone::Game::step = Step::INVALID |
The documentation for this class was generated from the following file:
- Rosetta/Games/Game.hpp