X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=judge%2Fmanager%2Fgame.h;h=3f46abb43ff8a4c5d4f3151a6a60bbcc44281d87;hb=4dcf57563f5f4503ac70ec87158ae21bb9d2951d;hp=cc79e656bd278be678ebc1b4467c314836eb9551;hpb=48216daa641008e0de21c5522d6e958a38b02093;p=progcomp2012.git diff --git a/judge/manager/game.h b/judge/manager/game.h index cc79e65..3f46abb 100644 --- a/judge/manager/game.h +++ b/judge/manager/game.h @@ -15,7 +15,7 @@ class Game { public: - Game(const char * redPath, const char * bluePath, const bool enableGraphics, double newStallTime = 1.0, const bool allowIllegal=false, FILE * newLog = NULL, const Piece::Colour & newRevealed = Piece::BOTH, int maxTurns = 5000, const bool printBoard = false, double newTimeoutTime = 2.0, bool server=false, bool client=false); + Game(const char * redPath, const char * bluePath, const bool enableGraphics, double newStallTime = 1.0, const bool allowIllegal=false, FILE * newLog = NULL, const Piece::Colour & newRevealed = Piece::BOTH, int maxTurns = 5000, const bool printBoard = false, double newTimeoutTime = 2.0); Game(const char * fromFile, const bool enableGraphics, double newStallTime = 1.0, const bool allowIllegal=false, FILE * newLog = NULL, const Piece::Colour & newRevealed = Piece::BOTH, int maxTurns = 5000, const bool printBoard = false, double newTimeoutTime = 2.0); virtual ~Game(); @@ -38,6 +38,9 @@ class Game static Game * theGame; static int Tokenise(std::vector & buffer, std::string & str, char split = ' '); //Helper - Split a string into tokens + + private: + void MakeControllers(const char * redPath, const char * bluePath); //Create a controller based off a path public: int logMessage(const char * format, ...); FILE * GetLogFile() const {return log;}