|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Event> net.sf.magicproject.event.Event
public enum Event
This interface contains all events supported
EventFactory
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 |
---|
public static final Event BECOMING_UNTAPPED
public static final Event BEFORE_PHASE
public static final Event BEGINNING_PHASE
public static final Event EOP
public static final Event DETACHED_CARD
public static final Event EXCEPTION
public static final Event LETHAL_DAMAGE
public static final Event UPDATE_LIFE
public static final Event LOSING_GAME
public static final Event MODIFIED_PROPERTY
public static final Event MODIFIED_IDCARD
public static final Event MODIFIED_IDCOLOR
public static final Event MODIFIED_OWNER
public static final Event MODIFIED_CONTROLLER
public static final Event ATTACHED_TO
public static final Event MODIFIED_REGISTER
public static final Event DECLARED_BLOCKING
public static final Event CASTING
public static final Event DECLARED_ATTACKING
public static final Event BECOMING_TAPPED
public static final Event NEVER_ACTIVATED
public static final Event UPDATE_TOUGHNESS
public static final Event TARGETED
public static final Event CAN_CAST_CARD
public static final Event DEALTING_DAMAGE
public static final Event MOVING_CARD
public static final Event GIVEN_MANA
public static final Event ARRANGED_ZONE
public static final Event FACED_UP
public static final Event FACED_DOWN
public static final Event MODIFIED_REGISTER_RANGE
Method Detail |
---|
public static Event[] values()
for (Event c : Event.values()) System.out.println(c);
public static Event 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 write(java.io.OutputStream out) throws java.io.IOException
out
- the stream ths enum would be written.
java.io.IOException
- error while writting event's idpublic static Event valueOf(java.io.InputStream input) throws java.io.IOException
input
- the stream containing the enum to read.
java.io.IOException
- error while reading event's id.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |