git.ucc.asn.au
/
progcomp2012.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated manual page for stratego
[progcomp2012.git]
/
judge
/
manager
/
game.h
diff --git
a/judge/manager/game.h
b/judge/manager/game.h
index
aebda9d
..
3f46abb
100644
(file)
--- a/
judge/manager/game.h
+++ b/
judge/manager/game.h
@@
-4,6
+4,7
@@
#include "stratego.h"
#include "ai_controller.h"
#include "human_controller.h"
#include "stratego.h"
#include "ai_controller.h"
#include "human_controller.h"
+#include "network_controller.h"
#include <cstring>
#include <cstring>
@@
-23,6
+24,7
@@
class Game
void Wait(double wait);
Piece::Colour Setup(const char * redName, const char * blueName);
void Wait(double wait);
Piece::Colour Setup(const char * redName, const char * blueName);
+ MovementResult CheckVictoryAttrition();
MovementResult Play();
void PrintEndMessage(const MovementResult & result);
MovementResult Play();
void PrintEndMessage(const MovementResult & result);
@@
-36,6
+38,9
@@
class Game
static Game * theGame;
static int Tokenise(std::vector<std::string> & buffer, std::string & str, char split = ' '); //Helper - Split a string into tokens
static Game * theGame;
static int Tokenise(std::vector<std::string> & 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;}
public:
int logMessage(const char * format, ...);
FILE * GetLogFile() const {return log;}
UCC
git Repository :: git.ucc.asn.au