00001 #ifndef ABSTRACTGAME_HPP 00002 #define ABSTRACTGAME_HPP 00003 00004 #include <string> 00005 00006 class AbstractGame 00007 { 00008 public: 00009 00012 virtual ~AbstractGame() {} 00013 00017 virtual bool play()=0; 00018 00022 virtual bool isVictory()const=0; 00023 00027 virtual int getVictoriousColor()const=0; 00028 00032 virtual bool isDraw()const=0; 00033 00038 virtual bool loadHistory(const std::string& fileName)=0; 00039 00044 virtual bool saveHistory(const std::string& fileName)=0; 00045 }; 00046 00053 #endif