|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.test.Test net.sf.magicproject.test.TestBoolean net.sf.magicproject.test.BinaryTest
public abstract class BinaryTest
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. |
abstract Test |
getConstraintTest(java.util.HashMap<java.lang.String,Expression> values)
Return this test where values depending on values of this action have been replaced. |
abstract boolean |
test(Ability ability,
Targetable tested)
Indicates if the specified card matches with the test to do |
abstract boolean |
testPreemption(Ability ability,
Targetable tested)
Indicates if the specified card matches with the test to do. |
Methods inherited from class net.sf.magicproject.test.Test |
---|
getConstraintTest, getOptimizedController |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public abstract boolean test(Ability ability, Targetable tested)
Test
test
in class TestBoolean
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 abstract Test getConstraintTest(java.util.HashMap<java.lang.String,Expression> values)
values
- are referecable values.
public void extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
Test
extractTriggeredEvents
in class Test
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 abstract boolean testPreemption(Ability ability, Targetable tested)
Test
testPreemption
in class Test
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 |