net.sf.magicproject.action
Enum Actiontype

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

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

Represents all atomic actions necessary to implement all possible abilities of the Magic play.

Since:
0.1a
Author:
Fabrice Daugan

Enum Constant Summary
ABORT
           
ADD_ABILITY
           
ADD_MODIFIER
           
ADD_OBJECT
           
ASSIGN_DAMAGE_SOURCE_DEST
           
ASSIGN_DAMAGE_TARGET
           
ATTACH
           
ATTACH_LIST
           
CHOICE
           
COPY_CARD
           
CREATE_ABILITY
           
CREATE_CARD
           
CREATE_MODIFIER
           
DETACH_ME
           
FACE
           
FORCE_PLAY
           
GENERATE_EVENT
           
GIVE_MANA_BASIC
           
GIVE_MANA_MULTI
           
HOP
           
IF_THEN_ELSE
           
INPUT_COLOR
           
INPUT_NUMBER
           
INPUT_PROPERTY
           
INPUT_ZONE
           
INT_LIST
           
LETHAL_DAMAGE
           
LOSE_GAME
           
MODIFY_ABILITY_REGISTER
           
MODIFY_REQUIRED_MANA
           
MODIFY_STACK_REGISTER
           
MODIFY_STATIC_REGISTER
           
MODIFY_TARGET_LIST_REGISTER
           
MODIFY_TARGETABLE_REGISTER
           
MOVE_CARD
           
MOVE_OBJECT
           
MOVE_PLAYER_CARD
           
MSG
           
NEXT_CURRENT_PLAYER
           
NEXT_PHASE
           
OBJECT_MAP
           
PAY_MANA
           
REFRESH_MODIFIER
           
REFRESH_STATIC_MODIFIER
           
REMOVE_ME
           
REMOVE_OBJECT
           
REPEAT_ACTION
           
RESOLVE_HIDDEN
           
RESTORE_CARD
           
SET_ID_CARD
           
SHUFFLE
           
SKIP_PHASE
           
SOUND
           
TAP
           
TARGET
           
TARGET_ALL
           
TARGET_LIST
           
TARGET_RANDOM
           
UNREGISTER_THIS
           
UPDATE_LIFE
           
UPDATE_TOUGHNESS
           
WAIT_ACTIVATED_CHOICE
           
WAIT_TRIGGERED_BUFFER_CHOICE
           
