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 SummaryNested classes/interfaces inherited from interface squidpony.squidgrid.gui.gdx.ICellVisibleICellVisible.Basic, ICellVisible.Named
- 
Field SummaryFields Modifier and Type Field Description floatpackedColorcharsymbol
- 
Constructor Summary
- 
Method SummaryModifier and Type Method Description floatgetPackedColor()chargetSymbol()voidsetPackedColor(float packedColor)voidsetSymbol(char symbol)
- 
Field Details
- 
Constructor Details
- 
Method Details- 
getSymbol- Specified by:
- getSymbolin interface- ICellVisible
- Returns:
- a char that can be used to represent this ICellVisible on a grid
 
- 
setSymbol
- 
getPackedColor- Specified by:
- getPackedColorin interface- ICellVisible
- Returns:
- a packed float color as produced by Color.toFloatBits()that this ICellVisible will be shown with
 
- 
setPackedColor
 
-