Interface Tile


  • public interface Tile
    Represents a tile in the game.
    • Method Detail

      • getDecorativeObject

        DecorativeObject getDecorativeObject()
        Gets the decoration on the tile.
        Returns:
        the tile decoration
      • getGameObjects

        GameObject[] getGameObjects()
        Gets all game objects on the tile.
        Returns:
        the game objects
      • getItemLayer

        ItemLayer getItemLayer()
        Gets the items held on this tile.
        Returns:
        the item
      • getGroundObject

        GroundObject getGroundObject()
        Gets the object on the ground layer of the tile.
        Returns:
        the ground object
      • setGroundObject

        void setGroundObject​(GroundObject groundObject)
        Sets the object on the ground layer of the tile.
        Parameters:
        groundObject - the ground object
      • getWallObject

        WallObject getWallObject()
        Gets the wall of the tile.
        Returns:
        the wall object
      • getSceneTilePaint

        SceneTilePaint getSceneTilePaint()
        Gets the scene paint of the tile.
        Returns:
        the paint
      • getSceneTileModel

        SceneTileModel getSceneTileModel()
        Gets the model of the tile in the scene.
        Returns:
        the tile model
      • getWorldLocation

        WorldPoint getWorldLocation()
        Gets the location coordinate of the tile in the world.
        Returns:
        the world location
      • getSceneLocation

        Point getSceneLocation()
        Gets the location coordinate of the tile in scene coords
        Returns:
        the scene location
      • getLocalLocation

        LocalPoint getLocalLocation()
        Gets the local coordinate of the tile.
        Returns:
        the local location
      • getPlane

        int getPlane()
        Gets the plane that this tile is on.
        Returns:
        the plane
      • getRenderLevel

        int getRenderLevel()
        Get the plane this tile is rendered on, which is where the tile heights are from.
        Returns:
      • getGroundItems

        List<TileItem> getGroundItems()
        Get all the ground items for this tile
        Returns:
        the ground items
      • getBridge

        Tile getBridge()
        Return the tile under this one, if this tile is a bridge
        Returns: