Interface ICellVisible

All Known Implementing Classes:
ICellVisible.Basic, ICellVisible.Named, TextCellFactory.Glyph

public interface ICellVisible
A basic interface for any kind of object that has a symbolic representation and a color, here represented by a char and a packed float color. This is useful for generic classes that don't force user code to extend a specific class to be shown in some way.
Created by Tommy Ettinger on 10/17/2019.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Interface Description
    static class  ICellVisible.Basic
    A bare-bones implementation of ICellVisible that always allows its symbol and color to be changed.
    static class  ICellVisible.Named
    A implementation of ICellVisible that extends ICellVisible.Basic to also carry a String name.
  • Method Summary

    Modifier and Type Method Description
    float getPackedColor()  
    char getSymbol()  
  • Method Details

    • getSymbol

      char getSymbol()
      Returns:
      a char that can be used to represent this ICellVisible on a grid
    • getPackedColor

      Returns:
      a packed float color as produced by Color.toFloatBits() that this ICellVisible will be shown with