diff options
Diffstat (limited to 'AIController.h')
-rw-r--r-- | AIController.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/AIController.h b/AIController.h new file mode 100644 index 0000000..4a647a7 --- /dev/null +++ b/AIController.h @@ -0,0 +1,32 @@ +#ifndef _AI_CONTROLLER_H
+#define _AI_CONTROLLER_H
+
+#include "Controller.h"
+
+#ifndef max
+ #define max( a, b ) ( ((a) > (b)) ? (a) : (b) )
+#endif
+
+#ifndef min
+ #define min( a, b ) ( ((a) < (b)) ? (a) : (b) )
+#endif
+
+class AIController : public Controller
+{
+
+public:
+ AIController(Player& player, Field& field, int inhibitSpeed);
+ virtual ~AIController(void);
+
+ void think();
+
+private:
+ void turnRandom();
+
+ Field& m_field;
+ int m_inhibit;
+ int m_inhibitSpeed;
+};
+
+
+#endif
|