|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.event.MEventListener net.sf.magicproject.event.TriggeredEvent net.sf.magicproject.event.FacedDown
public class FacedDown
Event generated when a card is faced down.
Field Summary | |
---|---|
static Event |
EVENT
The event type. |
Fields inherited from class net.sf.magicproject.event.TriggeredEvent |
---|
replacement |
Fields inherited from class net.sf.magicproject.event.MEventListener |
---|
CAN_I_CAST_ABILITIES, card, REPLACEMENT_ABILITIES, test, TRIGGRED_ABILITIES |
Constructor Summary | |
---|---|
FacedDown(int idZone,
Test test,
MCard card)
Creates a new instance of FacedUp specifying all attributes of this class. |
Method Summary | |
---|---|
MEventListener |
appendOr(MEventListener other)
Create and returns an union of this event and the specified one. |
MEventListener |
clone(MCard card)
Return a copy of this with the specified owner |
static void |
dispatchEvent(MCard facedDownCard)
Dispatch this event to all active event listeners able to understand this event. |
Event |
getIdEvent()
Return the idEvent of this event |
boolean |
isMatching(Ability ability,
MCard facedDownCard)
Tell if the current event matches with this event. |
Methods inherited from class net.sf.magicproject.event.TriggeredEvent |
---|
isActivated, isTriggered, registerToManager, removeFromManager, toHtmlString |
Methods inherited from class net.sf.magicproject.event.MEventListener |
---|
getIdPlace, isWellPlaced, isWellPlaced, reCheck, reCheck, reset |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Event EVENT
Constructor Detail |
---|
public FacedDown(int idZone, Test test, MCard card)
idZone
- the place constraint to activate this eventtest
- the test of this eventcard
- is the card owning this cardMethod Detail |
---|
public MEventListener clone(MCard card)
clone
in class TriggeredEvent
card
- is the card of the ability of this event
public boolean isMatching(Ability ability, MCard facedDownCard)
facedDownCard
- the became taped/untappedability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.
public static void dispatchEvent(MCard facedDownCard)
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
facedDownCard
- the became taped/untappedisMatching(Ability, MCard)
public final Event getIdEvent()
MEventListener
getIdEvent
in class TriggeredEvent
public MEventListener appendOr(MEventListener other)
null
is returned.
appendOr
in class MEventListener
other
- the event to append with 'or' operator.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |