--- a/src/Player.hh Thu Jan 22 00:28:26 2009 +0200
+++ b/src/Player.hh Thu Jan 22 01:53:05 2009 +0200
@@ -152,6 +152,7 @@
*/
void addKill ();
+#if GRAPHICS_ENABLED
/*
* Drawing requires the skin texture, which is loaded on-demand when draw is called
*/
@@ -162,7 +163,8 @@
* Draw this player
*/
virtual void draw (graphics::Display &display, PixelCoordinate camera);
-
+#endif
+
/**
* Returns statistics on the number of kills for this player
*/
@@ -200,10 +202,12 @@
*/
virtual void handleInput (PlayerInput input, TimeMS dt);
+#if GRAPHICS_ENABLED
/**
* As Player, but also draws the current weapon name if displayWeapon
*/
virtual void draw (graphics::Display &display, bool displayWeapon, PixelCoordinate camera);
+#endif
};
/**