|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<TestOn> net.sf.magicproject.test.TestOn
public enum TestOn
Enum Constant Summary | |
---|---|
ATTACHED_TO
The card to use for the test with 'attachedto' is the card the card owning the test is attached to. |
|
ATTACHED_TO_CONTROLLER
The controller of 'attachedto' to. |
|
ATTACHED_TO_OF_TESTED
The card to use for the test with 'tested.attachedto' is the card the 'tested' card is attached to. |
|
ATTACHED_TO_OWNER
The owner of 'attachedto' to. |
|
CONTEXT_CARD_SHARE
The Targetable cast to MCard object of this context without considering it's timstamp. |
|
CONTEXT_CARD1
The card to use for the test with 'context.card' is the first card saved in the context. |
|
CONTEXT_CARD1_CONTROLLER
The controller of the first card saved in the context. |
|
CONTEXT_CARD1_OWNER
The owner of the first card saved in the context. |
|
CONTEXT_CARD2
The card to use for the test with 'context.card2' is the second card saved in the context. |
|
CONTEXT_CARD2_CONTROLLER
The controller of the second card saved in the context. |
|
CONTEXT_CARD2_OWNER
The owner of the second card saved in the context. |
|
CONTEXT_INT
Player with id saved in the current context. |
|
CONTEXT_INT2
Player with id saved in the current context(2). |
|
CONTEXT_PLAYER
Player saved in the current context. |
|
CONTEXT_TARGETABLE
The card to use for the test with 'context.targetable' is the first targetable saved in the context. |
|
CONTROLLER
The controller. |
|
CREATOR
The creator of the current card. |
|
CURRENT_CARD
The active card in the stack owning the current spell or ability. |
|
CURRENT_PLAYER
Current player |
|
CURRENT_PLAYER_OPPONENT
Current player's opponent |
|
EVENT_SOURCE
The card to use for the test with 'context.event-source' is the source of current event. |
|
FIRST_TARGET
The card to use for the test with 'target-list.first' is the first card of the target list. |
|
FIRST_TARGET_ATTACHED_TO
The card to use for the test with 'target-list.first.attachedto' is the first card of the target list. |
|
FIRST_TARGET_ATTACHED_TO_CONTROLLER
The card to use for the test with 'target-list.first.attachedto.controller' is the first card of the target list. |
|
FIRST_TARGET_ATTACHED_TO_OWNER
The card to use for the test with 'target-list.first.attachedto.owner' is the first card of the target list. |
|
FIRST_TARGET_CONTROLLER
The card to use for the test with 'target-list.first.controller' is the first card of the target list. |
|
FIRST_TARGET_OWNER
The card to use for the test with 'target-list.first.owner' is the first card of the target list. |
|
LAST_TARGET
The card to use for the test with 'target-list.last' is the last card of the target list. |
|
LAST_TARGET_ATTACHED_TO
The card to use for the test with 'target-list.last.attachedto' is the last card of the target list. |
|
LAST_TARGET_ATTACHED_TO_CONTROLLER
The card to use for the test with 'target-list.last.attachedto.controller' is the last card of the target list. |
|
LAST_TARGET_ATTACHED_TO_OWNER
The card to use for the test with 'target-list.last.attachedto.owner' is the last card of the target list. |
|
LAST_TARGET_CONTROLLER
The card to use for the test with 'target-list.last.controller' is the last card of the target list. |
|
LAST_TARGET_OWNER
The card to use for the test with 'target-list.last.owner' is the last card of the target list. |
|
MODIFIER_CREATOR
The modifier creator card (may be different from THIS). |
|
MODIFIER_CREATOR_CONTROLLER
The modifier creator card (may be different from CONTROLLER). |
|
MODIFIER_CREATOR_OWNER
The modifier creator card (may be different from OWNER). |
|
OPPONENT
The opponent. |
|
OWNER
The card's owner. |
|
SAVED
Saved component |
|
SAVED_CONTROLLER
Controller of saved component |
|
SAVED_OWNER
Owner of saved component |
|
SAVED2
Saved component(2) |
|
SAVED2_CONTROLLER
Controller of saved component(2) |
|
SAVED2_OWNER
Owner of saved component(2) |
|
SUPER
The card to use for the test with 'super.tested' is like 'tested' it's the tested card outside the current 'counter' block. |
|
TARGET_CONTROLLER
The current card's controller. |
|
TARGET_OWNER
The current card's owner. |
|
TESTED
The card to use for the test with 'tested' is the current tested card. |
|
THIS
The card to use for the test with 'me', 'myself' is the card owning the test. |
|
YOU
The controller of current ability. |
Method Summary | |
---|---|
boolean |
canBePreempted()
Return true if the associated value can be evaluated without ability context. |
static TestOn |
deserialize(java.io.InputStream input)
Read and return the enum from the given inputstream. |
MCard |
getCard(Ability ability,
ContextEventListener context,
Targetable tested)
Return the targetable instance cast in Card instance. |
MCard |
getCard(Ability ability,
Targetable tested)
Return the targetable instance cast in Card instance. |
Player |
getPlayer(Ability ability,
ContextEventListener context,
Targetable tested)
Return the targetable on which the test would be applied |
Player |
getPlayer(Ability ability,
Targetable tested)
Return the targetable on which the test would be applied |
int |
getPreemptedValue(Ability ability,
int index)
Return the value corresponding to the true register index exactly as it will be when the ability will be executed. return the real number of a specifid idNumber. |
Targetable |
getTargetable(Ability ability,
ContextEventListener context,
Targetable tested)
Return the targetable on which the test would be applied |
Targetable |
getTargetable(Ability ability,
MCard card,
ContextEventListener context,
Targetable tested)
Return the targetable on which the test would be applied |
Targetable |
getTargetable(Ability ability,
Targetable tested)
Return the targetable on which the test would be applied |
boolean |
isCard()
Is this always referring to a card. |
boolean |
isPlayer()
Is this always referring to a player. |
void |
serialize(java.io.OutputStream out)
Write this enum to the given outputstream. |
static void |
serialize(java.io.OutputStream out,
java.lang.String xsdName)
Write this enum to the given outputstream. |
java.lang.String |
toHtmlString(Ability ability,
ContextEventListener context)
Return the HTML code representing this action. |
static TestOn |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TestOn |
valueOfXsd(java.lang.String xsdName)
Return null of enum value corresponding to the given Xsd name. |
static TestOn[] |
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 TestOn ATTACHED_TO
public static final TestOn ATTACHED_TO_CONTROLLER
public static final TestOn ATTACHED_TO_OWNER
public static final TestOn ATTACHED_TO_OF_TESTED
public static final TestOn CONTEXT_PLAYER
public static final TestOn CONTEXT_INT
public static final TestOn CONTEXT_INT2
public static final TestOn CONTEXT_TARGETABLE
public static final TestOn CONTEXT_CARD1
public static final TestOn CONTEXT_CARD2
public static final TestOn CONTEXT_CARD2_CONTROLLER
public static final TestOn CONTEXT_CARD2_OWNER
public static final TestOn CONTEXT_CARD1_CONTROLLER
public static final TestOn CONTEXT_CARD1_OWNER
public static final TestOn CONTEXT_CARD_SHARE
public static final TestOn CONTROLLER
public static final TestOn CREATOR
public static final TestOn CURRENT_CARD
public static final TestOn CURRENT_PLAYER
public static final TestOn CURRENT_PLAYER_OPPONENT
public static final TestOn EVENT_SOURCE
public static final TestOn FIRST_TARGET
public static final TestOn FIRST_TARGET_ATTACHED_TO
public static final TestOn FIRST_TARGET_ATTACHED_TO_OWNER
public static final TestOn FIRST_TARGET_ATTACHED_TO_CONTROLLER
public static final TestOn FIRST_TARGET_CONTROLLER
public static final TestOn FIRST_TARGET_OWNER
public static final TestOn LAST_TARGET
public static final TestOn LAST_TARGET_ATTACHED_TO
public static final TestOn LAST_TARGET_ATTACHED_TO_OWNER
public static final TestOn LAST_TARGET_ATTACHED_TO_CONTROLLER
public static final TestOn LAST_TARGET_CONTROLLER
public static final TestOn LAST_TARGET_OWNER
public static final TestOn MODIFIER_CREATOR
public static final TestOn MODIFIER_CREATOR_CONTROLLER
public static final TestOn MODIFIER_CREATOR_OWNER
public static final TestOn OPPONENT
public static final TestOn OWNER
public static final TestOn SAVED
public static final TestOn SAVED2
public static final TestOn SAVED_CONTROLLER
public static final TestOn SAVED_OWNER
public static final TestOn SAVED2_CONTROLLER
public static final TestOn SAVED2_OWNER
public static final TestOn SUPER
public static final TestOn TARGET_CONTROLLER
public static final TestOn TARGET_OWNER
public static final TestOn TESTED
public static final TestOn THIS
public static final TestOn YOU
Method Detail |
---|
public static TestOn[] values()
for (TestOn c : TestOn.values()) System.out.println(c);
public static TestOn 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 Targetable getTargetable(Ability ability, Targetable tested)
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 targetable
public Player getPlayer(Ability ability, Targetable tested)
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 targetable
public Targetable getTargetable(Ability ability, ContextEventListener context, Targetable tested)
ability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.context
- the current context.tested
- the tested targetable
public Player getPlayer(Ability ability, ContextEventListener context, Targetable tested)
ability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.context
- the current context.tested
- the tested targetable
public Targetable getTargetable(Ability ability, MCard card, ContextEventListener context, Targetable tested)
ability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.card
- is the card owning the current ability.context
- the current context.tested
- the tested targetable
public MCard getCard(Ability ability, Targetable tested)
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 targetable
public MCard getCard(Ability ability, ContextEventListener context, Targetable tested)
ability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.context
- the current context.tested
- the tested targetable
public boolean isCard()
public boolean isPlayer()
public boolean canBePreempted()
public int getPreemptedValue(Ability ability, int index)
ability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.index
- is the number where the real value will be extracted
public static void serialize(java.io.OutputStream out, java.lang.String xsdName) throws java.io.IOException
out
- the stream ths enum would be written.xsdName
- the Xsd name of this TestOn.
java.io.IOException
- If some other I/O error occurspublic static TestOn valueOfXsd(java.lang.String xsdName)
xsdName
- the Xsd name of this TestOn.
public 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 TestOn 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 occurspublic java.lang.String toHtmlString(Ability ability, ContextEventListener context)
ability
- 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 attached to this action.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |