src/Graphics/PlayerInfo.hh
branchnew_graphics
changeset 410 41fd46cffc52
equal deleted inserted replaced
409:1a03ff151abc 410:41fd46cffc52
       
     1 #ifndef GRAPHICS_PLAYER_INFO_HH
       
     2 #define GRAPHICS_PLAYER_INFO_HH
       
     3 
       
     4 #include "View.hh"
       
     5 #include "../Player.hh"
       
     6 
       
     7 namespace graphics
       
     8 {
       
     9 
       
    10 class PlayerInfo : 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     PlayerInfo (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