--- a/src/Rope.hh Thu Jan 22 00:28:26 2009 +0200
+++ b/src/Rope.hh Thu Jan 22 01:53:05 2009 +0200
@@ -5,11 +5,6 @@
// and the Player wants to know the rope.
class Rope;
-#include "Player.hh"
-#include "PhysicsObject.hh"
-
-#include "Graphics/Drawable.hh"
-
/**
* The rope can be in one of three states...
*
@@ -21,6 +16,11 @@
ROPE_FIXED //<<< The rope is attached to something
};
+#include "Player.hh"
+#include "PhysicsObject.hh"
+
+#include "Graphics/Drawable.hh"
+
/**
* A rope is a PhysicsObject that can be thrown, whereupon it then flies until it hits something, whereupon
* it attaches to that, and sets itself as the player's pivot.
@@ -84,10 +84,12 @@
virtual void tick (TimeMS dt);
+#if GRAPHICS_ENABLED
/*
* Draw the rope, in the FLYING/FIXED state
*/
virtual void draw (graphics::Display &display, PixelCoordinate camera);
+#endif
};
#endif