- 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 :(
24 lines
407 B
C++
24 lines
407 B
C++
#ifndef _WEVENT_H_
|
|
#define _WEVENT_H_
|
|
|
|
class MTGCardInstance;
|
|
class MTGGameZone;
|
|
|
|
class WEvent{
|
|
public:
|
|
enum{
|
|
CHANGE_ZONE = 1,
|
|
};
|
|
int type;
|
|
WEvent(int _type);
|
|
};
|
|
|
|
class WEventZoneChange: public WEvent{
|
|
public:
|
|
MTGCardInstance * card;
|
|
MTGGameZone * from;
|
|
MTGGameZone * to;
|
|
WEventZoneChange(MTGCardInstance * _card, MTGGameZone * _from, MTGGameZone *_to);
|
|
};
|
|
|
|
#endif |