exile zone

player only, todo opponent and ability activation for exile
This commit is contained in:
Anthony Calosa
2015-10-26 06:50:19 +08:00
parent 0594822872
commit cf0f9d43fa
7 changed files with 76 additions and 8 deletions

View File

@@ -7,6 +7,7 @@ struct GuiAvatar;
class GuiGraveyard;
class GuiLibrary;
class GuiOpponentHand;
class GuiExile;
class GuiAvatars: public GuiLayer
{
protected:
@@ -14,6 +15,7 @@ protected:
GuiGraveyard* selfGraveyard, *opponentGraveyard;
GuiLibrary* selfLibrary, *opponentLibrary;
GuiOpponentHand *opponentHand;
GuiExile* selfExile, *opponentExile;
GuiAvatar* active;
public:

View File

@@ -88,4 +88,14 @@ public:
virtual ostream& toString(ostream& out) const;
};
class GuiExile: public GuiGameZone
{
public:
Player * player;
GuiExile(float _x, float _y, bool hasFocus, Player * player, GuiAvatars* parent);
int receiveEventPlus(WEvent*);
int receiveEventMinus(WEvent*);
virtual ostream& toString(ostream& out) const;
};
#endif // _GUISTATIC_H_

View File

@@ -10,6 +10,7 @@
#define GUI_GRAVEYARD 3
#define GUI_LIBRARY 4
#define GUI_OPPONENTHAND 5
#define GUI_EXILE 6
#include <JGui.h>
#include "WEvent.h"