Files
wagic/projects/mtg/src/WEvent.cpp
T
wagic.the.homebrew@gmail.com 7804cbbd64 Erwan
- Send an event when Phase changes
2009-06-16 14:10:33 +00:00

24 lines
607 B
C++

#include "../include/WEvent.h"
#include "../include/MTGCardInstance.h"
#include "../include/MTGGameZones.h"
#include "../include/Damage.h"
#include "../include/PhaseRing.h"
WEvent::WEvent(int _type){
type=_type;
}
WEventZoneChange::WEventZoneChange(MTGCardInstance * _card, MTGGameZone * _from, MTGGameZone *_to):WEvent(CHANGE_ZONE){
card = _card;
from = _from;
to = _to;
}
WEventDamage::WEventDamage(Damage *_damage):WEvent(DAMAGE){
damage = _damage;
}
WEventPhaseChange::WEventPhaseChange(Phase * _from, Phase * _to):WEvent(CHANGE_PHASE){
from = _from;
to = _to;
}