summaryrefslogtreecommitdiffstats
path: root/src/Game.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-12-26 03:19:49 +0100
committerMatthias Schiffer <matthias@gamezock.de>2009-12-26 03:19:49 +0100
commit5dc3e727e0fc470d344da8b18c3588104585496f (patch)
tree66f22567f013753b7d72e149ce3a66ddd71cec46 /src/Game.h
parentd1c909ca57b1685d8c4303d1ff9018fdb152f889 (diff)
downloadzoom++-5dc3e727e0fc470d344da8b18c3588104585496f.tar
zoom++-5dc3e727e0fc470d344da8b18c3588104585496f.zip
Added collision detection
Diffstat (limited to 'src/Game.h')
-rw-r--r--src/Game.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Game.h b/src/Game.h
index b5c7ee7..b0e11a1 100644
--- a/src/Game.h
+++ b/src/Game.h
@@ -49,11 +49,16 @@ class Game {
this->input = input;
}
+ bool doesCollide(const vmml::vec3f &move) const;
+
void turn(float x, float y);
void run(int delta);
void render();
private:
+ static const float PLAYER_SPEED;
+ static const float PLAYER_RADIUS;
+
Renderer renderer;
boost::shared_ptr<Level> level;