Package squidpony.squidgrid.gui.gdx
Class ICellVisible.Basic
java.lang.Object
squidpony.squidgrid.gui.gdx.ICellVisible.Basic
- All Implemented Interfaces:
Serializable
,ICellVisible
- Direct Known Subclasses:
ICellVisible.Named
- Enclosing interface:
- ICellVisible
public static class ICellVisible.Basic extends Object implements ICellVisible, Serializable
A bare-bones implementation of ICellVisible that always allows its symbol and color to be changed.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface squidpony.squidgrid.gui.gdx.ICellVisible
ICellVisible.Basic, ICellVisible.Named
-
Field Summary
Fields Modifier and Type Field Description float
packedColor
char
symbol
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description float
getPackedColor()
char
getSymbol()
void
setPackedColor(float packedColor)
void
setSymbol(char symbol)
-
Field Details
-
Constructor Details
-
Method Details
-
getSymbol
- Specified by:
getSymbol
in interfaceICellVisible
- Returns:
- a char that can be used to represent this ICellVisible on a grid
-
setSymbol
-
getPackedColor
- Specified by:
getPackedColor
in interfaceICellVisible
- Returns:
- a packed float color as produced by
Color.toFloatBits()
that this ICellVisible will be shown with
-
setPackedColor
-