public static enum Theme.PlayerTheme extends java.lang.Enum<Theme.PlayerTheme>
Enum Constant and Description |
---|
P1
Color data for the first player (purple/pink).
|
P2
Color data for the second player (blue).
|
P3
Color data for the third player (green).
|
P4
Color data for the fourth player (yellow/gold).
|
UNOWNED
Color data for things not associated with any player.
|
Modifier and Type | Field and Description |
---|---|
private java.awt.image.BufferedImage |
ai
AI icon in the color for this player theme.
|
private java.awt.image.BufferedImage |
aiSmall
Small AI icon in the color for this player theme.
|
private java.awt.Color |
barBody
Player theme bar chart bar body color.
|
private java.awt.Color |
barOutline
Player theme bar chart bar outline color.
|
private java.awt.Color |
baseOutline
Player theme base outline color.
|
private java.awt.Color |
body
Player theme object body color.
|
private java.awt.Color |
gradient
Player theme gradient color.
|
private java.awt.image.BufferedImage |
human
Human icon in the color for this player theme.
|
private java.awt.image.BufferedImage |
humanSmall
Small human icon in the color for this player theme.
|
private java.awt.Color |
outline
Player theme object outline color.
|
private java.awt.Color |
text
Player theme text color.
|
Modifier and Type | Method and Description |
---|---|
static Theme.PlayerTheme |
get(int i)
Gets the player theme for the player with the given ID.
|
java.awt.Color |
getBarBody()
Gets the bar chart body color for this theme.
|
java.awt.Color |
getBarOutline()
Gets the bar chart outline color for this theme.
|
java.awt.Color |
getBaseOutline()
Gets the base outline color for this theme.
|
java.awt.Color |
getBody()
Gets the object body color for this theme.
|
java.awt.image.BufferedImage |
getIconAI()
Gets the AI icon for this theme.
|
java.awt.image.BufferedImage |
getIconHuman()
Gets the human icon for this theme.
|
java.awt.Color |
getOutline()
Gets the object outline color for this theme.
|
java.awt.image.BufferedImage |
getSmallIconAI()
Gets the small AI icon for this theme.
|
java.awt.image.BufferedImage |
getSmallIconHuman()
Gets the small human icon for this theme.
|
java.awt.Color |
getTextColor()
Gets the text color for this theme.
|
static Theme.PlayerTheme |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Theme.PlayerTheme[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Theme.PlayerTheme UNOWNED
public static final Theme.PlayerTheme P1
public static final Theme.PlayerTheme P2
public static final Theme.PlayerTheme P3
public static final Theme.PlayerTheme P4
private final java.awt.Color text
private final java.awt.Color body
private final java.awt.Color outline
private final java.awt.Color gradient
private final java.awt.Color barBody
private final java.awt.Color barOutline
private final java.awt.Color baseOutline
private final java.awt.image.BufferedImage ai
private final java.awt.image.BufferedImage human
private final java.awt.image.BufferedImage aiSmall
private final java.awt.image.BufferedImage humanSmall
public static Theme.PlayerTheme[] values()
for (Theme.PlayerTheme c : Theme.PlayerTheme.values()) System.out.println(c);
public static Theme.PlayerTheme 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 namejava.lang.NullPointerException
- if the argument is nullpublic java.awt.image.BufferedImage getIconAI()
public java.awt.image.BufferedImage getIconHuman()
public java.awt.image.BufferedImage getSmallIconAI()
public java.awt.image.BufferedImage getSmallIconHuman()
public java.awt.Color getTextColor()
public java.awt.Color getBody()
public java.awt.Color getOutline()
public java.awt.Color getBarBody()
public java.awt.Color getBarOutline()
public java.awt.Color getBaseOutline()
public static final Theme.PlayerTheme get(int i)
i
- The ID of the player to get (starting from 1).