|
||||||||||
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 net.sf.magicproject.test.Or
public class Or
Constructor Summary | |
---|---|
Or(Test leftTest,
Test rightTest)
Creates a new instance of Or specifying all attributes of this class. |
Method Summary | |
---|---|
static Test |
append(Test leftTest,
Test rightTest)
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. |
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, getOptimizedController |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Or(Test leftTest, Test rightTest)
leftTest
- the left boolean expressionrightTest
- the right boolean expressionMethod Detail |
---|
public Test getConstraintTest(java.util.HashMap<java.lang.String,Expression> values)
getConstraintTest
in class BinaryTest
values
- are referecable values.
public boolean test(Ability ability, Targetable tested)
Test
test
in class BinaryTest
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 static Test append(Test leftTest, Test rightTest)
leftTest
- the left testrightTest
- the right test
public boolean testPreemption(Ability ability, Targetable tested)
Test
testPreemption
in class BinaryTest
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 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 |