All Known Subinterfaces:
ObservableGrain, ObservableHamster, ObservableWall
All Known Implementing Classes:
EditorHamster, GameHamster, Grain, ReadOnlyHamster, TileContent, Wall

public interface ObservableTileContent
Interface to observe changes on a internal tile content Provides read-only access to the tile on which this content currently is
  • Property Details

    • currentTile

      ReadOnlyObjectProperty<? extends Optional<? extends ObservableTile>> 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
  • Method Details

    • getCurrentLocation

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

      ReadOnlyObjectProperty<? extends Optional<? extends ObservableTile>> 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