Class GameTerritory
java.lang.Object
de.hamstersimulator.objectsfirst.internal.model.territory.ReadOnlyTerritory
de.hamstersimulator.objectsfirst.internal.model.territory.EditorTerritory
de.hamstersimulator.objectsfirst.internal.model.territory.GameTerritory
- All Implemented Interfaces:
ObservableTerritory
-
Property Summary
Properties inherited from class de.hamstersimulator.objectsfirst.internal.model.territory.ReadOnlyTerritory
defaultHamster, hamsters, territorySize, tiles
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the default hamster of this territory.protected ReadOnlyHamster
Methods inherited from class de.hamstersimulator.objectsfirst.internal.model.territory.ReadOnlyTerritory
defaultHamsterProperty, getHamsters, getSize, getTileAt, hamstersProperty, isLocationInTerritory, territorySizeProperty, tilesProperty
-
Constructor Details
-
GameTerritory
public GameTerritory()
-
-
Method Details
-
getDefaultHamster
Description copied from class:ReadOnlyTerritory
Gets the default hamster of this territory. A default hamster always exists on a territory, so this method never returns null.- Specified by:
getDefaultHamster
in interfaceObservableTerritory
- Overrides:
getDefaultHamster
in classEditorTerritory
- Returns:
- The hamster object representing the default hamster of the territory.
-
getCommandFromSpecification
- Overrides:
getCommandFromSpecification
in classEditorTerritory
-
initDefaultHamster
- Overrides:
initDefaultHamster
in classEditorTerritory
-