| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.magicproject.test.Test
public abstract class Test
| Method Summary | |
|---|---|
|  void | extractTriggeredEvents(java.util.List<MEventListener> res,
                       MCard source,
                       Test globalTest)Add to the specified list, the events modifying the result of this test. | 
|  Test | getConstraintTest(java.util.Map<java.lang.String,Expression> values)Return this test where values depending on values of this action have been replaced. | 
|  Player | getOptimizedController(Ability ability,
                       ContextEventListener context)Return the controller making true this test. | 
| abstract  boolean | test(Ability ability,
     Targetable tested)Indicates if the specified card matches with the test to do | 
|  boolean | testPreemption(Ability ability,
               Targetable tested)Indicates if the specified card matches with the test to do. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public Test getConstraintTest(java.util.Map<java.lang.String,Expression> values)
values - are referencable values.
public abstract boolean test(Ability ability,
                             Targetable tested)
ability - is the ability owning this test. The card component of this
          ability should correspond to the card owning this test too.tested - the tested card
public void extractTriggeredEvents(java.util.List<MEventListener> res,
                                   MCard source,
                                   Test globalTest)
res - is the list of events to fillsource - is the card source of eventglobalTest - the optional global test to include in the event test.
public Player getOptimizedController(Ability ability,
                                     ContextEventListener context)
null value is returned.
ability - is the ability owning this test. The card component of this
          ability should correspond to the card owning this test too.context - is the context of current ability
null value is
         returned.
public boolean testPreemption(Ability ability,
                              Targetable tested)
ability - is the ability owning this test. The card component of this
          ability should correspond to the card owning this test too.tested - the tested card
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||