Enum EPlayerColor
- java.lang.Object
-
- java.lang.Enum<EPlayerColor>
-
- ch.sahits.game.openpatrician.model.player.EPlayerColor
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EPlayerColor>
public enum EPlayerColor extends java.lang.Enum<EPlayerColor>
Color used for identifying a human player.- Author:
- Andi Hotz, (c) Sahits GmbH, 2017 Created on Nov 11, 2017
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLUE
#0000ff.BURGUNDY
#8b0000.CYAN
#00ffff.DARKBLUE
#00008b.DARKGREEN
#008000.GREEN
#7cfc00.LIGHTBLUE
#add8e6.MAGENTA
#ff00ff.MAROON
#800000.ORANGE
#ffa500.PINK
#ffc0cb.PURPLE
#800080.SALMON
#fa8072.TURQUIS
#40e0d0.YELLOW
#ffff00.YELLOWGREEN
#9acd32.
-
Field Summary
Fields Modifier and Type Field Description private javafx.scene.paint.Color
color
-
Constructor Summary
Constructors Modifier Constructor Description private
EPlayerColor(javafx.scene.paint.Color color)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.scene.paint.Color
getColor()
static EPlayerColor
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EPlayerColor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLUE
public static final EPlayerColor BLUE
#0000ff.
-
GREEN
public static final EPlayerColor GREEN
#7cfc00.
-
DARKGREEN
public static final EPlayerColor DARKGREEN
#008000.
-
YELLOW
public static final EPlayerColor YELLOW
#ffff00.
-
PURPLE
public static final EPlayerColor PURPLE
#800080.
-
PINK
public static final EPlayerColor PINK
#ffc0cb.
-
ORANGE
public static final EPlayerColor ORANGE
#ffa500.
-
BURGUNDY
public static final EPlayerColor BURGUNDY
#8b0000.
-
LIGHTBLUE
public static final EPlayerColor LIGHTBLUE
#add8e6.
-
TURQUIS
public static final EPlayerColor TURQUIS
#40e0d0.
-
DARKBLUE
public static final EPlayerColor DARKBLUE
#00008b.
-
MAGENTA
public static final EPlayerColor MAGENTA
#ff00ff.
-
MAROON
public static final EPlayerColor MAROON
#800000.
-
YELLOWGREEN
public static final EPlayerColor YELLOWGREEN
#9acd32.
-
CYAN
public static final EPlayerColor CYAN
#00ffff.
-
SALMON
public static final EPlayerColor SALMON
#fa8072.
-
-
Method Detail
-
values
public static EPlayerColor[] 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 (EPlayerColor c : EPlayerColor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EPlayerColor 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 namejava.lang.NullPointerException
- if the argument is null
-
getColor
public javafx.scene.paint.Color getColor()
-
-