Interface ObservableHamster
- All Superinterfaces:
ObservableTileContent
- All Known Implementing Classes:
EditorHamster
,GameHamster
,ReadOnlyHamster
Interface to observe changes the internal hamster on a territory
Provides read only access to the hamster
It is not possible to find out how many grains a hamster has via this interface
-
Property Summary
TypePropertyDescriptionGetter for the direction property of the hamster, which represents the direction this hamster is facingProperties inherited from interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTileContent
currentTile
-
Method Summary
Modifier and TypeMethodDescriptionGetter for the direction property of the hamster, which represents the direction this hamster is facingGet the current hamster looking direction.Methods inherited from interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTileContent
currentTileProperty, getCurrentLocation
-
Property Details
-
direction
ReadOnlyObjectProperty<Direction> directionPropertyGetter for the direction property of the hamster, which represents the direction this hamster is facing- See Also:
getDirection()
-
-
Method Details
-
getDirection
Direction getDirection()Get the current hamster looking direction.- Returns:
- The current hamster's looking direction.
-
directionProperty
ReadOnlyObjectProperty<Direction> directionProperty()Getter for the direction property of the hamster, which represents the direction this hamster is facing- See Also:
getDirection()
-