|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.magicproject.test.Test
net.sf.magicproject.test.TestBoolean
net.sf.magicproject.test.BinaryTest
net.sf.magicproject.test.And
public class And
| Method Summary | |
|---|---|
static Test |
append(Test... tests)
Return a new test equals to "leftTest && rightTest" |
Test |
getConstraintTest(java.util.HashMap<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. |
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. |
java.lang.String |
toString()
|
| Methods inherited from class net.sf.magicproject.test.BinaryTest |
|---|
extractTriggeredEvents |
| Methods inherited from class net.sf.magicproject.test.Test |
|---|
getConstraintTest |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Test append(Test... tests)
tests - the list of tests to append
public Test getConstraintTest(java.util.HashMap<java.lang.String,Expression> values)
BinaryTest
getConstraintTest in class BinaryTestvalues - are referecable values.
public boolean test(Ability ability,
Targetable tested)
Test
test in class BinaryTestability - 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 Player getOptimizedController(Ability ability,
ContextEventListener context)
Testnull value is returned.
getOptimizedController in class Testability - 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)
Test
testPreemption in class BinaryTestability - 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 java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||