|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Priority> net.sf.magicproject.clickable.ability.Priority
public enum Priority
Possible optimizations for abilities management in the TBZ
Enum Constant Summary | |
---|---|
auto
Indicates wether this ability is resolved completely before player can get priority. |
|
hidden
Indicates wether this ability is resolved completely before player can get priority (like isAutoResolve), and stack is resolved immediatly after it has been added to the stack. |
|
hidden_high
As HIDDEN tag, but the ability is choosen before the other hidden abilities without this tag . |
|
hidden_low
As hidden tag, but the ability is choosen after the other hidden abilities without this tag . |
|
high
Indicates wether this ability is choosen in priority to the others without this tag. |
|
normal
Indicates the ability would be resoved depending on the current flow. |
Method Summary | |
---|---|
java.util.List<TriggeredCard> |
getAbstractZone(java.util.List<TriggeredCard> abstractLowestZone,
java.util.List<TriggeredCard> abstractZone,
java.util.List<TriggeredCard> abstractHighestZone)
Following the class, returns the abstract zone where the specified ability should be added. |
boolean |
hasHighPriority()
Indicates wether this ability is choosen in priority to the others without this tag. |
boolean |
isAutoResolve()
Indicates if this ability is immediatly after it has been added to the stack. |
boolean |
isHidden()
Indicates wether this ability is resolved completely before player can get priority (like isAutoResolve), and stack is resolved immediatly after it has been added to the stack. |
void |
registerToManager(ReplacementAbility ability)
Register the specified replacement ability. |
void |
removeFromManager(ReplacementAbility ability)
Unregister the specified replacement ability. |
static Priority |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Priority[] |
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 Priority hidden_high
public static final Priority hidden
public static final Priority hidden_low
public static final Priority high
public static final Priority auto
public static final Priority normal
Method Detail |
---|
public static Priority[] values()
for (Priority c : Priority.values()) System.out.println(c);
public static Priority 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 boolean hasHighPriority()
public boolean isAutoResolve()
public boolean isHidden()
public void removeFromManager(ReplacementAbility ability)
ability
- the replacement ability to unregister.public java.util.List<TriggeredCard> getAbstractZone(java.util.List<TriggeredCard> abstractLowestZone, java.util.List<TriggeredCard> abstractZone, java.util.List<TriggeredCard> abstractHighestZone)
abstractLowestZone
- the abstract zone corresponding to the zone containing abilities
with the lowest priority of hidden abilities.abstractZone
- the abstract zone corresponding to the zone containing abilities
with the normal priority of hidden abilities.abstractHighestZone
- the abstract zone corresponding to the zone containing abilities
with the highest priority of hidden abilities.
public void registerToManager(ReplacementAbility ability)
ability
- the replacement ability to register.public void write(java.io.OutputStream out) throws java.io.IOException
out
- the stream ths enum would be written.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |