net.sf.magicproject.clickable.ability
Enum AbilityType

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

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

Author:
Fabrice Daugan

Enum Constant Summary
ACTIVATED_ABILITY
          This code indicates the following ability is an activated one.
ACTIVATED_ABILITY_PLAYER
          This code indicates the following ability is an activated one.
REFERENCED_ABILITY
          This code indicates the following ability is a reference.
REPLACEMENT_ABILITY
          This code indicates the following ability is a replacement ability.
SYSTEM_ABILITY
          This code indicates the following ability is a system ability.
TRIGGERED_ABILITY
          This code indicates the following ability is a triggered one.
TRIGGERED_ABILITY_SET
          This code indicates the following ability is a triggered one.
 
Method Summary
static AbilityType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AbilityType[] 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

TRIGGERED_ABILITY

public static final AbilityType TRIGGERED_ABILITY
This code indicates the following ability is a triggered one.

See Also:
TriggeredAbility

TRIGGERED_ABILITY_SET

public static final AbilityType TRIGGERED_ABILITY_SET
This code indicates the following ability is a triggered one.

See Also:
TriggeredAbilitySet

ACTIVATED_ABILITY

public static final AbilityType ACTIVATED_ABILITY
This code indicates the following ability is an activated one.

See Also:
ActivatedAbility

ACTIVATED_ABILITY_PLAYER

public static final AbilityType ACTIVATED_ABILITY_PLAYER
This code indicates the following ability is an activated one. Any player can play this ability.

See Also:
ActivatedAbilityPlayer

REFERENCED_ABILITY

public static final AbilityType REFERENCED_ABILITY
This code indicates the following ability is a reference.


REPLACEMENT_ABILITY

public static final AbilityType REPLACEMENT_ABILITY
This code indicates the following ability is a replacement ability.

See Also:
ReplacementAbility

SYSTEM_ABILITY

public static final AbilityType SYSTEM_ABILITY
This code indicates the following ability is a system ability.

See Also:
SystemAbility
Method Detail

values

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

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

valueOf

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


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