c0df81163d3758af6e171e0fcd5b87fc879e3648
[progcomp2012.git] / manager / human_controller.h
1 #ifndef HUMAN_CONTROLLER_H
2 #define HUMAN_CONTROLLER_H
3
4 #include "controller.h"
5
6 /**
7  * Class to control a human player playing Stratego
8  */
9 class Human_Controller : public Controller
10 {
11         public:
12                 Human_Controller(const Piece::Colour & newColour, const bool enableGraphics) : Controller(newColour), graphicsEnabled(enableGraphics) {}
13                 virtual ~Human_Controller() {}
14
15                 virtual MovementResult QuerySetup(const char * opponentName, std::string setup[]);
16                 virtual MovementResult QueryMove(std::string & buffer); 
17                 virtual void Message(const char * message) {fprintf(stderr, "Recieved message \"%s\" from manager.\n", message);}
18         
19         private:
20                 const bool graphicsEnabled;
21
22
23 };
24
25 #endif //AI_CONTROLLER_H

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