human_controller.h 709 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
#ifndef HUMAN_CONTROLLER_H
#define HUMAN_CONTROLLER_H

#include "controller.h"

/**
 * Class to control a human player playing Stratego
 */
class Human_Controller : public Controller
{
	public:
12
		Human_Controller(const Piece::Colour & newColour, const bool enableGraphics) : Controller(newColour, "human"), graphicsEnabled(enableGraphics) {}
13
14
15
16
17
18
19
20
21
22
23
24
25
		virtual ~Human_Controller() {}

		virtual MovementResult QuerySetup(const char * opponentName, std::string setup[]);
		virtual MovementResult QueryMove(std::string & buffer); 
		virtual void Message(const char * message) {fprintf(stderr, "Recieved message \"%s\" from manager.\n", message);}
	
	private:
		const bool graphicsEnabled;


};

#endif //AI_CONTROLLER_H