X-Git-Url: https://git.ucc.asn.au/?p=progcomp2012.git;a=blobdiff_plain;f=judge%2Fmanager%2Fstratego.h;h=c8f4f9d76a6b58643c4a0ecf96f74888ab566363;hp=fe73aa13ff0b4311c3d10acea02c493f9b6dd610;hb=78293905481ab7a67e773d05350da29940a58ea6;hpb=1a03b2543b67f0551e62babec4cd119f1e0e4640 diff --git a/judge/manager/stratego.h b/judge/manager/stratego.h index fe73aa1..c8f4f9d 100644 --- a/judge/manager/stratego.h +++ b/judge/manager/stratego.h @@ -6,9 +6,8 @@ #include - - #include "graphics.h" - #include "array.h" +#include "graphics.h" +#include "array.h" #include @@ -58,6 +57,7 @@ class Piece public: + #ifdef BUILD_GRAPHICS class TextureManager : public Graphics::TextureManager, private Array { public: @@ -86,7 +86,7 @@ class Piece break; } } - + #endif //BUILD_GRAPHICS @@ -108,8 +108,9 @@ class Board void Print(FILE * stream, const Piece::Colour & reveal=Piece::BOTH); //Print board void PrintPretty(FILE * stream, const Piece::Colour & reveal=Piece::BOTH); //Print board using colour + #ifdef BUILD_GRAPHICS void Draw(const Piece::Colour & reveal=Piece::BOTH, bool showRevealed = true); //Draw board - + #endif //BUILD_GRAPHICS bool AddPiece(int x, int y, const Piece::Type & newType, const Piece::Colour & newColour); //Add piece to board