More moving stuff around
git-svn-id: https://aklabs.dyndns.org/svn/aklabs/trunk/games/spaceshooter@52 eb184899-6090-47d4-a65b-558f62f6ea1c
This commit is contained in:
21
cpp/HUD.h
Executable file
21
cpp/HUD.h
Executable file
@@ -0,0 +1,21 @@
|
||||
#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__
|
||||
Reference in New Issue
Block a user