net.sf.magicproject.modifier
Enum ModifierType

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

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

Author:
Fabrice Daugan

Enum Constant Summary
ABILITY_MODIFIER
          Ability modifier
ADDITIONAL_COST_MODIFIER
          Additionnal cost modifier
COLOR_MODIFIER
          Color modifier
CONTROLLER_MODIFIER
          Controller modifier
IDCARD_MODIFIER
          Id card modifier
OBJECT_MODIFIER
          Object modifier
PLAYABLE_ZONE_MODIFIER
          Playable zone modifier
PROPERTY_MODIFIER
          property modifier
REGISTER_INDIRECTION
          register-indirection modifier
REGISTER_MODIFIER
          Simple modifier section
STATIC_MODIFIER
          A static modifier
 
Field Summary
static int GLOBAL_LAYER
          The global layer :low priority means proceeded last.
static int INTERNAL_LAYER
          The internal layer : high priority means proceeded first.
static int NORMAL_LAYER
          normal modifier priority.
 
Method Summary
static ModifierType deserialize(java.io.InputStream input)
          Read and return the enum from the given inputstream.
 void serialize(java.io.OutputStream out)
          Write this enum to the given outputstream.
static ModifierType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ModifierType[] 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

REGISTER_MODIFIER

public static final ModifierType REGISTER_MODIFIER
Simple modifier section


IDCARD_MODIFIER

public static final ModifierType IDCARD_MODIFIER
Id card modifier


PROPERTY_MODIFIER

public static final ModifierType PROPERTY_MODIFIER
property modifier


REGISTER_INDIRECTION

public static final ModifierType REGISTER_INDIRECTION
register-indirection modifier


COLOR_MODIFIER

public static final ModifierType COLOR_MODIFIER
Color modifier


STATIC_MODIFIER

public static final ModifierType STATIC_MODIFIER
A static modifier


CONTROLLER_MODIFIER

public static final ModifierType CONTROLLER_MODIFIER
Controller modifier


PLAYABLE_ZONE_MODIFIER

public static final ModifierType PLAYABLE_ZONE_MODIFIER
Playable zone modifier


ABILITY_MODIFIER

public static final ModifierType ABILITY_MODIFIER
Ability modifier


OBJECT_MODIFIER

public static final ModifierType OBJECT_MODIFIER
Object modifier


ADDITIONAL_COST_MODIFIER

public static final ModifierType ADDITIONAL_COST_MODIFIER
Additionnal cost modifier

Field Detail

INTERNAL_LAYER

public static final int INTERNAL_LAYER
The internal layer : high priority means proceeded first.

See Also:
Constant Field Values

NORMAL_LAYER

public static final int NORMAL_LAYER
normal modifier priority.

See Also:
Constant Field Values

GLOBAL_LAYER

public static final int GLOBAL_LAYER
The global layer :low priority means proceeded last.

See Also:
Constant Field Values
Method Detail

values

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

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

valueOf

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

serialize

public void serialize(java.io.OutputStream out)
               throws java.io.IOException
Write 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

deserialize

public static ModifierType deserialize(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 - If some other I/O error occurs


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