- Send an event when Phase changes
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-06-16 14:10:33 +00:00
parent 96963fc5ac
commit 7804cbbd64
3 changed files with 22 additions and 0 deletions
+9
View File
@@ -4,12 +4,14 @@
class MTGCardInstance;
class MTGGameZone;
class Damage;
class Phase;
class WEvent{
public:
enum{
CHANGE_ZONE = 1,
DAMAGE = 2,
CHANGE_PHASE = 3,
};
int type;
WEvent(int _type);
@@ -32,4 +34,11 @@ public:
WEventDamage(Damage * _damage);
};
class WEventPhaseChange: public WEvent{
public:
Phase * from;
Phase * to;
WEventPhaseChange(Phase * _from, Phase * _to);
};
#endif