CardGame
Rogue-like card videogame
Loading...
Searching...
No Matches
Game Class Reference

#include <game.h>

Collaboration diagram for Game:

Public Member Functions

 Game (IOText &io)
 
void intro ()
 
void lossMessage () const
 
bool isLost () const
 
PlayergetMainPlayer ()
 
const PlayergetMainPlayer () const
 
void setMainPlayerName ()
 
const bool isValidName (std::string_view name) const
 
bool isPlayerAlive () const
 

Constructor & Destructor Documentation

◆ Game()

Game::Game ( IOText io)

Member Function Documentation

◆ getMainPlayer() [1/2]

Player & Game::getMainPlayer ( )

◆ getMainPlayer() [2/2]

const Player & Game::getMainPlayer ( ) const

◆ intro()

void Game::intro ( )

◆ isLost()

bool Game::isLost ( ) const

◆ isPlayerAlive()

bool Game::isPlayerAlive ( ) const

◆ isValidName()

const bool Game::isValidName ( std::string_view  name) const

◆ lossMessage()

void Game::lossMessage ( ) const

◆ setMainPlayerName()

void Game::setMainPlayerName ( )

The documentation for this class was generated from the following files: