src/Graphics/PlayerInfoView.hh
author Tero Marttila <terom@fixme.fi>
Wed, 21 Jan 2009 23:07:22 +0200
branchnew_graphics
changeset 412 721c60072091
parent 411 106aaf6eadfe
permissions -rw-r--r--
new graphics code compiles... no, it doesn't work yet
#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