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
Worked out networking
[progcomp2012.git]
/
judge
/
manager
/
stratego.h
diff --git
a/judge/manager/stratego.h
b/judge/manager/stratego.h
index
d2e667f
..
098540c
100644
(file)
--- a/
judge/manager/stratego.h
+++ b/
judge/manager/stratego.h
@@
-28,6
+28,9
@@
class Piece
typedef enum {RED=0, BLUE=1, NONE=2, BOTH=3} Colour; //Used for the allegiance of the pieces - terrain counts as NONE.
typedef enum {RED=0, BLUE=1, NONE=2, BOTH=3} Colour; //Used for the allegiance of the pieces - terrain counts as NONE.
+ static Colour OppositeColour(const Colour & compare);
+
+
Piece(const Type & newType, const Colour & newColour) : type(newType), colour(newColour), beenRevealed(false) {}
virtual ~Piece() {}
Piece(const Type & newType, const Colour & newColour) : type(newType), colour(newColour), beenRevealed(false) {}
virtual ~Piece() {}
UCC
git Repository :: git.ucc.asn.au