Class ReadOnlyHamster
java.lang.Object
de.hamstersimulator.objectsfirst.internal.model.territory.TileContent
de.hamstersimulator.objectsfirst.internal.model.hamster.ReadOnlyHamster
- All Implemented Interfaces:
ObservableHamster
,ObservableTileContent
- Direct Known Subclasses:
EditorHamster
-
Property Summary
TypePropertyDescriptionGetter for the direction property of the hamster, which represents the direction this hamster is facingProperties inherited from class de.hamstersimulator.objectsfirst.internal.model.territory.TileContent
currentTile
Properties inherited from interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTileContent
currentTile
-
Field Summary
Fields inherited from class de.hamstersimulator.objectsfirst.internal.model.territory.TileContent
currentTile
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Getter for the direction property of the hamster, which represents the direction this hamster is facingGet the current hamster looking direction.int
Gets the value of the property grainCount.Gets the value of the property grainInMouth.Methods inherited from class de.hamstersimulator.objectsfirst.internal.model.territory.TileContent
currentTileProperty, getCurrentLocation, getCurrentTile
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTileContent
currentTileProperty, getCurrentLocation
-
Property Details
-
direction
Getter for the direction property of the hamster, which represents the direction this hamster is facing- Specified by:
directionProperty
in interfaceObservableHamster
- See Also:
getDirection()
-
grainInMouth
- See Also:
getGrainInMouth()
-
grainCount
- See Also:
getGrainCount()
-
-
Constructor Details
-
ReadOnlyHamster
public ReadOnlyHamster()
-
-
Method Details
-
getDirection
Get the current hamster looking direction.- Specified by:
getDirection
in interfaceObservableHamster
- Returns:
- The current hamster's looking direction.
-
getGrainInMouth
Gets the value of the property grainInMouth.- Property description:
-
getGrainCount
public int getGrainCount()Gets the value of the property grainCount.- Property description:
-
directionProperty
Getter for the direction property of the hamster, which represents the direction this hamster is facing- Specified by:
directionProperty
in interfaceObservableHamster
- See Also:
getDirection()
-
grainInMouthProperty
- See Also:
getGrainInMouth()
-
grainCountProperty
- See Also:
getGrainCount()
-
getCurrentTerritory
-
blocksEntrance
protected boolean blocksEntrance()- Specified by:
blocksEntrance
in classTileContent
-