Class ColoredWall

All Implemented Interfaces:
Comparable<Content>, Senseable

public class ColoredWall extends StaticWall
  • Field Details

    • flagIgnoreDifferentColor

      public static final int flagIgnoreDifferentColor
      If the alpha value of the color is set to this value, different colors are ignored and no border is drawn.
      See Also:
    • flagApplyDarkness

      public static final int flagApplyDarkness
      If the alpha value of the color is set to this value, the wall will have darkness applied, as other walls do.
      See Also:
    • defaultColor

      public arc.graphics.Color defaultColor
    • defaultColorRgba

      protected int defaultColorRgba
  • Constructor Details

    • ColoredWall

      public ColoredWall(String name)
  • Method Details

    • init

      public void init()
      Description copied from class: Block
      Called after all blocks are created.
      Overrides:
      init in class Block
    • 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.
    • 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
    • drawBase

      public void drawBase(Tile tile)
      Overrides:
      drawBase in class StaticWall
    • blockChanged

      public void blockChanged(Tile tile)
      Description copied from class: Block
      Called when this block is set on the specified tile.
      Overrides:
      blockChanged 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
    • drawPlanRegion

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

      public boolean checkAutotileSame(Tile tile, @Nullable Tile other)
      Overrides:
      checkAutotileSame in class StaticWall
    • isDarkened

      public boolean isDarkened(Tile tile)
      Description copied from class: Block
      If true, the 'map edge' darkness will be applied to this block.
      Overrides:
      isDarkened in class Block
    • minimapColor

      public int minimapColor(Tile tile)
      Overrides:
      minimapColor in class Block
      Returns:
      a custom minimap color for this or 0 to use default colors.