- Added WEvent class, allows to send events to abilities
- Cards that change zones now becomes new objects (as specified in the Comprehensive rules). This should allow to fix lots of stupid bugs in the near future, but probably brings loads of new issues :(
This commit is contained in:
wagic.the.homebrew
2009-02-16 13:46:14 +00:00
parent db90797fb0
commit f87c703866
22 changed files with 307 additions and 112 deletions
+3
View File
@@ -16,6 +16,7 @@
class MTGCardInstance;
class Targetable;
class TargetChooser;
class WEvent;
class ActionElement: public JGuiObject{
protected:
@@ -39,6 +40,8 @@ class ActionElement: public JGuiObject{
virtual int isReactingToTargetClick(Targetable * card);
virtual int reactToTargetClick(Targetable * card);
virtual int isReactingToClick(MTGCardInstance * card){return 0;};
virtual int stillInUse(MTGCardInstance * card){return 0;};
virtual int receiveEvent(WEvent * event){return 0;};
virtual int reactToClick(MTGCardInstance * card){return 0;};
virtual const char * getMenuText(){return "Ability";};
};