X-Git-Url: https://git.ucc.asn.au/?p=progcomp2012.git;a=blobdiff_plain;f=judge%2Fmanager%2Fstratego.h;fp=judge%2Fmanager%2Fstratego.h;h=098540c9f0f8db365dc0ca8cf942135ac11f7bc0;hp=d2e667ff072897a1252c22133b141a7f8f5f5add;hb=85cfed04e179dad45eefd9fdf747628addbf93fb;hpb=e1153eebe8cfd0c881cef2ff8fca63f130e736b3 diff --git a/judge/manager/stratego.h b/judge/manager/stratego.h index d2e667f..098540c 100644 --- 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. + static Colour OppositeColour(const Colour & compare); + + Piece(const Type & newType, const Colour & newColour) : type(newType), colour(newColour), beenRevealed(false) {} virtual ~Piece() {}