Class BaseMapTile

  • All Implemented Interfaces:
    MapTile

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

    • Constructor Summary

      Constructors 
      Constructor Description
      BaseMapTile​(int gridPosX, int gridPosY, int width, int height, MapTile.Type type)  
    • Constructor Detail

      • BaseMapTile

        public BaseMapTile​(int gridPosX,
                           int gridPosY,
                           int width,
                           int height,
                           @NotNull
                           MapTile.Type type)
    • 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