Files
wagic/projects/mtg/include/GuiAvatars.h
Xawotihs 9adb9d625d - reworked the testsuite and the rules (storyflow) to use the same game deserialization code, moved that code to the players and zone classes
- removed every references to the gameobserver singleton. This object can now be instantiated several times as it's needed for minmax. To be able to do that, I mostly added a reference to a gameobserver from any targetable object (cards, players, spells) and abilities.
2011-10-01 13:30:30 +00:00

36 lines
802 B
C++

#ifndef _GUIAVATARS_H_
#define _GUIAVATARS_H_
#include "GuiLayers.h"
struct GuiAvatar;
class GuiGraveyard;
class GuiLibrary;
class GuiOpponentHand;
class GuiAvatars: public GuiLayer
{
protected:
GuiAvatar* self, *opponent;
GuiGraveyard* selfGraveyard, *opponentGraveyard;
GuiLibrary* selfLibrary, *opponentLibrary;
GuiOpponentHand *opponentHand;
GuiAvatar* active;
public:
GuiAvatars(GameObserver *observer);
~GuiAvatars();
GuiAvatar* GetSelf();
GuiAvatar* GetOpponent();
void Update(float dt);
void Render();
void Activate(PlayGuiObject* c);
void Deactivate(PlayGuiObject* c);
int receiveEventPlus(WEvent*);
int receiveEventMinus(WEvent*);
bool CheckUserInput(JButton key);
float LeftBoundarySelf();
};
#endif // _GUIAVATARS_H_