git-svn-id: https://aklabs.dyndns.org/svn/aklabs/trunk/games/spaceshooter@52 eb184899-6090-47d4-a65b-558f62f6ea1c
22 lines
419 B
C++
Executable File
22 lines
419 B
C++
Executable File
#ifndef __HUD_H__
|
|
#define __HUD_H__
|
|
|
|
#include "Character.h"
|
|
|
|
class HUDDisplay : public Display2D
|
|
{
|
|
protected:
|
|
Player *target;
|
|
Actor *livesActor;
|
|
std::string text;
|
|
public:
|
|
HUDDisplay();
|
|
SDL_Surface *nextFrame();
|
|
void setText(std::string text);
|
|
void setTarget(Player *tgt);
|
|
void setLivesActor(Actor *actor);
|
|
void update(int logicOnly = 0);
|
|
};
|
|
|
|
#endif // __HUD_H__
|