org.inigma.utopia.paper
Enum PaperEvent

java.lang.Object
  extended by java.lang.Enum<PaperEvent>
      extended by org.inigma.utopia.paper.PaperEvent
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PaperEvent>

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


Enum Constant Summary
Aid
           
Attack
           
CancelCeaseFire
           
CaptureLand
           
CeaseFire
           
Defect
           
DragonSent
           
DragonStart
           
Killed
           
Massacred
           
Relations
           
WarBegan
           
WarDeclared
           
WarLose
           
WarWin
           
 
Method Summary
 AbstractEvent getEvent(java.lang.String text)
           
static PaperEvent valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PaperEvent[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Aid

public static final PaperEvent Aid

Attack

public static final PaperEvent Attack

CancelCeaseFire

public static final PaperEvent CancelCeaseFire

CeaseFire

public static final PaperEvent CeaseFire

CaptureLand

public static final PaperEvent CaptureLand

Defect

public static final PaperEvent Defect

DragonSent

public static final PaperEvent DragonSent

DragonStart

public static final PaperEvent DragonStart

Killed

public static final PaperEvent Killed

Massacred

public static final PaperEvent Massacred

Relations

public static final PaperEvent Relations

WarBegan

public static final PaperEvent WarBegan

WarDeclared

public static final PaperEvent WarDeclared

WarLose

public static final PaperEvent WarLose

WarWin

public static final PaperEvent WarWin
Method Detail

values

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

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

valueOf

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

getEvent

public AbstractEvent getEvent(java.lang.String text)


Copyright © 2008. All Rights Reserved.