net.sf.magicproject.test
Enum IdTest

java.lang.Object
  extended by java.lang.Enum<IdTest>
      extended by net.sf.magicproject.test.IdTest
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IdTest>

public enum IdTest
extends java.lang.Enum<IdTest>

Author:
Administrateur

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

TRUE

public static final IdTest TRUE
Value of type of test representing the NO TEST TO DO. When this test is applied on any component (card or player) would return always true.


IS_PLAYER

public static final IdTest IS_PLAYER

IS_SPELL

public static final IdTest IS_SPELL

IS_ABILITY

public static final IdTest IS_ABILITY

SOURCE_ACTION_IS

public static final IdTest SOURCE_ACTION_IS
Code test on action source of triggered event.


HAS_PROPERTY_INTERSECTION_PROPERTY

public static final IdTest HAS_PROPERTY_INTERSECTION_PROPERTY

HAS_PROPERTY_INTERSECTION_IDCARD

public static final IdTest HAS_PROPERTY_INTERSECTION_IDCARD

HAS_PROPERTY_INTERSECTION_COLOR

public static final IdTest HAS_PROPERTY_INTERSECTION_COLOR

PHASE_IS

public static final IdTest PHASE_IS
Value of type of test representing the test on id of current phase.


REFERENCED_TEST

public static final IdTest REFERENCED_TEST
Value of type of test representing a referenced test.


EQUAL

public static final IdTest EQUAL
This value identify the test 'nb1 == nb2'.


SUP

public static final IdTest SUP
This value identify the test 'nb1 > nb2'.


INF

public static final IdTest INF
This value identify the test 'nb1 < nb2'.


DIFFERENT

public static final IdTest DIFFERENT
This value identify the test 'nb1 != nb2'.


INF_EQUAL

public static final IdTest INF_EQUAL
This value identify the test 'nb1 <= nb2'.


FALSE

public static final IdTest FALSE
Value of type of test representing the ALWAYS false.


CONTROLLER

public static final IdTest CONTROLLER
Compare the controller of the current card to the player identified by a code.


OWNER

public static final IdTest OWNER
Compare the owner of the current card to the player identified by a code.


HAS_PROPERTY

public static final IdTest HAS_PROPERTY
Compare the property of the current card to the property identified by a code.


HAS_IDCARD

public static final IdTest HAS_IDCARD
Compare the card type identifier of the current card to the card type identified by a code.


HAS_COLOR

public static final IdTest HAS_COLOR
Compare the color of the current card to the color identified by a code.


IN_ZONE

public static final IdTest IN_ZONE
Compare the zone of the current card to the zone identified by a code.


IDPOSITION

public static final IdTest IDPOSITION
Compare the position of the current card to the zone identified by a code.


IN_IDCARD

public static final IdTest IN_IDCARD
Compare the card type identifier of the current card to the card type identified by a code.


ISME_PLAYER

public static final IdTest ISME_PLAYER

IS_TESTED

public static final IdTest IS_TESTED
Compare the card tested card to the card given by the TestedOn object.


HAS_PROPERTY_NOT_FROM

public static final IdTest HAS_PROPERTY_NOT_FROM
Compare the property of the current card to the property identified by a code.


HAS_NAME

public static final IdTest HAS_NAME
Compare the name of tested card with the specified card.


TARGET_LIST

public static final IdTest TARGET_LIST
Target list test : contains


HAS_ABILITY

public static final IdTest HAS_ABILITY
Is the tested card has the specified ability


SOURCE_ABILITY_IS

public static final IdTest SOURCE_ABILITY_IS
To test the ability source's name of triggered event.


OR

public static final IdTest OR
Evaluate the first test, then if it was false, evaluate the second and return it's value.


AND

public static final IdTest AND
Evaluate the first test, then if it was true, evaluate the second and return it's value.


NOT

public static final IdTest NOT
Evaluate the test and return it's opposite value.


XOR

public static final IdTest XOR
Evaluate the both test and return the XOR value.


CONTEXT_TEST

public static final IdTest CONTEXT_TEST

HAS_ACTION

public static final IdTest HAS_ACTION

ABILITY_IS

public static final IdTest ABILITY_IS
To test the current ability's name.


SUP_EQUAL

public static final IdTest SUP_EQUAL
This value identify the test 'nb1 >= nb2'.


PLAYABLE_ABILITY

public static final IdTest PLAYABLE_ABILITY
To test if the activated ability is playable or not.


HAS

public static final IdTest HAS

IS_FACE_UP

public static final IdTest IS_FACE_UP
To test if the card is face up or not.


HAS_PRIVATE_OBJECT

public static final IdTest HAS_PRIVATE_OBJECT
Test if the tested component has a specified private object.


HAS_KEYWORD

public static final IdTest HAS_KEYWORD
Test if the tested card has a specified keyword.


VALID_TARGET_ATTACHMENT

public static final IdTest VALID_TARGET_ATTACHMENT
Reffering to the attachement condition of the tested card.


VALID_ATTACHMENT

public static final IdTest VALID_ATTACHMENT
Reffering to the attachement maintening condition of the tested card.


PREVIOUS_ZONE

public static final IdTest PREVIOUS_ZONE
Test the previous place of component. Valid only for card component.


IS_ABORTING

public static final IdTest IS_ABORTING
Is this card is aborting


REPLACE_TESTED

public static final IdTest REPLACE_TESTED
Replace nested test.


IS_COPY

public static final IdTest IS_COPY
Is copy.


DATABASE

public static final IdTest DATABASE
Has database property/value.


DECK_COUNTER

public static final IdTest DECK_COUNTER
Deck counter.

Method Detail

values

public static IdTest[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (IdTest c : IdTest.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IdTest valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

serialize

public void serialize(java.io.OutputStream out)
               throws java.io.IOException
Wrtite this enum to the given outputstream.

Parameters:
out - the stream ths enum would be written.
Throws:
java.io.IOException - If some other I/O error occurs

deserialize

public static IdTest deserialize(java.io.InputStream input)
                          throws java.io.IOException
Read and return the enum from the given inputstream.

Parameters:
input - the stream containing the enum to read.
Returns:
the enum from the given inputstream.
Throws:
java.io.IOException - If some other I/O error occurs


Copyright © 2003-2007 Magic-Project. All Rights Reserved.