Class CharacterOverlay

All Implemented Interfaces:
Comparable<Content>, Senseable

public class CharacterOverlay extends OverlayFloor
  • Field Details

    • chars

      public static final String chars
      This is a special reduced character set that fits in 6 bits! It is not ASCII!
      See Also:
    • letterRegions

      public arc.graphics.g2d.TextureRegion[] letterRegions
    • color

      public arc.graphics.Color color
  • Constructor Details

    • CharacterOverlay

      public CharacterOverlay(String name)
  • Method Details

    • drawBase

      public void drawBase(Tile tile)
      Overrides:
      drawBase in class OverlayFloor
    • getConfig

      public Object getConfig(Tile tile)
      Overrides:
      getConfig in class Block
      Returns:
      the config value returned when this block is picked on a certain tile. This is only called for non-buildings.
    • drawPlanRegion

      public void drawPlanRegion(BuildPlan plan, arc.util.Eachable<BuildPlan> list)
      Overrides:
      drawPlanRegion in class Block
    • onPicked

      public void onPicked(Tile tile)
      Description copied from class: Block
      Called when the block is picked (middle click). Clientside only!
      Overrides:
      onPicked in class Block
    • buildEditorConfig

      public void buildEditorConfig(arc.scene.ui.layout.Table table)
      Description copied from class: Block
      Called to set up configuration UI in the editor. Block.editorConfigurable must be true. Config value should be assigned to lastConfig.
      Overrides:
      buildEditorConfig in class Block
    • placeEnded

      public void placeEnded(Tile tile, @Nullable mindustry.gen.Unit builder, int rotation, @Nullable Object config)
      Description copied from class: Block
      Called when building of this block ends.
      Overrides:
      placeEnded in class Block
    • charToData

      public static byte charToData(char c)