Index
All Classes|All Packages|Constant Field Values|Deprecated API|Serialized Form
A
- abort() - Method in interface de.hamstersimulator.objectsfirst.adapter.InputInterface
-
Aborts readInteger, readString or confirmAlert.
- abort() - Method in class de.hamstersimulator.objectsfirst.server.input.RemoteInputInterface
-
Aborts readInteger, readString or showAlert.
- abort() - Method in class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXInputInterface
- ABORTED - Enum constant in enum class de.hamstersimulator.objectsfirst.datatypes.Mode
-
The game was aborted via api or mainly UI like STOPPED, however it throws an Exception which is not caught by doRun or runGame After one executed command, this Mode is automatically converted to STOPPED
- abortOrStopGame() - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
Abort or stop the execution of the game.
- abortOrStopGame() - Method in class de.hamstersimulator.objectsfirst.commands.GameCommandStack
-
Abort or stop the execution of the game.
- AbstractHamsterCommandSpecification - Class in de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification
- AbstractHamsterCommandSpecification(GameHamster) - Constructor for class de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification.AbstractHamsterCommandSpecification
- add(Command...) - Method in class de.hamstersimulator.objectsfirst.commands.CompositeCommand.CompositeCommandBuilder
- add(List<Command>) - Method in class de.hamstersimulator.objectsfirst.commands.CompositeCommand.CompositeCommandBuilder
- addInputInterface(InputInterface) - Method in class de.hamstersimulator.objectsfirst.adapter.HamsterGameViewModel
-
Adds newInputInterface to this game's input interfaces for reading values from users or mock objects.
- addNewPrecondition(Supplier<RuntimeException>, Supplier<Boolean>) - Method in class de.hamstersimulator.objectsfirst.commands.CompositeCommand.PreconditionBuilder
- addNewPrecondition(Supplier<Optional<RuntimeException>>) - Method in class de.hamstersimulator.objectsfirst.commands.CompositeCommand.PreconditionBuilder
- addPreconditionCreator(Consumer<CompositeCommand.PreconditionBuilder>) - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.TerritoryBuilder
-
Adds a Consumer which can add preconditions to a CompositeCommand via a PreconditionBuilder
- apply(Object) - Method in class de.hamstersimulator.objectsfirst.utils.LambdaVisitor
B
- bindToTerritory(ObservableTerritory) - Method in class de.hamstersimulator.objectsfirst.ui.javafx.HamsterTerritoryGrid
- blockingExecuteOnFXThread(Runnable) - Static method in class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXUtil
- blockingExecuteOnFXThreadIfAvailable(Runnable) - Static method in class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXUtil
- blocksEntrance() - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.ReadOnlyHamster
- blocksEntrance() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.Grain
- blocksEntrance() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.TileContent
- blocksEntrance() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.Wall
- build() - Method in class de.hamstersimulator.objectsfirst.external.model.TerritoryBuilder
- build() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.TerritoryBuilder
-
Executing this command returns a composite command which initializes the territory according to all builder commands issued before.
- buildBeforeFirstExecution(CompositeCommand.CompositeCommandBuilder) - Method in class de.hamstersimulator.objectsfirst.commands.CompositeCommand
- buildPreconditions(CompositeCommand.PreconditionBuilder) - Method in class de.hamstersimulator.objectsfirst.commands.CompositeCommand
C
- canExecute() - Method in class de.hamstersimulator.objectsfirst.commands.Command
- canRedo - Variable in class de.hamstersimulator.objectsfirst.commands.CommandStack
- canRedoProperty() - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
Getter for the canRedo property true if the game is stopped / paused and there is at least one command to redo
- canRedoProperty() - Method in class de.hamstersimulator.objectsfirst.commands.CommandStack
-
Getter for the canRedo property true if the game is stopped / paused and there is at least one command to redo
- canUndo - Variable in class de.hamstersimulator.objectsfirst.commands.CommandStack
- canUndoProperty() - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
Getter for the canUndo property true if the game is stopped / paused and there is at least one command to undo
- canUndoProperty() - Method in class de.hamstersimulator.objectsfirst.commands.CommandStack
-
Getter for the canUndo property true if the game is stopped / paused and there is at least one command to undo
- changeColor(Image, Color) - Static method in class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXUtil
- checkArgument(boolean) - Static method in class de.hamstersimulator.objectsfirst.utils.Preconditions
- checkArgument(boolean, String) - Static method in class de.hamstersimulator.objectsfirst.utils.Preconditions
- checkNotNull(Object) - Static method in class de.hamstersimulator.objectsfirst.utils.Preconditions
- checkNotNull(Object, String) - Static method in class de.hamstersimulator.objectsfirst.utils.Preconditions
- checkState(boolean) - Static method in class de.hamstersimulator.objectsfirst.utils.Preconditions
- checkState(boolean, String) - Static method in class de.hamstersimulator.objectsfirst.utils.Preconditions
- Command - Class in de.hamstersimulator.objectsfirst.commands
- Command() - Constructor for class de.hamstersimulator.objectsfirst.commands.Command
- CommandSpecification - Interface in de.hamstersimulator.objectsfirst.commands
- CommandStack - Class in de.hamstersimulator.objectsfirst.commands
- CommandStack() - Constructor for class de.hamstersimulator.objectsfirst.commands.CommandStack
- CompositeCommand - Class in de.hamstersimulator.objectsfirst.commands
- CompositeCommand() - Constructor for class de.hamstersimulator.objectsfirst.commands.CompositeCommand
- CompositeCommand.CompositeCommandBuilder - Class in de.hamstersimulator.objectsfirst.commands
- CompositeCommand.PreconditionBuilder - Class in de.hamstersimulator.objectsfirst.commands
- CONFIRM_ALERT - Enum constant in enum class de.hamstersimulator.objectsfirst.server.input.InputMode
-
A alter should be shown, no input requested
- confirmAlert(Throwable) - Method in interface de.hamstersimulator.objectsfirst.adapter.InputInterface
-
Inform a user about an abnormal execution aborting.
- confirmAlert(Throwable) - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Inform a user about an abnormal execution aborting.
- confirmAlert(Throwable) - Method in class de.hamstersimulator.objectsfirst.server.input.RemoteInputInterface
-
Informs a user about an abnormal execution aborting.
- confirmAlert(Throwable) - Method in class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXInputInterface
- connectToGame(HamsterGameViewModel) - Method in class de.hamstersimulator.objectsfirst.ui.javafx.GameSceneController
- contentProperty() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTile
-
Getter for the content property Provides a read-only list of all contents on this tile
- contentProperty() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.Tile
-
Getter for the content property Provides a read-only list of all contents on this tile
- currentGame - Variable in class de.hamstersimulator.objectsfirst.external.model.SimpleHamsterGame
-
Deprecated.The current SimpleHamsterGame.
- currentGame - Variable in class de.hamstersimulator.objectsfirst.external.simple.game.SimpleHamsterGame
-
The current SimpleHamsterGame.
- currentTile - Variable in class de.hamstersimulator.objectsfirst.internal.model.territory.TileContent
- currentTileProperty() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTileContent
-
Getter for the currentTile property Provides access to the tile on which this content currently is.
- currentTileProperty() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.TileContent
-
Getter for the currentTile property Provides access to the tile on which this content currently is.
D
- de.hamstersimulator.objectsfirst.adapter - package de.hamstersimulator.objectsfirst.adapter
- de.hamstersimulator.objectsfirst.adapter.observables - package de.hamstersimulator.objectsfirst.adapter.observables
- de.hamstersimulator.objectsfirst.adapter.observables.command.specification - package de.hamstersimulator.objectsfirst.adapter.observables.command.specification
- de.hamstersimulator.objectsfirst.adapter.observables.command.specification.hamster - package de.hamstersimulator.objectsfirst.adapter.observables.command.specification.hamster
- de.hamstersimulator.objectsfirst.adapter.observables.command.specification.territory - package de.hamstersimulator.objectsfirst.adapter.observables.command.specification.territory
- de.hamstersimulator.objectsfirst.commands - package de.hamstersimulator.objectsfirst.commands
- de.hamstersimulator.objectsfirst.config - module de.hamstersimulator.objectsfirst.config
- de.hamstersimulator.objectsfirst.config - package de.hamstersimulator.objectsfirst.config
- de.hamstersimulator.objectsfirst.core - module de.hamstersimulator.objectsfirst.core
- de.hamstersimulator.objectsfirst.datatypes - package de.hamstersimulator.objectsfirst.datatypes
-
This package contains classes for basic data structures.
- de.hamstersimulator.objectsfirst.exceptions - package de.hamstersimulator.objectsfirst.exceptions
-
Package containing all simulator exceptions.
- de.hamstersimulator.objectsfirst.external.model - package de.hamstersimulator.objectsfirst.external.model
-
This package contains the public API of hamster games.
- de.hamstersimulator.objectsfirst.external.simple.game - package de.hamstersimulator.objectsfirst.external.simple.game
- de.hamstersimulator.objectsfirst.internal.model - package de.hamstersimulator.objectsfirst.internal.model
- de.hamstersimulator.objectsfirst.internal.model.hamster - package de.hamstersimulator.objectsfirst.internal.model.hamster
- de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification - package de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification
- de.hamstersimulator.objectsfirst.internal.model.territory - package de.hamstersimulator.objectsfirst.internal.model.territory
- de.hamstersimulator.objectsfirst.main - module de.hamstersimulator.objectsfirst.main
- de.hamstersimulator.objectsfirst.server - module de.hamstersimulator.objectsfirst.server
- de.hamstersimulator.objectsfirst.server.http.client - package de.hamstersimulator.objectsfirst.server.http.client
- de.hamstersimulator.objectsfirst.server.input - package de.hamstersimulator.objectsfirst.server.input
- de.hamstersimulator.objectsfirst.ui - module de.hamstersimulator.objectsfirst.ui
- de.hamstersimulator.objectsfirst.ui.javafx - package de.hamstersimulator.objectsfirst.ui.javafx
- de.hamstersimulator.objectsfirst.util - module de.hamstersimulator.objectsfirst.util
- de.hamstersimulator.objectsfirst.utils - package de.hamstersimulator.objectsfirst.utils
-
Package with general purpose helper or utility classes.
- defaultHamsterAt(Location, Direction, int) - Method in class de.hamstersimulator.objectsfirst.external.model.TerritoryBuilder
- defaultHamsterAt(Location, Direction, int) - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.TerritoryBuilder
-
Puts the default hamster (paule) on the territory and initializes it.
- defaultHamsterProperty() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTerritory
-
Getter for the defaultHamster property The default hamster always exists, so the property is always set
- defaultHamsterProperty() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.ReadOnlyTerritory
-
Getter for the defaultHamster property The default hamster always exists, so the property is always set
- delayDisabled - Variable in class de.hamstersimulator.objectsfirst.commands.GameCommandStack
- delayDisabledProperty() - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
Getter for the delayDisabled property provides read and write access to the current state of the delay disabling of the associated game
- delayDisabledProperty() - Method in class de.hamstersimulator.objectsfirst.commands.GameCommandStack
-
Getter for the delayDisabled property provides read and write access to the current state of the delay disabling of the associated game
- Direction - Enum Class in de.hamstersimulator.objectsfirst.datatypes
-
Enumeration of the directions in which a hamster can look in the hamster simulator.
- directionProperty() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableHamster
-
Getter for the direction property of the hamster, which represents the direction this hamster is facing
- directionProperty() - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.ReadOnlyHamster
-
Getter for the direction property of the hamster, which represents the direction this hamster is facing
- disableDelay() - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
WARNING: USE WITH CAUTION! THIS WILL VERY LIKELY CAUSE GUI GLITCHES! For setting the speed to the minimum well working speed, use
HamsterGameController.setSpeed(double)
- disableDelay() - Method in class de.hamstersimulator.objectsfirst.commands.GameCommandStack
-
WARNING: USE WITH CAUTION! THIS WILL VERY LIKELY CAUSE GUI GLITCHES! For setting the speed to the minimum well working speed, use
HamsterGameController.setSpeed(double)
- displayInNewGameWindow() - Method in class de.hamstersimulator.objectsfirst.external.model.SimpleHamsterGame
-
Deprecated.Displays the hamster game in a new game window The UI type can be specified in the config file or in the environment variable OUTPUT_INTERFACE.
- displayInNewGameWindow() - Method in class de.hamstersimulator.objectsfirst.external.simple.game.SimpleHamsterGame
-
Displays the hamster game in a new game window The UI type can be specified in the config file or in the environment variable OUTPUT_INTERFACE.
- displayInNewGameWindow(HamsterGameViewModel) - Static method in class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXUI
-
Displays the hamster game associated with the provided hamster game adapter in a new window This automatically starts the UI, adds the necessary input interface and opens the scene
- dispose() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.Tile
- dispose() - Method in class de.hamstersimulator.objectsfirst.ui.javafx.TileNode
- doRun() - Method in class de.hamstersimulator.objectsfirst.external.model.SimpleHamsterGame
-
Deprecated.Method to start the execution of a hamster game and handle any exceptions happening while running.
- doRun() - Method in class de.hamstersimulator.objectsfirst.external.simple.game.SimpleHamsterGame
-
Method to start the execution of a hamster game and handle any exceptions happening while running.
E
- EAST - Enum constant in enum class de.hamstersimulator.objectsfirst.datatypes.Direction
-
East direction, i.e., towards the right of the screen
- EditCommandStack - Class in de.hamstersimulator.objectsfirst.commands
- EditCommandStack() - Constructor for class de.hamstersimulator.objectsfirst.commands.EditCommandStack
- EditorHamster - Class in de.hamstersimulator.objectsfirst.internal.model.hamster
- EditorHamster() - Constructor for class de.hamstersimulator.objectsfirst.internal.model.hamster.EditorHamster
- EditorTerritory - Class in de.hamstersimulator.objectsfirst.internal.model.territory
- EditorTerritory() - Constructor for class de.hamstersimulator.objectsfirst.internal.model.territory.EditorTerritory
- enableDelay() - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
Re-enables the delay between steps
- enableDelay() - Method in class de.hamstersimulator.objectsfirst.commands.GameCommandStack
-
Re-enables the delay between steps
- enterCriticalRegion() - Method in class de.hamstersimulator.objectsfirst.server.input.RemoteInputInterface
-
Enters a critical region and waits if necessary
In a critical region, the following things are guaranteed: the input mode does not change the message does not change the input id does not change Use with care! Do not spend too much time in a critical region. - equals(Object) - Method in class de.hamstersimulator.objectsfirst.datatypes.Location
- equals(Object) - Method in class de.hamstersimulator.objectsfirst.datatypes.LocationVector
- equals(Object) - Method in class de.hamstersimulator.objectsfirst.datatypes.Size
- execute() - Method in class de.hamstersimulator.objectsfirst.commands.Command
- execute() - Method in class de.hamstersimulator.objectsfirst.commands.CompositeCommand
- execute(Command) - Method in class de.hamstersimulator.objectsfirst.commands.CommandStack
- execute(Command) - Method in class de.hamstersimulator.objectsfirst.commands.GameCommandStack
- executedCommands - Variable in class de.hamstersimulator.objectsfirst.commands.CommandStack
F
- from(int, int) - Static method in class de.hamstersimulator.objectsfirst.datatypes.Location
-
Convienience method to create a new location.
- FrontBlockedException - Exception in de.hamstersimulator.objectsfirst.exceptions
- FrontBlockedException() - Constructor for exception de.hamstersimulator.objectsfirst.exceptions.FrontBlockedException
- frontIsClear() - Method in class de.hamstersimulator.objectsfirst.external.model.Hamster
-
Checks the front of the hamster.
G
- game - Variable in class de.hamstersimulator.objectsfirst.external.model.SimpleHamsterGame
-
Deprecated.The game object of this simple game.
- game - Variable in class de.hamstersimulator.objectsfirst.external.simple.game.SimpleHamsterGame
-
The game object of this simple game.
- GameAbortedException - Exception in de.hamstersimulator.objectsfirst.exceptions
- GameAbortedException(String) - Constructor for exception de.hamstersimulator.objectsfirst.exceptions.GameAbortedException
- GameAbortedException(String, Exception) - Constructor for exception de.hamstersimulator.objectsfirst.exceptions.GameAbortedException
- GameCommandStack - Class in de.hamstersimulator.objectsfirst.commands
- GameCommandStack() - Constructor for class de.hamstersimulator.objectsfirst.commands.GameCommandStack
-
Creates a new instance of the GameCommandStack
- GameHamster - Class in de.hamstersimulator.objectsfirst.internal.model.hamster
- GameHamster() - Constructor for class de.hamstersimulator.objectsfirst.internal.model.hamster.GameHamster
- GameLog - Class in de.hamstersimulator.objectsfirst.internal.model
- GameLog() - Constructor for class de.hamstersimulator.objectsfirst.internal.model.GameLog
- GameSceneController - Class in de.hamstersimulator.objectsfirst.ui.javafx
-
Controller for the main game scene Note: The static constructor sets the log level of the javafx.scene.control logger to WARNING to hide a INFO message caused by the log list
- GameSceneController() - Constructor for class de.hamstersimulator.objectsfirst.ui.javafx.GameSceneController
- GameTerritory - Class in de.hamstersimulator.objectsfirst.internal.model.territory
- GameTerritory() - Constructor for class de.hamstersimulator.objectsfirst.internal.model.territory.GameTerritory
- getAllLocationsFromTo(Location, Location) - Static method in class de.hamstersimulator.objectsfirst.datatypes.Location
-
This method creates a
Stream
of locations which enumerate the locations formed by the box with the from location as upper, left corner and the to location as the lower, right one. - getAmount() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.command.specification.territory.ObservableAddGrainsToTileCommandSpecification
-
Get the amount of grains added to the tile
- getColumn() - Method in class de.hamstersimulator.objectsfirst.datatypes.Location
- getColumnCount() - Method in class de.hamstersimulator.objectsfirst.datatypes.Size
- getCommandFromSpecification(CommandSpecification) - Method in class de.hamstersimulator.objectsfirst.internal.model.GameLog
- getCommandFromSpecification(CommandSpecification) - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.EditorHamster
- getCommandFromSpecification(CommandSpecification) - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.GameHamster
- getCommandFromSpecification(CommandSpecification) - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.EditorTerritory
- getCommandFromSpecification(CommandSpecification) - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.GameTerritory
- getCommandSpecification() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableLogEntry
-
The command specification that caused this log entry to be generated.
- getCommandSpecification() - Method in class de.hamstersimulator.objectsfirst.datatypes.LogEntry
-
The command specification that caused this log entry to be generated.
- GetConfirmAlertMessage(String, int, String, String) - Static method in class de.hamstersimulator.objectsfirst.server.input.InputMessage
-
Creates a new confirm alert input message
- getContent() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTile
-
Returns an unmodifiable list with all contents on this tile
- getContent() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.Tile
-
Returns an unmodifiable list with all contents on this tile
- getCurrentGameMode() - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Get the current mode of this game.
- getCurrentLocation() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTileContent
-
Get the current tileContent location.
- getCurrentLocation() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.TileContent
-
Get the current tileContent location.
- getCurrentTerritory() - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.ReadOnlyHamster
- getCurrentTile() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.TileContent
-
Gets the value of the property currentTile.
- getDefaultHamster() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTerritory
-
Gets the default hamster of this territory.
- getDefaultHamster() - Method in class de.hamstersimulator.objectsfirst.external.model.Territory
-
Gets the default hamster of this territory.
- getDefaultHamster() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.EditorTerritory
- getDefaultHamster() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.GameTerritory
- getDefaultHamster() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.ReadOnlyTerritory
-
Gets the default hamster of this territory.
- getDeltaColumn() - Method in class de.hamstersimulator.objectsfirst.datatypes.LocationVector
- getDeltaRow() - Method in class de.hamstersimulator.objectsfirst.datatypes.LocationVector
- getDirection() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.command.specification.territory.ObservableInitDefaultHamsterCommandSpecification
-
Get the hamster's new direction
- getDirection() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableHamster
-
Get the current hamster looking direction.
- getDirection() - Method in class de.hamstersimulator.objectsfirst.external.model.Hamster
-
Get the current hamster looking direction.
- getDirection() - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.ReadOnlyHamster
-
Get the current hamster looking direction.
- getExceptionsFromPreconditions() - Method in class de.hamstersimulator.objectsfirst.commands.Command
- getExceptionsFromPreconditions() - Method in class de.hamstersimulator.objectsfirst.commands.CompositeCommand
- getExercises() - Method in class de.hamstersimulator.objectsfirst.config.HamsterConfig
-
Returns the list of class names o be used for the exercises.
- getGame() - Method in class de.hamstersimulator.objectsfirst.external.model.Territory
-
Gets the hamster game associated to this territory object.
- getGameController() - Method in class de.hamstersimulator.objectsfirst.adapter.HamsterGameViewModel
-
Getter for the gameController This can be used to control the associated game: stop, pause, resume, undo, redo etc.
- getGameViewModel() - Method in class de.hamstersimulator.objectsfirst.external.model.SimpleHamsterGame
-
Deprecated.Returns the view model used by the game as an output interface
- getGameViewModel() - Method in class de.hamstersimulator.objectsfirst.external.simple.game.SimpleHamsterGame
-
Returns the view model used by the game as an output interface
- getGrain() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.command.specification.hamster.ObservablePickGrainCommandSpecification
-
Get the grain the hamster picked up
- getGrain() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.command.specification.hamster.ObservablePutGrainCommandSpecification
-
Get the grain the hamster put down
- getGrain() - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification.PickGrainCommandSpecification
- getGrain() - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification.PutGrainCommandSpecification
- getGrainCount() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.command.specification.territory.ObservableInitDefaultHamsterCommandSpecification
-
Get the hamster's new grain count
- getGrainCount() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTile
-
Returns the amount of grain on this tile.
- getGrainCount() - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.ReadOnlyHamster
-
Gets the value of the property grainCount.
- getGrainCount() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.Tile
-
Returns the amount of grain on this tile.
- getGrainInMouth() - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.ReadOnlyHamster
-
Gets the value of the property grainInMouth.
- getHamster() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.command.specification.hamster.ObservableAbstractHamsterCommandSpecification
-
Getter for the hamster that is modified by this command specification
- getHamster() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableLogEntry
-
Every log entries might have a hamster, which can be used to make clear which hamster caused the log message
Returns null if the log entry is not linked to a hamster - getHamster() - Method in class de.hamstersimulator.objectsfirst.datatypes.LogEntry
- getHamster() - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification.AbstractHamsterCommandSpecification
- getHamsters() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTerritory
-
Returns an unmodifiable list with all hamsters on the territory.
- getHamsters() - Method in class de.hamstersimulator.objectsfirst.external.model.Territory
-
Get all hamsters currently active in the territory.
- getHamsters() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.ReadOnlyTerritory
-
Returns an unmodifiable list with all hamsters on the territory.
- getHamsters() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.Tile
-
Gets the value of the property hamsters.
- getHamstersAt(Location) - Method in class de.hamstersimulator.objectsfirst.external.model.Territory
-
Get a list of hamsters at the given location.
- getInputId() - Method in class de.hamstersimulator.objectsfirst.server.input.InputMessage
-
Getter for the inputId
- getInputID() - Method in class de.hamstersimulator.objectsfirst.server.input.RemoteInputInterface
-
Gets the id of the current input request This id must be provided in setResult to ensure that a previous request does not set the current result
- getInputInterfaces() - Method in class de.hamstersimulator.objectsfirst.adapter.HamsterGameViewModel
-
Gets the input interfaces of this game used to read values from users or mock objects.
- getInputMode() - Method in class de.hamstersimulator.objectsfirst.server.input.RemoteInputInterface
-
Gets the current input mode
- getIsStarted() - Static method in class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXUI
-
Returns whether the JavaFX UI has already been started or not.
- getLocation() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.command.specification.territory.ObservableAbstractTerritoryTileCommandSpecification
-
Get the location associated with the command
- getLocation() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTile
-
the location of this tile on the territory
- getLocation() - Method in class de.hamstersimulator.objectsfirst.external.model.Hamster
-
Get the current hamster location.
- getLocation() - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification.InitHamsterCommandSpecification
- getLocation() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.Tile
-
the location of this tile on the territory
- getLog() - Method in class de.hamstersimulator.objectsfirst.adapter.HamsterGameViewModel
-
Getter for the log This can be used to get the log entries
- getMessage() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.command.specification.hamster.ObservableWriteCommandSpecification
-
Get the message written to the log
- getMessage() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableLogEntry
-
The message is the text which should be displayed in the log
- getMessage() - Method in class de.hamstersimulator.objectsfirst.datatypes.LogEntry
- getMessage() - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification.WriteCommandSpecification
- getModelViewAdapter() - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Getter for the HamsterGameViewModel object of this game.
- getMovementVector() - Method in enum class de.hamstersimulator.objectsfirst.datatypes.Direction
- getNewDirection() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.command.specification.hamster.ObservableInitHamsterCommandSpecification
-
Get the hamster's new direction
- getNewDirection() - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification.InitHamsterCommandSpecification
- getNewGrainCount() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.command.specification.hamster.ObservableInitHamsterCommandSpecification
-
Get the hamster's new grain count
- getNewGrainCount() - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification.InitHamsterCommandSpecification
- getNewTerritoryBuilder() - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Return a territory builder for this game's territory.
- getNumberOfGrainsAt(Location) - Method in class de.hamstersimulator.objectsfirst.external.model.Territory
-
Get the number of grains at the given location.
- getOutput() - Method in class de.hamstersimulator.objectsfirst.config.HamsterConfig
-
Returns the string name of the default output interface to use
- GetReadIntMessage(String, int) - Static method in class de.hamstersimulator.objectsfirst.server.input.InputMessage
-
Creates a new read int input message
- GetReadStringMessage(String, int) - Static method in class de.hamstersimulator.objectsfirst.server.input.InputMessage
-
Creates a new read string input message
- getRequestedUIMode() - Method in class de.hamstersimulator.objectsfirst.external.model.SimpleHamsterGame
-
Deprecated.Checks if a game UI mode is requested via environment variables or config and returns that mode in that priority.
- getRequestedUIMode() - Method in class de.hamstersimulator.objectsfirst.external.simple.game.SimpleHamsterGame
-
Checks if a game UI mode is requested via environment variables or config and returns that mode in that priority.
- getRow() - Method in class de.hamstersimulator.objectsfirst.datatypes.Location
- getRowCount() - Method in class de.hamstersimulator.objectsfirst.datatypes.Size
- getSize() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.command.specification.territory.ObservableInitializeTerritoryCommandSpecification
-
Get the size of the newly initialized territory
- getSize() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTerritory
-
Return the size of the current territory.
- getSize() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.ReadOnlyTerritory
-
Return the size of the current territory.
- getSpeed() - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Gets the speed of the hamster game.
- getStateLock() - Method in class de.hamstersimulator.objectsfirst.commands.CommandStack
-
Gets a lock used to synchronize all state (mode, canUndo, canRedo) related methods
- getTerritory() - Method in class de.hamstersimulator.objectsfirst.adapter.HamsterGameViewModel
-
Getter for the territory This can be used to observe changes of the territory or objects on it (e.g.
- getTerritory() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.command.specification.hamster.ObservableInitHamsterCommandSpecification
-
Get the territory the hamster is initialized on
- getTerritory() - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Getter for the territory object of this game.
- getTerritory() - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification.InitHamsterCommandSpecification
- getTerritory() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.Tile
- getTerritoryBuilderForTerritory(EditorTerritory) - Static method in class de.hamstersimulator.objectsfirst.internal.model.territory.TerritoryBuilder
-
Factory method to create new TerritoryBuilder objects which then can be used to defined the given territory.
- getTerritorySize() - Method in class de.hamstersimulator.objectsfirst.external.model.Territory
-
Return the size of the current territory.
- getTestClasses() - Method in class de.hamstersimulator.objectsfirst.config.HamsterTestConfig
-
Returns the list of test classes to be used to verify the exercises
- getTileAt(Location) - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTerritory
-
Returns the Tile associated with the location
- getTileAt(Location) - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.ReadOnlyTerritory
-
Returns the Tile associated with the location
- getTotalGrainCount() - Method in class de.hamstersimulator.objectsfirst.external.model.Territory
-
Count all grains currently lying freely on any tile in the territory.
- getTotalHamsterCount() - Method in class de.hamstersimulator.objectsfirst.external.model.Territory
-
Get the total number of hamsters on the current territory.
- Grain - Class in de.hamstersimulator.objectsfirst.internal.model.territory
- Grain() - Constructor for class de.hamstersimulator.objectsfirst.internal.model.territory.Grain
- grainAt(Location) - Method in class de.hamstersimulator.objectsfirst.external.model.TerritoryBuilder
- grainAt(Location) - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.TerritoryBuilder
-
Puts a single grain at the given location.
- grainAt(Location, int) - Method in class de.hamstersimulator.objectsfirst.external.model.TerritoryBuilder
- grainAt(Location, int) - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.TerritoryBuilder
-
Puts a number of grains at the given location.
- grainAvailable() - Method in class de.hamstersimulator.objectsfirst.external.model.Hamster
-
Checks the hamster's current tile for grain.
- grainCountProperty() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTile
-
Getter for the grainCount property Always greater than or equal to 0 The content property contains as much ObservableGrains as the value of this property
- grainCountProperty() - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.ReadOnlyHamster
- grainCountProperty() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.Tile
-
Getter for the grainCount property Always greater than or equal to 0 the content property contains as much ObservableGrains as the value of this property
- grainInMouthProperty() - Method in class de.hamstersimulator.objectsfirst.internal.model.hamster.ReadOnlyHamster
H
- Hamster - Class in de.hamstersimulator.objectsfirst.external.model
-
Class for Hamster in the Hamster Simulator.
- Hamster() - Constructor for class de.hamstersimulator.objectsfirst.external.model.Hamster
-
Create a new Hamster object without initializing it.
- Hamster(Territory, Location, Direction, int) - Constructor for class de.hamstersimulator.objectsfirst.external.model.Hamster
-
Create and initialize a new hamster object with the given parameters.
- HamsterClient - Class in de.hamstersimulator.objectsfirst.server.http.client
-
The HamsterClient connects to the HamsterServer.
- HamsterClient(HamsterGameViewModel, RemoteInputInterface, int) - Constructor for class de.hamstersimulator.objectsfirst.server.http.client.HamsterClient
-
Creates a new HamsterClient with the specified server port The server must be reachable on 127.0.0.1
- HamsterConfig - Class in de.hamstersimulator.objectsfirst.config
- HamsterException - Exception in de.hamstersimulator.objectsfirst.exceptions
- HamsterException(String) - Constructor for exception de.hamstersimulator.objectsfirst.exceptions.HamsterException
- HamsterGame - Class in de.hamstersimulator.objectsfirst.external.model
-
A class representing an instance of a hamster game.
- HamsterGame() - Constructor for class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Initialize a hamster game.
- HamsterGame(Set<InputInterface>) - Constructor for class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Initialize a hamster game.
- HamsterGameController - Interface in de.hamstersimulator.objectsfirst.adapter
-
Makes it possible to control the execution of the associated hamster game supported features are undo(All), redo(All) speed pause(Async), resume, stop mode (read-only)
- HamsterGameStage - Class in de.hamstersimulator.objectsfirst.ui.javafx
- HamsterGameStage(HamsterGameViewModel) - Constructor for class de.hamstersimulator.objectsfirst.ui.javafx.HamsterGameStage
- HamsterGameViewModel - Class in de.hamstersimulator.objectsfirst.adapter
-
Provides all components of a game which are necessary to attach a UI or a test framework to a game territory: makes it possible to bind to the territory and observe changes on it controller: makes it possible to control the associated game: stop, pause etc. log: makes it possible to display log messages Also supports adding inputInterfaces via
addInputInterface
.
Besides inputInterfaces and the controller, this class only provides read-only access. - HamsterGameViewModel(ObservableTerritory, HamsterGameController, ObservableLog, Collection<InputInterface>) - Constructor for class de.hamstersimulator.objectsfirst.adapter.HamsterGameViewModel
-
Creates a new HamsterGameViewModel This is only meant for internal use
- HamsterNotInitializedException - Exception in de.hamstersimulator.objectsfirst.exceptions
- HamsterNotInitializedException() - Constructor for exception de.hamstersimulator.objectsfirst.exceptions.HamsterNotInitializedException
- HamsterNotOnNonBlockingTileException - Exception in de.hamstersimulator.objectsfirst.exceptions
- HamsterNotOnNonBlockingTileException() - Constructor for exception de.hamstersimulator.objectsfirst.exceptions.HamsterNotOnNonBlockingTileException
-
Constructor of the exception
- hamstersProperty() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTerritory
-
Getter for the hamsters property Can be used to observe changes on any hamster on the territory
- hamstersProperty() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTile
-
Getter for the hamsters property Provides a read-only list of all hamsters on this tile, therefore this is a sublist of content
- hamstersProperty() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.ReadOnlyTerritory
-
Getter for the hamsters property Can be used to observe changes on any hamster on the territory
- hamstersProperty() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.Tile
-
Getter for the hamsters property Provides a read-only list of all hamsters on this tile, therefore this is a sublist of content
- HamsterTerritoryGrid - Class in de.hamstersimulator.objectsfirst.ui.javafx
- HamsterTerritoryGrid() - Constructor for class de.hamstersimulator.objectsfirst.ui.javafx.HamsterTerritoryGrid
- HamsterTestConfig - Class in de.hamstersimulator.objectsfirst.config
-
Class representing the config needed for testing
- hardReset() - Method in class de.hamstersimulator.objectsfirst.commands.CommandStack
-
hard-resets the CommandStack.
- hardReset() - Method in class de.hamstersimulator.objectsfirst.commands.GameCommandStack
-
hard-resets the CommandStack.
- hardReset() - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Hard-Reset the hamster game to its initial state (after started running).
- hasCommandToRedo - Variable in class de.hamstersimulator.objectsfirst.commands.CommandStack
- hasCommandToUndo - Variable in class de.hamstersimulator.objectsfirst.commands.CommandStack
- hashCode() - Method in class de.hamstersimulator.objectsfirst.datatypes.Location
- hashCode() - Method in class de.hamstersimulator.objectsfirst.datatypes.LocationVector
- hashCode() - Method in class de.hamstersimulator.objectsfirst.datatypes.Size
- HTTP - Static variable in class de.hamstersimulator.objectsfirst.external.model.SimpleHamsterGame.UIMode
-
Deprecated.
- HTTP - Static variable in class de.hamstersimulator.objectsfirst.external.simple.game.SimpleHamsterGame.UIMode
I
- init(Territory, Location, Direction, int) - Method in class de.hamstersimulator.objectsfirst.external.model.Hamster
-
Initialize a hamster object with the given parameters.
- initDefaultHamster() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.EditorTerritory
- initDefaultHamster() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.GameTerritory
- initDefaultHamster() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.ReadOnlyTerritory
- InitHamsterCommandSpecification - Class in de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification
- InitHamsterCommandSpecification(GameHamster, ReadOnlyTerritory, Location, Direction, int) - Constructor for class de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification.InitHamsterCommandSpecification
- initialize() - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Initialize a new hamster game by loading the default territory.
- initialize(TerritoryBuilder) - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Initialize a new hamster game by loading the default territory.
- initialize(InputStream) - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Initialize a new hamster game by loading the territory from the passed territory file path.
- initialize(String) - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Initialize a new hamster game by loading the territory from the passed territoryContent (which is a territory encoded in a string) Warning: this executes a hard reset which cannot be undone
- initializeFor(EditorTerritory) - Static method in class de.hamstersimulator.objectsfirst.internal.model.territory.TerritoryLoader
- initializeTerritory(Size) - Method in class de.hamstersimulator.objectsfirst.external.model.TerritoryBuilder
- initializeTerritory(Size) - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.TerritoryBuilder
-
Defines a new territory by deleting all elements of the territory defined so far and by creating a new, empty territory of the given size.
- INITIALIZING - Enum constant in enum class de.hamstersimulator.objectsfirst.datatypes.Mode
-
Default mode before the territory is loaded.
- InputInterface - Interface in de.hamstersimulator.objectsfirst.adapter
-
Interface to interact with a UI or mock object for reading values from the user.
- InputMessage - Class in de.hamstersimulator.objectsfirst.server.input
-
Helper class for json serialization, represents a input request including the message
- InputMode - Enum Class in de.hamstersimulator.objectsfirst.server.input
-
Enum for the possible input types
- isBlocked() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTile
-
Returns true if this tile is blocked.
- isBlocked() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.Tile
-
Returns true if this tile is blocked.
- isBlockedByWall(Location) - Method in class de.hamstersimulator.objectsfirst.external.model.Territory
-
Returns whether the tile at the given location is a wall.
- isBlockedProperty() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTile
-
Getter for the isBlocked property e.g.
- isBlockedProperty() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.Tile
-
Getter for the isBlocked property e.g.
- isFree(Location) - Method in class de.hamstersimulator.objectsfirst.external.model.Territory
-
Returns whether the tile at the given location exists and is not blocked.
- isLocationInTerritory(Location) - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTerritory
-
For a given location, tests whether the location is inside the bound of the territory.
- isLocationInTerritory(Location) - Method in class de.hamstersimulator.objectsfirst.external.model.Territory
-
For a given location, tests whether the location is inside the bound of the territory.
- isLocationInTerritory(Location) - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.ReadOnlyTerritory
-
For a given location, tests whether the location is inside the bound of the territory.
- isStoppedOrAborted() - Method in enum class de.hamstersimulator.objectsfirst.datatypes.Mode
-
Checks if the mode is STOPPED or ABORTED
J
- JAVA_FX - Static variable in class de.hamstersimulator.objectsfirst.external.model.SimpleHamsterGame.UIMode
-
Deprecated.
- JAVA_FX - Static variable in class de.hamstersimulator.objectsfirst.external.simple.game.SimpleHamsterGame.UIMode
- JavaFXInputInterface - Class in de.hamstersimulator.objectsfirst.ui.javafx
- JavaFXInputInterface() - Constructor for class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXInputInterface
- JavaFXUI - Class in de.hamstersimulator.objectsfirst.ui.javafx
- JavaFXUI() - Constructor for class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXUI
- JavaFXUtil - Class in de.hamstersimulator.objectsfirst.ui.javafx
- JavaFXUtil() - Constructor for class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXUtil
L
- LambdaVisitor<B,A> - Class in de.hamstersimulator.objectsfirst.utils
-
Implements the Lambda Visitor Pattern Can be used to execute a different callback based on the dynamic type of an object.
- LambdaVisitor() - Constructor for class de.hamstersimulator.objectsfirst.utils.LambdaVisitor
- LambdaVisitor.Acceptor<A,B,C> - Class in de.hamstersimulator.objectsfirst.utils
- leaveCriticalRegion() - Method in class de.hamstersimulator.objectsfirst.server.input.RemoteInputInterface
-
leaves a critical region
- left() - Method in enum class de.hamstersimulator.objectsfirst.datatypes.Direction
- load() - Static method in class de.hamstersimulator.objectsfirst.config.HamsterConfig
-
Loads the config from the default file:
config.json
- load() - Static method in class de.hamstersimulator.objectsfirst.config.HamsterTestConfig
-
Loads the test config from the default file:
config.tests.json
- load(String) - Static method in class de.hamstersimulator.objectsfirst.config.HamsterConfig
-
Loads the config from the specified JSON-file and returns a new instance
- load(String) - Static method in class de.hamstersimulator.objectsfirst.config.HamsterTestConfig
-
Loads the test config from the specified JSON-file and returns a new instance
- loadFromInputStream(InputStream) - Method in class de.hamstersimulator.objectsfirst.external.model.Territory
-
Loads the territory from an input stream.
- loadFromInputStream(InputStream) - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.TerritoryLoader
-
Loads the territory from the provided InputStream
- loadFromString(String) - Method in class de.hamstersimulator.objectsfirst.external.model.Territory
-
Loads the territory from a file.
- loadFromString(String) - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.TerritoryLoader
-
Loads the territory from the provided string
- loadTerritoryFromResourceFile(String) - Method in class de.hamstersimulator.objectsfirst.external.model.SimpleHamsterGame
-
Deprecated.Loads the Territory from a resources file.
- loadTerritoryFromResourceFile(String) - Method in class de.hamstersimulator.objectsfirst.external.simple.game.SimpleHamsterGame
-
Loads the Territory from a resources file.
- Location - Class in de.hamstersimulator.objectsfirst.datatypes
-
Immutable class representing a location in the hamster territory.
- Location(int, int) - Constructor for class de.hamstersimulator.objectsfirst.datatypes.Location
-
Create a new location.
- LocationVector - Class in de.hamstersimulator.objectsfirst.datatypes
-
A location vector is a vector in the mathematical sense.
- LocationVector(int, int) - Constructor for class de.hamstersimulator.objectsfirst.datatypes.LocationVector
-
Creates a new location vector with the given vector deltas.
- LogEntry - Class in de.hamstersimulator.objectsfirst.datatypes
-
A log entry object represents a log message of the hamster simulator and is typically displayed in the log view at the right side of the simulator window.
- LogEntry(CommandSpecification, GameHamster, String) - Constructor for class de.hamstersimulator.objectsfirst.datatypes.LogEntry
-
Create a new log entry.
- LoggingHamster - Class in de.hamstersimulator.objectsfirst.external.model
-
A specialized hamster which logs all its moves.
- LoggingHamster() - Constructor for class de.hamstersimulator.objectsfirst.external.model.LoggingHamster
- logProperty() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableLog
-
Getter for the log property, which contains read-only log entries
- logProperty() - Method in class de.hamstersimulator.objectsfirst.internal.model.GameLog
-
Getter for the log property, which contains read-only log entries
M
- messageProperty() - Method in class de.hamstersimulator.objectsfirst.server.input.RemoteInputInterface
-
Gets the message the UI should display
If the input mode is READ_STRING or READ_INT, it is just a simple string. - Mode - Enum Class in de.hamstersimulator.objectsfirst.datatypes
-
The modes a hamster game can be in
- modeProperty() - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
Getter for the mode property provides read-only access to the current mode of the associated game
- modeProperty() - Method in class de.hamstersimulator.objectsfirst.commands.GameCommandStack
-
Getter for the mode property provides read-only access to the current mode of the associated game
- mouthEmpty() - Method in class de.hamstersimulator.objectsfirst.external.model.Hamster
-
Checks whether the hamster's mouth is empty or whether it has grains in its mouth.
- MouthEmptyException - Exception in de.hamstersimulator.objectsfirst.exceptions
- MouthEmptyException() - Constructor for exception de.hamstersimulator.objectsfirst.exceptions.MouthEmptyException
- move() - Method in class de.hamstersimulator.objectsfirst.external.model.Hamster
-
Move the hamster one step towards its looking direction.
- move() - Method in class de.hamstersimulator.objectsfirst.external.model.LoggingHamster
- MoveCommandSpecification - Class in de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification
- MoveCommandSpecification(GameHamster) - Constructor for class de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification.MoveCommandSpecification
N
- newAddToPropertyCommand(Property<G>, Object) - Method in class de.hamstersimulator.objectsfirst.commands.CompositeCommand.CompositeCommandBuilder
- newRemoveFromPropertyCommand(Property<G>, Object) - Method in class de.hamstersimulator.objectsfirst.commands.CompositeCommand.CompositeCommandBuilder
- newSetPropertyCommand(Property<G>, Object) - Method in class de.hamstersimulator.objectsfirst.commands.CompositeCommand.CompositeCommandBuilder
- NoGrainOnTileException - Exception in de.hamstersimulator.objectsfirst.exceptions
- NoGrainOnTileException() - Constructor for exception de.hamstersimulator.objectsfirst.exceptions.NoGrainOnTileException
- NONE - Enum constant in enum class de.hamstersimulator.objectsfirst.server.input.InputMode
-
No input is expected
- NONE - Static variable in class de.hamstersimulator.objectsfirst.external.model.SimpleHamsterGame.UIMode
-
Deprecated.
- NONE - Static variable in class de.hamstersimulator.objectsfirst.external.simple.game.SimpleHamsterGame.UIMode
- NORTH - Enum constant in enum class de.hamstersimulator.objectsfirst.datatypes.Direction
-
North direction, i.e., towards the top of the screen
O
- ObservableAbstractHamsterCommandSpecification - Interface in de.hamstersimulator.objectsfirst.adapter.observables.command.specification.hamster
-
Base interface for all ObservableCommandSpecification that need a hamster, like ObservableMoveCommandSpecification to move the hamster or ObservableTurnLeftCommandSpecification to make the hamster turn left
- ObservableAbstractTerritoryTileCommandSpecification - Interface in de.hamstersimulator.objectsfirst.adapter.observables.command.specification.territory
-
Base interface for all ObservableCommandSpecifications that need a location, like ObservableAddGrainsToTileCommandSpecification used to add grains to a tile or ObservableAddWallToTileCommandSpecification which adds a wall to a tile
- ObservableAddGrainsToTileCommandSpecification - Interface in de.hamstersimulator.objectsfirst.adapter.observables.command.specification.territory
-
observable version of command specification used to add amount grains to a specified tile
- ObservableAddWallToTileCommandSpecification - Interface in de.hamstersimulator.objectsfirst.adapter.observables.command.specification.territory
-
observable version of command specification used to add a wall to a specified tile
- ObservableClearTileCommandSpecification - Interface in de.hamstersimulator.objectsfirst.adapter.observables.command.specification.territory
-
observable version of command specification used to remove all tile contents from the tile at the specified location
- ObservableCommandSpecification - Interface in de.hamstersimulator.objectsfirst.adapter.observables.command.specification
-
Read-only command specification, base interface for all other ObservableCommandSpecifications By itself, it does not provide anything to observe, however all game entities used by subinterfaces (like ObservableMoveCommandSpecification which provides an ObservableHamster) use the observable versions.
- ObservableGrain - Interface in de.hamstersimulator.objectsfirst.adapter.observables
-
Interface to observe changes on the internal grain Provides read-only access to the grain
- ObservableHamster - Interface in de.hamstersimulator.objectsfirst.adapter.observables
-
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
- ObservableInitDefaultHamsterCommandSpecification - Interface in de.hamstersimulator.objectsfirst.adapter.observables.command.specification.territory
-
observable version of command specification used to init the default hamster at a specific location and direction
- ObservableInitHamsterCommandSpecification - Interface in de.hamstersimulator.objectsfirst.adapter.observables.command.specification.hamster
-
Observable version of command specification used to initialize hamster
- ObservableInitializeTerritoryCommandSpecification - Interface in de.hamstersimulator.objectsfirst.adapter.observables.command.specification.territory
-
observable version of command specification used to initialize the territory with a specific size
- ObservableLog - Interface in de.hamstersimulator.objectsfirst.adapter.observables
-
Interface which provides read-only access to the log entries It is not possible to create new log entries using this interface
- ObservableLogEntry - Interface in de.hamstersimulator.objectsfirst.adapter.observables
-
Interface which provides read-only access to a log entry
- ObservableMoveCommandSpecification - Interface in de.hamstersimulator.objectsfirst.adapter.observables.command.specification.hamster
-
observable version of command specification used to move the hamster one tile forward
- ObservablePickGrainCommandSpecification - Interface in de.hamstersimulator.objectsfirst.adapter.observables.command.specification.hamster
-
observable version of command specification used to make the hamster pick up one grain
- ObservablePutGrainCommandSpecification - Interface in de.hamstersimulator.objectsfirst.adapter.observables.command.specification.hamster
-
observable version of command specification used to make the hamster put down a grain
- ObservableTerritory - Interface in de.hamstersimulator.objectsfirst.adapter.observables
-
Interface to observe changes on the internal territory Provides read-only access to all tiles of the territory, and therefore all contents on the territory
- ObservableTile - Interface in de.hamstersimulator.objectsfirst.adapter.observables
-
Interface to observe changes on a tile of a territory Provides access to its contents, and whether or not it is blocked.
- ObservableTileContent - Interface in de.hamstersimulator.objectsfirst.adapter.observables
-
Interface to observe changes on a internal tile content Provides read-only access to the tile on which this content currently is
- ObservableTurnLeftCommandSpecification - Interface in de.hamstersimulator.objectsfirst.adapter.observables.command.specification.hamster
-
observable version of command specification used to turn the hamster counterclockwise 90 degrees
- ObservableWall - Interface in de.hamstersimulator.objectsfirst.adapter.observables
-
Interface to observe changes on the internal wall
- ObservableWriteCommandSpecification - Interface in de.hamstersimulator.objectsfirst.adapter.observables.command.specification.hamster
-
observable version of command specification used to print a message to the log via a hamster
- on(Class<C>) - Method in class de.hamstersimulator.objectsfirst.utils.LambdaVisitor
- onCloseRequest() - Method in class de.hamstersimulator.objectsfirst.ui.javafx.HamsterGameStage
- onDeltasCreated(List<Delta>) - Method in class de.hamstersimulator.objectsfirst.server.http.client.HamsterClient
-
Should be called by a TerritoryObserver when new deltas are added
- openSceneFor(Function<InputInterface, Stage>) - Static method in class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXUI
-
Opens the GUI with the stage which is provided by the given stage supplier requires that the JavaFXUI is started
- ORIGIN - Static variable in class de.hamstersimulator.objectsfirst.datatypes.Location
-
Constant representing the origin (0,0) of the coordinate system.
P
- paule - Variable in class de.hamstersimulator.objectsfirst.external.model.SimpleHamsterGame
-
Deprecated.Variable inherited to child classes containing the default hamster which is named paule here.
- paule - Variable in class de.hamstersimulator.objectsfirst.external.simple.game.SimpleHamsterGame
-
Variable inherited to child classes containing the default hamster which is named paule here.
- pause() - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
Pauses the game when it is running.
- pause() - Method in class de.hamstersimulator.objectsfirst.commands.GameCommandStack
-
Pauses the game when it is running.
- pauseAsync() - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
Pauses the game when it is running.
- pauseAsync() - Method in class de.hamstersimulator.objectsfirst.commands.GameCommandStack
-
Pauses the game when it is running.
- PAUSED - Enum constant in enum class de.hamstersimulator.objectsfirst.datatypes.Mode
-
It is necessary to continue the game to execute new commands.
- pauseGame() - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Pauses the HamsterGame.
- pickGrain() - Method in class de.hamstersimulator.objectsfirst.external.model.Hamster
-
Pick up a random grain from the tile on which the hamster is currently.
- PickGrainCommandSpecification - Class in de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification
- PickGrainCommandSpecification(GameHamster, Grain) - Constructor for class de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification.PickGrainCommandSpecification
- postRun() - Method in class de.hamstersimulator.objectsfirst.external.model.SimpleHamsterGame
-
Deprecated.Executed after the run method was executed Can be used, to perform cleanup, or start UI tools Warning: might not be executed!
- postRun() - Method in class de.hamstersimulator.objectsfirst.external.simple.game.SimpleHamsterGame
-
Executed after the run method was executed Can be used, to perform cleanup, or start UI tools Warning: might not be executed!
- PreconditionBuilder() - Constructor for class de.hamstersimulator.objectsfirst.commands.CompositeCommand.PreconditionBuilder
- Preconditions - Class in de.hamstersimulator.objectsfirst.utils
-
A utility class to implement precondition checks in Java.
- prepareStage() - Method in class de.hamstersimulator.objectsfirst.ui.javafx.HamsterGameStage
- putGrain() - Method in class de.hamstersimulator.objectsfirst.external.model.Hamster
-
Drop a random grain object from the hamster's mouth.
- PutGrainCommandSpecification - Class in de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification
- PutGrainCommandSpecification(GameHamster, Grain) - Constructor for class de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification.PutGrainCommandSpecification
R
- READ_INT - Enum constant in enum class de.hamstersimulator.objectsfirst.server.input.InputMode
-
Currently an int is requested
- READ_STRING - Enum constant in enum class de.hamstersimulator.objectsfirst.server.input.InputMode
-
Currently a string is requested
- readInteger(String) - Method in interface de.hamstersimulator.objectsfirst.adapter.InputInterface
-
Read an integer value from a user.
- readInteger(String) - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Read an integer value from a user.
- readInteger(String) - Method in class de.hamstersimulator.objectsfirst.server.input.RemoteInputInterface
-
Read an integer value from a user.
- readInteger(String) - Method in class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXInputInterface
- readNumber(String) - Method in class de.hamstersimulator.objectsfirst.external.model.Hamster
-
Read a number from the hamster simulator UI for further use.
- ReadOnlyHamster - Class in de.hamstersimulator.objectsfirst.internal.model.hamster
- ReadOnlyHamster() - Constructor for class de.hamstersimulator.objectsfirst.internal.model.hamster.ReadOnlyHamster
- ReadOnlyTerritory - Class in de.hamstersimulator.objectsfirst.internal.model.territory
- ReadOnlyTerritory() - Constructor for class de.hamstersimulator.objectsfirst.internal.model.territory.ReadOnlyTerritory
- readString(String) - Method in interface de.hamstersimulator.objectsfirst.adapter.InputInterface
-
Read a string value from a user.
- readString(String) - Method in class de.hamstersimulator.objectsfirst.external.model.Hamster
-
Read a string from the hamster simulator UI for further use.
- readString(String) - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Read a string value from a user.
- readString(String) - Method in class de.hamstersimulator.objectsfirst.server.input.RemoteInputInterface
-
Read a string value from a user.
- readString(String) - Method in class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXInputInterface
- redo() - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
Redoes the oldest undone command, if possible
- redo() - Method in class de.hamstersimulator.objectsfirst.commands.CommandStack
-
Redoes the oldest undone command, if possible
- redoAll() - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
Redoes all commands which are currently undone, in the same order like they where executed first
- redoAll() - Method in class de.hamstersimulator.objectsfirst.commands.CommandStack
-
Redoes all commands which are currently undone, in the same order like they where executed first
- RemoteInputInterface - Class in de.hamstersimulator.objectsfirst.server.input
-
The input interface that handles remote requests.
- RemoteInputInterface() - Constructor for class de.hamstersimulator.objectsfirst.server.input.RemoteInputInterface
- removeInputInterface(InputInterface) - Method in class de.hamstersimulator.objectsfirst.adapter.HamsterGameViewModel
-
Removes inputInterfaceToRemove from this game's input interfaces for reading values from users or mock objects
- reset() - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Soft-Reset the hamster game to its initial state (after started running).
- resume() - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
Pauses the HamsterGame.
- resume() - Method in class de.hamstersimulator.objectsfirst.commands.GameCommandStack
-
Pauses the HamsterGame.
- resumeGame() - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Pauses the HamsterGame.
- right() - Method in enum class de.hamstersimulator.objectsfirst.datatypes.Direction
- run() - Method in class de.hamstersimulator.objectsfirst.external.model.SimpleHamsterGame
-
Deprecated.Predefined hamster method designed to be overridden in subclass.
- run() - Method in class de.hamstersimulator.objectsfirst.external.simple.game.SimpleHamsterGame
-
Predefined hamster method designed to be overridden in subclass.
- runGame(Consumer<Territory>) - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Run a given hamster program until it terminates.
- RUNNING - Enum constant in enum class de.hamstersimulator.objectsfirst.datatypes.Mode
-
The game runs, new commands can be executed.
S
- setCommandConstructor(Consumer<CompositeCommand.CompositeCommandBuilder>) - Method in class de.hamstersimulator.objectsfirst.commands.CompositeCommand
- setKeepFXRunningAfterLastWindow() - Static method in class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXUI
- setPreconditionConstructor(Consumer<CompositeCommand.PreconditionBuilder>) - Method in class de.hamstersimulator.objectsfirst.commands.CompositeCommand
- setResult(String, int) - Method in class de.hamstersimulator.objectsfirst.server.input.RemoteInputInterface
-
Sets the result from a remote source
- setResultNoInput(int) - Method in class de.hamstersimulator.objectsfirst.server.input.RemoteInputInterface
-
Completes the input with no input
- setSpeed(double) - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
Set the speed of the hamster game.
- setSpeed(double) - Method in class de.hamstersimulator.objectsfirst.commands.GameCommandStack
-
Set the speed of the hamster game.
- setSpeed(double) - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Set the speed of the hamster game.
- SimpleHamsterGame - Class in de.hamstersimulator.objectsfirst.external.model
-
Deprecated.
- SimpleHamsterGame - Class in de.hamstersimulator.objectsfirst.external.simple.game
-
Parent class of a simple, to a large extend preconfigured hamster game.
- SimpleHamsterGame() - Constructor for class de.hamstersimulator.objectsfirst.external.model.SimpleHamsterGame
-
Deprecated.Initialized a simple hamster game by loading a default territory and setting protected references to contain the default hamster and the game.
- SimpleHamsterGame() - Constructor for class de.hamstersimulator.objectsfirst.external.simple.game.SimpleHamsterGame
-
Initialized a simple hamster game by loading a default territory and setting protected references to contain the default hamster and the game.
- SimpleHamsterGame.UIMode - Class in de.hamstersimulator.objectsfirst.external.model
-
Deprecated.Different UI types No enum is used because enums use reflection for valueOf which can cause issues if reflection is forbidden
- SimpleHamsterGame.UIMode - Class in de.hamstersimulator.objectsfirst.external.simple.game
-
Different UI types No enum is used because enums use reflection for valueOf which can cause issues if reflection is forbidden
- Size - Class in de.hamstersimulator.objectsfirst.datatypes
-
Objects of the class Size represent any kind of thing having a two dimensional size.
- Size(int, int) - Constructor for class de.hamstersimulator.objectsfirst.datatypes.Size
-
Create a new size object with the given dimensions.
- SOUTH - Enum constant in enum class de.hamstersimulator.objectsfirst.datatypes.Direction
-
South direction, i.e., towards the bottom of the screen
- speed - Variable in class de.hamstersimulator.objectsfirst.commands.GameCommandStack
- speedProperty() - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
Getter for the speed property provides read and write access to the current speed of the associated game Note: if this property is set to an invalid value (not in range [0, 10]), an exception is thrown
- speedProperty() - Method in class de.hamstersimulator.objectsfirst.commands.GameCommandStack
-
Getter for the speed property provides read and write access to the current speed of the associated game Note: if this property is set to an invalid value (not in range [0, 10]), an exception is thrown
- start() - Static method in class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXUI
-
Starts the javafx ui thread if not already started
- start(Stage) - Method in class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXUI
- startAndConnectToServer(HamsterGameViewModel) - Static method in class de.hamstersimulator.objectsfirst.server.http.client.HamsterClient
-
Starts the server on the default ports if it is not already running, and creates a new HamsterClient and connects it to the server
- startAndConnectToServerOnPort(HamsterGameViewModel, InetAddress, int, int) - Static method in class de.hamstersimulator.objectsfirst.server.http.client.HamsterClient
-
Starts the HamsTTPServer on the specified address and ports.
- startGame() - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Start the execution of a hamster game.
- startGame(boolean) - Method in class de.hamstersimulator.objectsfirst.commands.GameCommandStack
-
Start the execution of a hamster game.
- startGamePaused() - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Start the execution of a hamster game.
- stop() - Method in class de.hamstersimulator.objectsfirst.ui.javafx.JavaFXUI
- stopGame() - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
Stop the execution of the game.
- stopGame() - Method in class de.hamstersimulator.objectsfirst.commands.GameCommandStack
-
Stop the execution of the game.
- stopGame() - Method in class de.hamstersimulator.objectsfirst.external.model.HamsterGame
-
Stop the execution of the game.
- STOPPED - Enum constant in enum class de.hamstersimulator.objectsfirst.datatypes.Mode
-
The game was stopped on purpose or an exception occurred which stopped the game.
T
- Territory - Class in de.hamstersimulator.objectsfirst.external.model
-
The territory class represents territories for hamsters.
- TerritoryBuilder - Class in de.hamstersimulator.objectsfirst.external.model
- TerritoryBuilder - Class in de.hamstersimulator.objectsfirst.internal.model.territory
-
Objects of this class can be used to define Hamster territories.
- TerritoryLoader - Class in de.hamstersimulator.objectsfirst.internal.model.territory
- territorySizeProperty() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTerritory
-
Getter for the territorySize property Can be used to get the current size of the territory, which provides the amount of rows and columns
- territorySizeProperty() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.ReadOnlyTerritory
-
Getter for the territorySize property Can be used to get the current size of the territory, which provides the amount of rows and columns
- then(Function<C, A>) - Method in class de.hamstersimulator.objectsfirst.utils.LambdaVisitor.Acceptor
- Tile - Class in de.hamstersimulator.objectsfirst.internal.model.territory
- TileContent - Class in de.hamstersimulator.objectsfirst.internal.model.territory
- TileContent() - Constructor for class de.hamstersimulator.objectsfirst.internal.model.territory.TileContent
- TileNode - Class in de.hamstersimulator.objectsfirst.ui.javafx
- tilesProperty() - Method in interface de.hamstersimulator.objectsfirst.adapter.observables.ObservableTerritory
-
Getter for the tiles property Can be used to observe changes on any tile of the territory
- tilesProperty() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.ReadOnlyTerritory
-
Getter for the tiles property Can be used to observe changes on any tile of the territory
- toString() - Method in class de.hamstersimulator.objectsfirst.datatypes.Location
- toString() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.Grain
- toString() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.Tile
- toString() - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.Wall
- translate(LocationVector) - Method in class de.hamstersimulator.objectsfirst.datatypes.Location
-
Creates a new location object by using this location object as base point and adding the given location vector to it in a mathematical sense.
- turnLeft() - Method in class de.hamstersimulator.objectsfirst.external.model.Hamster
-
Changes the looking direction 90 degrees to the left, e.g., when looking north the hamster will look towards west afterwards.
- TurnLeftCommandSpecification - Class in de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification
- TurnLeftCommandSpecification(GameHamster) - Constructor for class de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification.TurnLeftCommandSpecification
U
- UIMode() - Constructor for class de.hamstersimulator.objectsfirst.external.model.SimpleHamsterGame.UIMode
-
Deprecated.
- UIMode() - Constructor for class de.hamstersimulator.objectsfirst.external.simple.game.SimpleHamsterGame.UIMode
- unbind() - Method in class de.hamstersimulator.objectsfirst.ui.javafx.HamsterTerritoryGrid
- undo() - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
Undoes the last executed command, if possible
- undo() - Method in class de.hamstersimulator.objectsfirst.commands.Command
- undo() - Method in class de.hamstersimulator.objectsfirst.commands.CommandStack
-
Undoes the last executed command, if possible
- undo() - Method in class de.hamstersimulator.objectsfirst.commands.CompositeCommand
- undoAll() - Method in interface de.hamstersimulator.objectsfirst.adapter.HamsterGameController
-
Undoes all commands which are executed, in the inverse order than they where executed
- undoAll() - Method in class de.hamstersimulator.objectsfirst.commands.CommandStack
-
Undoes all commands which are executed, in the inverse order than they where executed
- undoneCommands - Variable in class de.hamstersimulator.objectsfirst.commands.CommandStack
V
- valueOf(String) - Static method in enum class de.hamstersimulator.objectsfirst.datatypes.Direction
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class de.hamstersimulator.objectsfirst.datatypes.Mode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class de.hamstersimulator.objectsfirst.server.input.InputMode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class de.hamstersimulator.objectsfirst.datatypes.Direction
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class de.hamstersimulator.objectsfirst.datatypes.Mode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class de.hamstersimulator.objectsfirst.server.input.InputMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- Wall - Class in de.hamstersimulator.objectsfirst.internal.model.territory
- Wall() - Constructor for class de.hamstersimulator.objectsfirst.internal.model.territory.Wall
- wallAt(Location) - Method in class de.hamstersimulator.objectsfirst.external.model.TerritoryBuilder
- wallAt(Location) - Method in class de.hamstersimulator.objectsfirst.internal.model.territory.TerritoryBuilder
-
Place a wall at the given location.
- WEST - Enum constant in enum class de.hamstersimulator.objectsfirst.datatypes.Direction
-
West direction, i.e., towards the left of the screen
- write(String) - Method in class de.hamstersimulator.objectsfirst.external.model.Hamster
-
Writes a new string for this hamster to the game log.
- WriteCommandSpecification - Class in de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification
- WriteCommandSpecification(GameHamster, String) - Constructor for class de.hamstersimulator.objectsfirst.internal.model.hamster.command.specification.WriteCommandSpecification
All Classes|All Packages|Constant Field Values|Deprecated API|Serialized Form
SimpleHamsterGame