summaryrefslogtreecommitdiffstats
path: root/Controller.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 /Controller.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 'Controller.h')
-rw-r--r--Controller.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/Controller.h b/Controller.h
index 95a9e28..5f63d82 100644
--- a/Controller.h
+++ b/Controller.h
@@ -7,22 +7,19 @@
class Controller
{
public:
- Controller(Player &player);
+ Controller(Player& player);
virtual ~Controller(void);
-public:
- Player &getPlayer();
+ Player& getPlayer();
+
/**
- * This function will be useful if an IA controller needs to analyse the world
- * in order to take decisions.
+ * This function will be called on every turn and should update
+ * m_player directly in order to take decisions.
**/
- void think();
- //Game &getGame();
-protected:
- virtual bool changeDirection(VelocityVector v);
+ virtual void think() = 0;
protected:
- Player &m_player;
+ Player& m_player;
};
#endif