summaryrefslogtreecommitdiffstats
path: root/AIController.h
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2011-11-29 01:58:45 +0100
committerDominique Martinet <asmadeus@codewreck.org>2011-11-29 01:58:45 +0100
commitd9154634911f757dc645f653d3b42d428dd4f21f (patch)
treed43a5097687d8660cea7d659a78dde06b7196562 /AIController.h
parentf096cba3b737eb01e657e76187cf140f4c7a1acc (diff)
more AI work, just gotta make the compiler happy now... where's mario when we need him :) (uncomment part in game to call the think function
Diffstat (limited to 'AIController.h')
-rw-r--r--AIController.h32
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