- tap/untap of a card now sends an event
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-06-25 14:23:21 +00:00
parent 3d414f74b3
commit 630a239f31
14 changed files with 97 additions and 60 deletions
+10 -1
View File
@@ -9,12 +9,13 @@ class Phase;
class WEvent{
public:
enum{
NOT_SPECIFIED = 0,
CHANGE_ZONE = 1,
DAMAGE = 2,
CHANGE_PHASE = 3,
};
int type;
WEvent(int _type);
WEvent(int _type = NOT_SPECIFIED);
virtual ~WEvent() {};
};
@@ -41,4 +42,12 @@ public:
WEventPhaseChange(Phase * _from, Phase * _to);
};
class WEventCardTap: public WEvent{
public:
MTGCardInstance * card;
int before;
int after;
WEventCardTap(MTGCardInstance * card, int before, int after);
};
#endif