|
||||||||||
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.Not
public class Not
Not.java Created on 25 feb. 2004
Constructor Summary | |
---|---|
Not(Test test)
Create a new instance of Not given the other 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. |
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.Test |
---|
getConstraintTest, getOptimizedController |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Not(Test test)
test
- the other test.Method Detail |
---|
public 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 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
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 |