| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.magicproject.event.MEventListener
net.sf.magicproject.event.TriggeredEvent
net.sf.magicproject.event.UpdateToughness
public class UpdateToughness
When this event is raised. The attached test is applied by default on the card to update. The 'context.card' object can be used in the actions to acceed to the card to update.
| Field Summary | |
|---|---|
| static Event | EVENTThe 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 | 
| Method Summary | |
|---|---|
|  MEventListener | clone(MCard card)Return a copy of this with the specified owner | 
| static void | dispatchEvent(MCard toUpdate)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 toUpdate)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 | 
|---|
| appendOr, 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
| Method Detail | 
|---|
public MEventListener clone(MCard card)
clone in class TriggeredEventcard - is the card of the ability of this event
public boolean isMatching(Ability ability,
                          MCard toUpdate)
ability - is the ability owning this test. The card component of this
          ability should correspond to the card owning this test too.toUpdate - the card to be updated.
public static void dispatchEvent(MCard toUpdate)
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
toUpdate - the card to be updated.isMatching(Ability, MCard)public final Event getIdEvent()
MEventListener
getIdEvent in class TriggeredEvent| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||