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:
13
projects/mtg/src/WEvent.cpp
Normal file
13
projects/mtg/src/WEvent.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "../include/WEvent.h"
|
||||
#include "../include/MTGCardInstance.h"
|
||||
#include "../include/MTGGameZones.h"
|
||||
|
||||
WEvent::WEvent(int _type){
|
||||
type=_type;
|
||||
}
|
||||
|
||||
WEventZoneChange::WEventZoneChange(MTGCardInstance * _card, MTGGameZone * _from, MTGGameZone *_to):WEvent(CHANGE_ZONE){
|
||||
card = _card;
|
||||
from = _from;
|
||||
to = _to;
|
||||
}
|
||||
Reference in New Issue
Block a user