Danbias/Code/Game/GameClient/GameClientState/RespawnUI.h

36 lines
743 B
C
Raw Normal View History

2014-02-19 13:15:19 +01:00
#ifndef DANBIAS_CLIENT_RESPAWN_UI_H
#define DANBIAS_CLIENT_RESPAWN_UI_H
#include "GameStateUI.h"
#include "Buttons\Text_UI.h"
#include "Buttons\Plane_UI.h"
2014-02-19 13:15:19 +01:00
namespace DanBias { namespace Client
{
class RespawnUI : public GameStateUI
{
public:
RespawnUI( ::Oyster::Network::NetworkClient *connection, float delay );
virtual ~RespawnUI();
bool Init();
2014-02-19 13:15:19 +01:00
// TODO countdown
2014-02-19 13:15:19 +01:00
UIState Update( float deltaTime );
bool HaveGUIRender() const;
bool HaveTextRender() const;
void RenderGUI() const;
void RenderText() const;
bool Release();
void SetCountdown( float cd );
2014-02-19 13:15:19 +01:00
private:
::Oyster::Network::NetworkClient *netClient;
float countDown;
// TODO add multiple UI elements
Text_UI* text;
2014-02-19 13:15:19 +01:00
RespawnUI();
};
} }
#endif