Base of all game that we can play. More...
#include <Game/AbstractGame.hpp>
Public Member Functions | |
virtual bool | play ()=0 |
virtual bool | isVictory () const =0 |
virtual int | getVictoriousColor () const =0 |
virtual bool | isDraw () const =0 |
virtual bool | loadHistory (const std::string &fileName)=0 |
virtual bool | saveHistory (const std::string &fileName)=0 |
Base of all game that we can play.
An abstract game is nothing else than an object that you can play()
with.
virtual int AbstractGame::getVictoriousColor | ( | ) | const [pure virtual] |
virtual bool AbstractGame::isDraw | ( | ) | const [pure virtual] |
virtual bool AbstractGame::isVictory | ( | ) | const [pure virtual] |
virtual bool AbstractGame::loadHistory | ( | const std::string & | fileName | ) | [pure virtual] |
Loads an history from a file named fileName
fileName |
Implemented in Game< GameBoard, GameRules >.
virtual bool AbstractGame::play | ( | ) | [pure virtual] |
Plays a game
Implemented in Game< GameBoard, GameRules >.
virtual bool AbstractGame::saveHistory | ( | const std::string & | fileName | ) | [pure virtual] |
Saves the game history in a file fileName
fileName |
Implemented in Game< GameBoard, GameRules >.