net.sf.magicproject.event
Class ModifiedPropertyIntersection
java.lang.Object
net.sf.magicproject.event.MEventListener
net.sf.magicproject.event.TriggeredEvent
net.sf.magicproject.event.ModifiedPropertyIntersection
- All Implemented Interfaces:
- RegisterableEvent
public class ModifiedPropertyIntersection
- extends TriggeredEvent
- Since:
- 0.85
- Author:
- Fabrice Daugan
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EVENT
public static final Event EVENT
- The event type.
ModifiedPropertyIntersection
public ModifiedPropertyIntersection(int idZone,
Test test,
MCard card,
Expression propertyMask)
- Creates a new instance of MEventModifiedProperty
- Parameters:
idZone
- the place constraint to activate this eventtest
- the test of this eventcard
- is the card owning this cardpropertyMask
-
clone
public MEventListener clone(MCard card)
- Description copied from class:
MEventListener
- Return a copy of this with the specified owner
- Specified by:
clone
in class TriggeredEvent
- Parameters:
card
- is the card of the ability of this event
- Returns:
- copy of this event
isMatching
public boolean isMatching(Ability ability,
Targetable target,
int idType)
- Tell if the current event matches with this event. If there is an
additional code to check, it'would be checked if the main event matches
with the main event
- Parameters:
ability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.target
- the target owning the modified property.idType
- the modified property
- Returns:
- true if the current event match with this event
dispatchEvent
public static void dispatchEvent(Targetable target,
int idType)
- Dispatch this event to all active event listeners able to understand this
event. The listening events able to understand this event are
this
and other multiple event listeners. For each event listeners having
responded they have been activated, the corresponding ability is added to
the triggered buffer zone of player owning this ability
- Parameters:
target
- is the targetable owning the modified propertyidType
- the modified property- See Also:
isMatching(Ability, Targetable, int)
getIdEvent
public final Event getIdEvent()
- Description copied from class:
MEventListener
- Return the idEvent of this event
- Specified by:
getIdEvent
in class TriggeredEvent
- Returns:
- the idEvent of this event
Copyright © 2003-2007 Magic-Project. All Rights Reserved.