src/Graphics/PlayerInfoView.hh
branchnew_graphics
changeset 411 106aaf6eadfe
parent 410 41fd46cffc52
child 412 721c60072091
equal deleted inserted replaced
410:41fd46cffc52 411:106aaf6eadfe
       
     1 #ifndef GRAPHICS_PLAYER_INFO_VIEW_HH
       
     2 #define GRAPHICS_PLAYER_INFO_VIEW_HH
       
     3 
       
     4 #include "View.hh"
       
     5 #include "../Player.hh"
       
     6 
       
     7 namespace graphics
       
     8 {
       
     9 
       
    10 class PlayerInfoView : public View {
       
    11 private:
       
    12     /** 
       
    13      * The player whose info we are drawing 
       
    14      *
       
    15      * XXX: should this be LocalPlayer or is Player good?
       
    16      */
       
    17     Player *player;
       
    18 
       
    19 public:
       
    20     /**
       
    21      * Set initial view area and player
       
    22      */
       
    23     PlayerInfoView (const PixelArea &area, Player *player) :
       
    24         View(area), player(player)
       
    25     {
       
    26 
       
    27     }
       
    28     
       
    29     /**
       
    30      * Draw the player info onto the given display
       
    31      */
       
    32     virtual void draw (Display *display);
       
    33 };
       
    34 
       
    35 }
       
    36 
       
    37 #endif