java.lang.Object
de.hamstersimulator.objectsfirst.internal.model.territory.TileContent
All Implemented Interfaces:
ObservableTileContent
Direct Known Subclasses:
Grain, ReadOnlyHamster, Wall

public abstract class TileContent extends Object implements ObservableTileContent
  • Property Details

  • Field Details

  • Constructor Details

    • TileContent

      public TileContent()
  • Method Details

    • getCurrentTile

      public Optional<Tile> getCurrentTile()
      Gets the value of the property currentTile.
      Property description:
      Getter for the currentTile property Provides access to the tile on which this content currently is. A content must not always be on a tile, so this is optional
    • getCurrentLocation

      public Optional<Location> getCurrentLocation()
      Get the current tileContent location.
      Specified by:
      getCurrentLocation in interface ObservableTileContent
      Returns:
      The current hamster's location in the territory.
    • currentTileProperty

      public ReadOnlyObjectProperty<Optional<Tile>> currentTileProperty()
      Getter for the currentTile property Provides access to the tile on which this content currently is. A content must not always be on a tile, so this is optional
      Specified by:
      currentTileProperty in interface ObservableTileContent
      See Also:
      getCurrentTile()
    • blocksEntrance

      protected abstract boolean blocksEntrance()