Files
wagic/projects/mtg/include/GuiPhaseBar.h
jean.chalard 2f3259fd55 J :
* Add the rolling phasebar.
* This is a preview version. It shares most of the code with the definitive
  version, but when the real code is checked in, this will be deleted.
2009-06-22 14:45:27 +00:00

28 lines
509 B
C++

#ifndef _GUIPHASEBAR_H_
#define _GUIPHASEBAR_H_
#include "GuiLayers.h"
#include "PhaseRing.h"
#include "WEvent.h"
class GuiPhaseBar : public GuiLayer
{
static const unsigned Width = 28;
static const unsigned Height = Width;
static const unsigned Phases = 12;
protected:
JQuad* quad;
Phase* phase;
float angle;
public:
GuiPhaseBar(GameObserver* game);
~GuiPhaseBar();
void Update(float dt);
virtual void Render();
virtual int receiveEvent(WEvent * e);
};
#endif // _GUIPHASEBAR_H_