|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<IdTest> net.sf.magicproject.test.IdTest
public enum IdTest
Enum Constant Summary | |
---|---|
ABILITY_IS
To test the current ability's name. |
|
AND
Evaluate the first test, then if it was true, evaluate the second and return it's value. |
|
CONTEXT_TEST
|
|
CONTROLLER
Compare the controller of the current card to the player identified by a code. |
|
DATABASE
Has database property/value. |
|
DECK_COUNTER
Deck counter. |
|
DIFFERENT
This value identify the test 'nb1 ! |
|
EQUAL
This value identify the test 'nb1 == nb2'. |
|
FALSE
Value of type of test representing the ALWAYS false. |
|
HAS
|
|
HAS_ABILITY
Is the tested card has the specified ability |
|
HAS_ACTION
|
|
HAS_COLOR
Compare the color of the current card to the color identified by a code. |
|
HAS_IDCARD
Compare the card type identifier of the current card to the card type identified by a code. |
|
HAS_KEYWORD
Test if the tested card has a specified keyword. |
|
HAS_NAME
Compare the name of tested card with the specified card. |
|
HAS_PRIVATE_OBJECT
Test if the tested component has a specified private object. |
|
HAS_PROPERTY
Compare the property of the current card to the property identified by a code. |
|
HAS_PROPERTY_INTERSECTION_COLOR
|
|
HAS_PROPERTY_INTERSECTION_IDCARD
|
|
HAS_PROPERTY_INTERSECTION_PROPERTY
|
|
HAS_PROPERTY_NOT_FROM
Compare the property of the current card to the property identified by a code. |
|
IDPOSITION
Compare the position of the current card to the zone identified by a code. |
|
IN_IDCARD
Compare the card type identifier of the current card to the card type identified by a code. |
|
IN_ZONE
Compare the zone of the current card to the zone identified by a code. |
|
INF
This value identify the test 'nb1 < nb2'. |
|
INF_EQUAL
This value identify the test 'nb1 <= nb2'. |
|
IS_ABILITY
|
|
IS_ABORTING
Is this card is aborting |
|
IS_COPY
Is copy. |
|
IS_FACE_UP
To test if the card is face up or not. |
|
IS_PLAYER
|
|
IS_SPELL
|
|
IS_TESTED
Compare the card tested card to the card given by the TestedOn object. |
|
ISME_PLAYER
|
|
NOT
Evaluate the test and return it's opposite value. |
|
OR
Evaluate the first test, then if it was false, evaluate the second and return it's value. |
|
OWNER
Compare the owner of the current card to the player identified by a code. |
|
PHASE_IS
Value of type of test representing the test on id of current phase. |
|
PLAYABLE_ABILITY
To test if the activated ability is playable or not. |
|
PREVIOUS_ZONE
Test the previous place of component. |
|
REFERENCED_TEST
Value of type of test representing a referenced test. |
|
REPLACE_TESTED
Replace nested test. |
|
SOURCE_ABILITY_IS
To test the ability source's name of triggered event. |
|
SOURCE_ACTION_IS
Code test on action source of triggered event. |
|
SUP
This value identify the test 'nb1 > nb2'. |
|
SUP_EQUAL
This value identify the test 'nb1 >= nb2'. |
|
TARGET_LIST
Target list test : contains |
|
TRUE
Value of type of test representing the NO TEST TO DO. |
|
VALID_ATTACHMENT
Reffering to the attachement maintening condition of the tested card. |
|
VALID_TARGET_ATTACHMENT
Reffering to the attachement condition of the tested card. |
|
XOR
Evaluate the both test and return the XOR value. |
Method Summary | |
---|---|
static IdTest |
deserialize(java.io.InputStream input)
Read and return the enum from the given inputstream. |
void |
serialize(java.io.OutputStream out)
Wrtite this enum to the given outputstream. |
static IdTest |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static IdTest[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final IdTest TRUE
public static final IdTest IS_PLAYER
public static final IdTest IS_SPELL
public static final IdTest IS_ABILITY
public static final IdTest SOURCE_ACTION_IS
public static final IdTest HAS_PROPERTY_INTERSECTION_PROPERTY
public static final IdTest HAS_PROPERTY_INTERSECTION_IDCARD
public static final IdTest HAS_PROPERTY_INTERSECTION_COLOR
public static final IdTest PHASE_IS
public static final IdTest REFERENCED_TEST
public static final IdTest EQUAL
public static final IdTest SUP
public static final IdTest INF
public static final IdTest DIFFERENT
public static final IdTest INF_EQUAL
public static final IdTest FALSE
public static final IdTest CONTROLLER
public static final IdTest OWNER
public static final IdTest HAS_PROPERTY
public static final IdTest HAS_IDCARD
public static final IdTest HAS_COLOR
public static final IdTest IN_ZONE
public static final IdTest IDPOSITION
public static final IdTest IN_IDCARD
public static final IdTest ISME_PLAYER
public static final IdTest IS_TESTED
public static final IdTest HAS_PROPERTY_NOT_FROM
public static final IdTest HAS_NAME
public static final IdTest TARGET_LIST
public static final IdTest HAS_ABILITY
public static final IdTest SOURCE_ABILITY_IS
public static final IdTest OR
public static final IdTest AND
public static final IdTest NOT
public static final IdTest XOR
public static final IdTest CONTEXT_TEST
public static final IdTest HAS_ACTION
public static final IdTest ABILITY_IS
public static final IdTest SUP_EQUAL
public static final IdTest PLAYABLE_ABILITY
public static final IdTest HAS
public static final IdTest IS_FACE_UP
public static final IdTest HAS_PRIVATE_OBJECT
public static final IdTest HAS_KEYWORD
public static final IdTest VALID_TARGET_ATTACHMENT
public static final IdTest VALID_ATTACHMENT
public static final IdTest PREVIOUS_ZONE
public static final IdTest IS_ABORTING
public static final IdTest REPLACE_TESTED
public static final IdTest IS_COPY
public static final IdTest DATABASE
public static final IdTest DECK_COUNTER
Method Detail |
---|
public static IdTest[] values()
for (IdTest c : IdTest.values()) System.out.println(c);
public static IdTest valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic void serialize(java.io.OutputStream out) throws java.io.IOException
out
- the stream ths enum would be written.
java.io.IOException
- If some other I/O error occurspublic static IdTest deserialize(java.io.InputStream input) throws java.io.IOException
input
- the stream containing the enum to read.
java.io.IOException
- If some other I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |