|
||||||||||
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.TestExpr
public abstract class TestExpr
This is a class representing a comparaison of two integer values.
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 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 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 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
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 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 |