Interface ObservableTileContent
- 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 Summary
TypePropertyDescriptionReadOnlyObjectProperty<? extends Optional<? extends ObservableTile>>
Getter for the currentTile property Provides access to the tile on which this content currently is. -
Method Summary
Modifier and TypeMethodDescriptionReadOnlyObjectProperty<? extends Optional<? extends ObservableTile>>
Getter for the currentTile property Provides access to the tile on which this content currently is.Get the current tileContent location.
-
Property Details
-
currentTile
ReadOnlyObjectProperty<? extends Optional<? extends ObservableTile>> currentTilePropertyGetter 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
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
-