|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Visibility> net.sf.magicproject.token.Visibility
public enum Visibility
Enum Constant Summary | |
---|---|
HIDDEN
|
|
PRIVATE
|
|
PUBLIC
|
Method Summary | |
---|---|
Visibility |
decreaseFor(Player player)
Return the decreased visibility for this player |
Visibility |
decreaseFor(Player controller,
VisibilityChange visibilityChange)
Return the increased visibility for this player |
Visibility |
increaseFor(Player player)
Return the increased visibility for this player |
Visibility |
increaseFor(Player controller,
VisibilityChange visibilityChange)
Return the increased visibility for this player |
boolean |
isVisibleFor(Player player)
Is the card is visible for the specified player. |
boolean |
isVisibleForOpponent()
Is the card is visible for the specified player. |
boolean |
isVisibleForYou()
Is the card is visible for the specified player. |
static Visibility |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Visibility[] |
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 |
---|
public static final Visibility PUBLIC
public static final Visibility PRIVATE
public static final Visibility HIDDEN
Method Detail |
---|
public static Visibility[] values()
for (Visibility c : Visibility.values()) System.out.println(c);
public static Visibility 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 final boolean isVisibleFor(Player player)
player
- the player looking this card.
public boolean isVisibleForYou()
public boolean isVisibleForOpponent()
public Visibility increaseFor(Player player)
player
- is the player whom the visibility is granted.
public Visibility increaseFor(Player controller, VisibilityChange visibilityChange)
controller
- The controller of component to modify.visibilityChange
- The visibility change.
public Visibility decreaseFor(Player player)
player
- is the player whom the visibility is removed.
public Visibility decreaseFor(Player controller, VisibilityChange visibilityChange)
controller
- The controller of component to modify.visibilityChange
- The visibility change.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |