X-Git-Url: https://git.ucc.asn.au/?p=progcomp2012.git;a=blobdiff_plain;f=judge%2Fmanager%2Fhuman_controller.cpp;h=c2470d3311019e40fe15f03e78e69b08c77f178e;hp=bf43e8d71eda1323b89a486a39afd81430f926ea;hb=6066930db862d08091a637a75137de34bbcddef5;hpb=1a03b2543b67f0551e62babec4cd119f1e0e4640 diff --git a/judge/manager/human_controller.cpp b/judge/manager/human_controller.cpp index bf43e8d..c2470d3 100644 --- a/judge/manager/human_controller.cpp +++ b/judge/manager/human_controller.cpp @@ -110,9 +110,10 @@ MovementResult Human_Controller::QueryMove(string & buffer) } - + #ifdef BUILD_GRAPHICS if (graphicsEnabled) { + fprintf(stdout, "Click to move!\n"); SDL_Event event; int mouseClick = 0; @@ -164,8 +165,10 @@ MovementResult Human_Controller::QueryMove(string & buffer) } } fprintf(stdout, "Move complete!\n"); + } else + #endif //BUILD_GRAPHICS { buffer.clear(); for (char in = fgetc(stdin); in != '\n'; in = fgetc(stdin))