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