Class TiledWall

All Implemented Interfaces:
Comparable<Content>, Senseable

public class TiledWall extends StaticWall
Renders walls in packed square tiles, sized to be as large as possible given the provided size constraints. Concept and some code taken from Twcash/Aquarion.
  • Field Details

    • sizedRegions

      public arc.graphics.g2d.TextureRegion[][][][] sizedRegions
    • maxSize

      public int maxSize
  • Constructor Details

    • TiledWall

      public TiledWall(String name)
    • TiledWall

      public TiledWall(String name, int variants, int maxSize)
  • Method Details

    • load

      public void load()
      Description copied from class: Content
      Called after all content is created, only on non-headless versions. Use for loading regions or other image data.
      Overrides:
      load 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
    • drawBase

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