ZONE_VISIBILITY
           
 
Method Summary
static Actiontype valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Actiontype[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 void write(java.io.OutputStream out)
          Wrtite this enum to the given outputstream.
 
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

PAY_MANA

public static final Actiontype PAY_MANA
See Also:
PayMana

MOVE_PLAYER_CARD

public static final Actiontype MOVE_PLAYER_CARD

GIVE_MANA_BASIC

public static final Actiontype GIVE_MANA_BASIC
See Also:
GiveMana

TARGET

public static final Actiontype TARGET
See Also:
Target

ASSIGN_DAMAGE_TARGET

public static final Actiontype ASSIGN_DAMAGE_TARGET

TAP

public static final Actiontype TAP

SHUFFLE

public static final Actiontype SHUFFLE

CHOICE

public static final Actiontype CHOICE
See Also:
InputChoice

MSG

public static final Actiontype MSG
See Also:
Input

CREATE_CARD

public static final Actiontype CREATE_CARD

SKIP_PHASE

public static final Actiontype SKIP_PHASE

FORCE_PLAY

public static final Actiontype FORCE_PLAY

LOSE_GAME

public static final Actiontype LOSE_GAME

HOP

public static final Actiontype HOP
See Also:
Hop

MOVE_CARD

public static final Actiontype MOVE_CARD

ASSIGN_DAMAGE_SOURCE_DEST

public static final Actiontype ASSIGN_DAMAGE_SOURCE_DEST

WAIT_ACTIVATED_CHOICE

public static final Actiontype WAIT_ACTIVATED_CHOICE
See Also:
WaitActivatedChoice

WAIT_TRIGGERED_BUFFER_CHOICE

public static final Actiontype WAIT_TRIGGERED_BUFFER_CHOICE
See Also:
WaitTriggeredBufferChoice

UPDATE_LIFE

public static final Actiontype UPDATE_LIFE

UPDATE_TOUGHNESS

public static final Actiontype UPDATE_TOUGHNESS

LETHAL_DAMAGE

public static final Actiontype LETHAL_DAMAGE

UNREGISTER_THIS

public static final Actiontype UNREGISTER_THIS

ATTACH_LIST

public static final Actiontype ATTACH_LIST

ATTACH

public static final Actiontype ATTACH

ABORT

public static final Actiontype ABORT

ADD_OBJECT

public static final Actiontype ADD_OBJECT

MOVE_OBJECT

public static final Actiontype MOVE_OBJECT
See Also:
MoveObject

REMOVE_OBJECT

public static final Actiontype REMOVE_OBJECT
See Also:
RemoveObject

REPEAT_ACTION

public static final Actiontype REPEAT_ACTION
See Also:
Repeat

IF_THEN_ELSE

public static final Actiontype IF_THEN_ELSE

MODIFY_TARGETABLE_REGISTER

public static final Actiontype MODIFY_TARGETABLE_REGISTER
See Also:
ModifyTargetableRegister

ZONE_VISIBILITY

public static final Actiontype ZONE_VISIBILITY

MODIFY_STACK_REGISTER

public static final Actiontype MODIFY_STACK_REGISTER

MODIFY_STATIC_REGISTER

public static final Actiontype MODIFY_STATIC_REGISTER

REMOVE_ME

public static final Actiontype REMOVE_ME
See Also:
RemoveMe

ADD_MODIFIER

public static final Actiontype ADD_MODIFIER

SET_ID_CARD

public static final Actiontype SET_ID_CARD

REFRESH_MODIFIER

public static final Actiontype REFRESH_MODIFIER
See Also:
RefreshModifier

REFRESH_STATIC_MODIFIER

public static final Actiontype REFRESH_STATIC_MODIFIER
See Also:
AddModifierFromStaticModifier

DETACH_ME

public static final Actiontype DETACH_ME
See Also:
DetachMe

NEXT_CURRENT_PLAYER

public static final Actiontype NEXT_CURRENT_PLAYER

NEXT_PHASE

public static final Actiontype NEXT_PHASE

CREATE_ABILITY

public static final Actiontype CREATE_ABILITY

CREATE_MODIFIER

public static final Actiontype CREATE_MODIFIER

SOUND

public static final Actiontype SOUND
See Also:
Sound

MODIFY_ABILITY_REGISTER

public static final Actiontype MODIFY_ABILITY_REGISTER

MODIFY_TARGET_LIST_REGISTER

public static final Actiontype MODIFY_TARGET_LIST_REGISTER

ADD_ABILITY

public static final Actiontype ADD_ABILITY
See Also:
ActionFactory

RESOLVE_HIDDEN

public static final Actiontype RESOLVE_HIDDEN
See Also:
ActionFactory

INPUT_NUMBER

public static final Actiontype INPUT_NUMBER
See Also:
ActionFactory

INPUT_COLOR

public static final Actiontype INPUT_COLOR
See Also:
ActionFactory

INPUT_ZONE

public static final Actiontype INPUT_ZONE
See Also:
ActionFactory

INPUT_PROPERTY

public static final Actiontype INPUT_PROPERTY
See Also:
ActionFactory

TARGET_LIST

public static final Actiontype TARGET_LIST

INT_LIST

public static final Actiontype INT_LIST

GENERATE_EVENT

public static final Actiontype GENERATE_EVENT

GIVE_MANA_MULTI

public static final Actiontype GIVE_MANA_MULTI
See Also:
GiveMana

TARGET_ALL

public static final Actiontype TARGET_ALL

FACE

public static final Actiontype FACE

OBJECT_MAP

public static final Actiontype OBJECT_MAP

TARGET_RANDOM

public static final Actiontype TARGET_RANDOM

MODIFY_REQUIRED_MANA

public static final Actiontype MODIFY_REQUIRED_MANA

COPY_CARD

public static final Actiontype COPY_CARD

RESTORE_CARD

public static final Actiontype RESTORE_CARD
Method Detail

values

public static Actiontype[] 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 (Actiontype c : Actiontype.values())
    System.out.println(c);

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

valueOf

public static Actiontype 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

write

public void write(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


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