Erwan
- 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:
24
projects/mtg/include/WEvent.h
Normal file
24
projects/mtg/include/WEvent.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user