src/Graphics/PlayerInfo.hh
author Tero Marttila <terom@fixme.fi>
Wed, 21 Jan 2009 01:57:24 +0200
branchnew_graphics
changeset 410 41fd46cffc52
permissions -rw-r--r--
start working out the Graphics/* code, this is a long way from compiling, let alone working
#ifndef GRAPHICS_PLAYER_INFO_HH
#define GRAPHICS_PLAYER_INFO_HH

#include "View.hh"
#include "../Player.hh"

namespace graphics
{

class PlayerInfo : 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
     */
    PlayerInfo (const PixelArea &area, Player *player) :
        View(area), player(player)
    {

    }
    
    /**
     * Draw the player info onto the given display
     */
    virtual void draw (Display *display);
}

}

#endif