Mouse support in graveyards an library browsing during battle
This commit is contained in:
@@ -21,6 +21,7 @@ class CardDisplay:public PlayGuiObjectController{
|
||||
void rotateLeft();
|
||||
void rotateRight();
|
||||
bool CheckUserInput(JButton key);
|
||||
bool CheckUserInput(int x, int y);
|
||||
virtual void Update(float dt);
|
||||
void Render();
|
||||
void init(MTGGameZone * zone);
|
||||
|
||||
@@ -30,6 +30,7 @@ class GuiAvatars : public GuiLayer
|
||||
int receiveEventPlus(WEvent*);
|
||||
int receiveEventMinus(WEvent*);
|
||||
bool CheckUserInput(JButton key);
|
||||
bool CheckUserInput(int x, int y);
|
||||
float LeftBoundarySelf();
|
||||
};
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ struct GuiGameZone : public GuiStatic{
|
||||
int showCards;
|
||||
virtual void Render();
|
||||
virtual bool CheckUserInput(JButton key);
|
||||
virtual bool CheckUserInput(int x, int y);
|
||||
virtual void Update(float dt);
|
||||
GuiGameZone(float x, float y, bool hasFocus, MTGGameZone * zone, GuiAvatars* parent);
|
||||
~GuiGameZone();
|
||||
|
||||
@@ -34,6 +34,7 @@ class PlayGuiObject: public JGuiObject, public JGuiListener, public Pos{
|
||||
PlayGuiObject(float desiredHeight, float x, float y, bool hasFocus);
|
||||
PlayGuiObject(float desiredHeight, const Pos& ref, bool hasFocus);
|
||||
virtual void ButtonPressed(int controllerId, int controlId){};
|
||||
virtual bool getTopLeft(int& top, int& left) {top = actY; left = actX; return true;};
|
||||
virtual ~PlayGuiObject(){};
|
||||
vector<Effect*> effects;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user