Files
wagic/projects/mtg/include/GuiPhaseBar.h
Xawotihs@gmail.com f45c8e1d41 Just won my first Wagic network game :)
In details:
- I removed my player swap idea, it caused tons of issues with randoms
- instead I simply keep both peer on the exact same game and added one single parameter allowing to configure the view on the game. So, each peer is rendering the same game (gameObserver class) from a different player point of view (DuelLayers and related classes).
- a lot of gui stuff are missing to prevent user forbidden interactions but it works fine on Windows
2013-01-26 16:42:16 +00:00

28 lines
590 B
C++

#ifndef _GUIPHASEBAR_H_
#define _GUIPHASEBAR_H_
#include "GuiLayers.h"
#include "PhaseRing.h"
#include "WEvent.h"
class GuiPhaseBar: public GuiLayer, public PlayGuiObject
{
protected:
Phase* phase;
float angle;
float zoomFactor;
DuelLayers* mpDuelLayers;
public:
GuiPhaseBar(DuelLayers* duelLayers);
~GuiPhaseBar();
void Update(float dt);
virtual void Render();
virtual int receiveEventMinus(WEvent * e);
virtual ostream& toString(ostream& out) const;
virtual void Entering();
virtual bool Leaving(JButton key);
};
#endif // _GUIPHASEBAR_H_