Minor rule changes
[progcomp2012.git] / judge / manager / ai_controller.h
index 7d62591..0a4baeb 100644 (file)
@@ -11,7 +11,7 @@
 class AI_Controller : public Controller, private Program
 {
        public:
-               AI_Controller(const Piece::Colour & newColour, const char * executablePath, const double newTimeout = 2.0) : Controller(newColour, executablePath), Program(executablePath), timeout(newTimeout) {}
+               AI_Controller(const Piece::Colour & newColour, const char * executablePath, const double newTimeout = 60.0) : Controller(newColour, executablePath), Program(executablePath), timeout(newTimeout) {}
                virtual ~AI_Controller() {}
 
                
@@ -19,7 +19,13 @@ class AI_Controller : public Controller, private Program
                virtual MovementResult QuerySetup(const char * opponentName,std::string setup[]);
                virtual MovementResult QueryMove(std::string & buffer);
 
-               virtual void Message(const char * message) {Program::SendMessage(message);}
+               virtual void Message(const char * message) 
+               {
+                       //fprintf(stderr, "Sending message \"%s\" to AI program...\n", message);
+                       Program::SendMessage(message);
+               }
+               virtual void Pause() {Program::Pause();} //Hack wrapper
+               virtual void Continue() {Program::Continue();} //Hack wrapper
 
                virtual bool Valid() const {return Program::Running();}
 

UCC git Repository :: git.ucc.asn.au