Class OutsideMapTile

  • All Implemented Interfaces:
    MapTile

    public final class OutsideMapTile
    extends java.lang.Object
    implements MapTile
    • Nested Class Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      OutsideMapTile​(int width, int height)  
    • Constructor Detail

      • OutsideMapTile

        public OutsideMapTile​(int width,
                              int height)
    • Method Detail

      • getGridPosX

        public int getGridPosX()
        Description copied from interface: MapTile
        Tile x position in the map tile grid
        Specified by:
        getGridPosX in interface MapTile
      • getGridPosY

        public int getGridPosY()
        Description copied from interface: MapTile
        Tile y position in the map tile grid
        Specified by:
        getGridPosY in interface MapTile
      • getWidth

        public int getWidth()
        Description copied from interface: MapTile
        Width of the tile
        Specified by:
        getWidth in interface MapTile
      • getHeight

        public int getHeight()
        Description copied from interface: MapTile
        Height of the tile
        Specified by:
        getHeight in interface MapTile
      • setType

        public void setType​(@NotNull
                            @NotNull MapTile.Type type)
        Description copied from interface: MapTile
        Is true if the type of the tile is wall
        Specified by:
        setType in interface MapTile
      • isWall

        public boolean isWall()
        Specified by:
        isWall in interface MapTile