Class TileContent
java.lang.Object
de.hamstersimulator.objectsfirst.internal.model.territory.TileContent
- All Implemented Interfaces:
ObservableTileContent
- Direct Known Subclasses:
Grain
,ReadOnlyHamster
,Wall
-
Property Summary
TypePropertyDescriptionGetter for the currentTile property Provides access to the tile on which this content currently is. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract boolean
Getter for the currentTile property Provides access to the tile on which this content currently is.Get the current tileContent location.Gets the value of the property currentTile.
-
Property Details
-
currentTile
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 interfaceObservableTileContent
- See Also:
getCurrentTile()
-
-
Field Details
-
currentTile
-
-
Constructor Details
-
TileContent
public TileContent()
-
-
Method Details
-
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
Get the current tileContent location.- Specified by:
getCurrentLocation
in interfaceObservableTileContent
- Returns:
- The current hamster's location in the territory.
-
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 interfaceObservableTileContent
- See Also:
getCurrentTile()
-
blocksEntrance
protected abstract boolean blocksEntrance()
-