--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Graphics/PlayerInfoView.hh Wed Jan 21 03:33:35 2009 +0200
@@ -0,0 +1,37 @@
+#ifndef GRAPHICS_PLAYER_INFO_VIEW_HH
+#define GRAPHICS_PLAYER_INFO_VIEW_HH
+
+#include "View.hh"
+#include "../Player.hh"
+
+namespace graphics
+{
+
+class PlayerInfoView : public View {
+private:
+ /**
+ * The player whose info we are drawing
+ *
+ * XXX: should this be LocalPlayer or is Player good?
+ */
+ Player *player;
+
+public:
+ /**
+ * Set initial view area and player
+ */
+ PlayerInfoView (const PixelArea &area, Player *player) :
+ View(area), player(player)
+ {
+
+ }
+
+ /**
+ * Draw the player info onto the given display
+ */
+ virtual void draw (Display *display);
+};
+
+}
+
+#endif