net.sf.magicproject.event
Enum Event

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

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

This interface contains all events supported

Since:
0.1
See Also:
EventFactory

Enum Constant Summary
ARRANGED_ZONE
           
ATTACHED_TO
           
BECOMING_TAPPED
           
BECOMING_UNTAPPED
           
BEFORE_PHASE
           
BEGINNING_PHASE
           
CAN_CAST_CARD
           
CASTING
           
DEALTING_DAMAGE
           
DECLARED_ATTACKING
           
DECLARED_BLOCKING
           
DETACHED_CARD
           
EOP
           
EXCEPTION
           
FACED_DOWN
           
FACED_UP
           
GIVEN_MANA
           
LETHAL_DAMAGE
           
LOSING_GAME
           
MODIFIED_CONTROLLER
           
MODIFIED_IDCARD
           
MODIFIED_IDCOLOR
           
MODIFIED_OWNER
           
MODIFIED_PROPERTY
           
MODIFIED_REGISTER
           
MODIFIED_REGISTER_RANGE
           
MOVING_CARD
           
NEVER_ACTIVATED
           
TARGETED
           
UPDATE_LIFE
           
UPDATE_TOUGHNESS
           
 
Method Summary
static Event valueOf(java.io.InputStream input)
          Read and return the enum from the given inputstream.
static Event valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Event[] 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

BECOMING_UNTAPPED

public static final Event BECOMING_UNTAPPED

BEFORE_PHASE

public static final Event BEFORE_PHASE

BEGINNING_PHASE

public static final Event BEGINNING_PHASE

EOP

public static final Event EOP

DETACHED_CARD

public static final Event DETACHED_CARD

EXCEPTION

public static final Event EXCEPTION

LETHAL_DAMAGE

public static final Event LETHAL_DAMAGE

UPDATE_LIFE

public static final Event UPDATE_LIFE

LOSING_GAME

public static final Event LOSING_GAME

MODIFIED_PROPERTY

public static final Event MODIFIED_PROPERTY

MODIFIED_IDCARD

public static final Event MODIFIED_IDCARD

MODIFIED_IDCOLOR

public static final Event MODIFIED_IDCOLOR

MODIFIED_OWNER

public static final Event MODIFIED_OWNER

MODIFIED_CONTROLLER

public static final Event MODIFIED_CONTROLLER

ATTACHED_TO

public static final Event ATTACHED_TO

MODIFIED_REGISTER

public static final Event MODIFIED_REGISTER

DECLARED_BLOCKING

public static final Event DECLARED_BLOCKING

CASTING

public static final Event CASTING

DECLARED_ATTACKING

public static final Event DECLARED_ATTACKING

BECOMING_TAPPED

public static final Event BECOMING_TAPPED

NEVER_ACTIVATED

public static final Event NEVER_ACTIVATED

UPDATE_TOUGHNESS

public static final Event UPDATE_TOUGHNESS

TARGETED

public static final Event TARGETED

CAN_CAST_CARD

public static final Event CAN_CAST_CARD

DEALTING_DAMAGE

public static final Event DEALTING_DAMAGE

MOVING_CARD

public static final Event MOVING_CARD

GIVEN_MANA

public static final Event GIVEN_MANA

ARRANGED_ZONE

public static final Event ARRANGED_ZONE

FACED_UP

public static final Event FACED_UP

FACED_DOWN

public static final Event FACED_DOWN

MODIFIED_REGISTER_RANGE

public static final Event MODIFIED_REGISTER_RANGE
Method Detail

values

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

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

valueOf

public static Event 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 - error while writting event's id

valueOf

public static Event valueOf(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 - error while reading event's id.


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