Index
Alle Klassen und Schnittstellen|Alle Packages
A
- accept(ClientInterpreter, int) - Methode in Klasse pp.battleship.message.client.ClientMessage
-
Accepts a visitor for processing this message.
- accept(ClientInterpreter, int) - Methode in Klasse pp.battleship.message.client.MapMessage
-
Accepts a visitor to process this message.
- accept(ClientInterpreter, int) - Methode in Klasse pp.battleship.message.client.ShellAnimationFinishedMessage
- accept(ClientInterpreter, int) - Methode in Klasse pp.battleship.message.client.ShootMessage
-
Accepts a visitor to process this message.
- accept(ServerInterpreter) - Methode in Klasse pp.battleship.message.server.EffectMessage
-
Accepts a visitor to process this message.
- accept(ServerInterpreter) - Methode in Klasse pp.battleship.message.server.GameDetails
-
Accepts a visitor to process this message.
- accept(ServerInterpreter) - Methode in Klasse pp.battleship.message.server.ServerMessage
-
Accepts a visitor for processing this message.
- accept(ServerInterpreter) - Methode in Klasse pp.battleship.message.server.StartBattleMessage
-
Accepts a visitor to process this message.
- accept(Visitor<T>) - Methode in Klasse pp.battleship.model.Battleship
-
Accepts a visitor that returns a value of type
T
. - accept(Visitor<T>) - Methode in Schnittstelle pp.battleship.model.Item
-
Accepts a visitor to perform operations on the item.
- accept(Visitor<T>) - Methode in Klasse pp.battleship.model.Shot
-
Accepts a visitor with a return value.
- accept(VoidVisitor) - Methode in Klasse pp.battleship.model.Battleship
-
Accepts a visitor that does not return a value.
- accept(VoidVisitor) - Methode in Schnittstelle pp.battleship.model.Item
-
Accepts a visitor to perform operations on the item without returning a result.
- accept(VoidVisitor) - Methode in Klasse pp.battleship.model.Shot
-
Accepts a visitor without a return value.
- add(Battleship) - Methode in Klasse pp.battleship.model.ShipMap
-
Adds a battleship to the map and triggers an item addition event.
- add(Shot) - Methode in Klasse pp.battleship.model.ShipMap
-
Registers a shot on the map, updates the state of the affected ship (if any), and triggers an item addition event.
- addListener(GameEventListener) - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Adds a listener to receive game events.
- addPlayer(int) - Methode in Klasse pp.battleship.game.server.ServerGameLogic
-
Adds a new player to the game if there are less than two players.
B
- Battleship - Klasse in pp.battleship.model
-
Represents a battleship in the game.
- Battleship(int, int, int, Rotation) - Konstruktor für Klasse pp.battleship.model.Battleship
-
Constructs a new Battleship with the specified length, position, and rotation.
- Battleship.Status - Enum-Klasse in pp.battleship.model
-
Enumeration representing the different statuses a battleship can have during the game.
- BattleshipClient - Schnittstelle in pp.battleship.game.client
-
Interface representing a Battleship client.
- BattleshipClientConfig - Klasse in pp.battleship.game.singlemode
-
Class providing access to the Battleship client configuration.
- BattleshipClientConfig() - Konstruktor für Klasse pp.battleship.game.singlemode.BattleshipClientConfig
-
Creates a default
BattleshipClientConfig
with predefined values. - BattleshipConfig - Klasse in pp.battleship
-
Provides access to the configuration settings for the Battleship game.
- BattleshipConfig() - Konstruktor für Klasse pp.battleship.BattleshipConfig
-
Creates an instance of
BattleshipConfig
with default settings. - BUNDLE - Statische Variable in Klasse pp.battleship.Resources
-
The resource bundle for the Battleship game.
C
- clear() - Methode in Klasse pp.battleship.model.ShipMap
-
Removes all items from the map and triggers corresponding removal events for each.
- clickHarbor(IntPoint) - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Handles a click on the harbor map.
- clickOpponentMap(IntPoint) - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Handles a click on the opponent's map.
- clickOwnMap(IntPoint) - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Handles a click on the player's own map.
- ClientGameLogic - Klasse in pp.battleship.game.client
-
Controls the client-side game logic for Battleship.
- ClientGameLogic(ClientSender) - Konstruktor für Klasse pp.battleship.game.client.ClientGameLogic
-
Constructs a ClientGameLogic with the specified sender object.
- ClientInterpreter - Schnittstelle in pp.battleship.message.client
-
Visitor interface for processing all client messages.
- ClientMessage - Klasse in pp.battleship.message.client
-
An abstract base class for client messages used in network transfer.
- ClientMessage() - Konstruktor für Klasse pp.battleship.message.client.ClientMessage
-
Constructs a new ClientMessage instance.
- ClientSender - Schnittstelle in pp.battleship.game.client
-
Interface for sending messages to the server.
- ClientStateEvent - Datensatzklasse in pp.battleship.notification
-
Event when an item is added to a map.
- ClientStateEvent() - Konstruktor für Datensatzklasse pp.battleship.notification.ClientStateEvent
-
Erstellt eine Instanz einer Datensatzklasse
ClientStateEvent
. - collidesWith(Battleship) - Methode in Klasse pp.battleship.model.Battleship
-
Checks whether this battleship collides with another battleship.
- connect() - Methode in Schnittstelle pp.battleship.game.client.ServerConnection
-
Establishes a connection to the server.
- connect() - Methode in Klasse pp.battleship.game.singlemode.ServerConnectionMockup
-
Simulates connecting to a server by adding the PlayerClient and the RobotClient to the serverGameLogic.
- contains(int, int) - Methode in Klasse pp.battleship.model.Battleship
-
Checks whether the specified position is covered by the battleship.
- contains(IntPosition) - Methode in Klasse pp.battleship.model.Battleship
-
Checks whether the specified position is covered by the battleship.
- controlRender(RenderManager, ViewPort) - Methode in Klasse pp.battleship.model.ShellControl
- controlUpdate(float) - Methode in Klasse pp.battleship.model.ShellControl
D
- DESTROYED_SHIP - Enum-Konstante in Enum-Klasse pp.battleship.notification.Sound
-
Sound of a ship being destroyed.
- disconnect() - Methode in Schnittstelle pp.battleship.game.client.ServerConnection
-
Disconnects from the server.
- disconnect() - Methode in Klasse pp.battleship.game.singlemode.ServerConnectionMockup
-
Does nothing upon shutdown of the app.
- DOWN - Enum-Konstante in Enum-Klasse pp.battleship.model.Rotation
-
Represents the ship facing downwards.
- dx() - Methode in Enum-Klasse pp.battleship.model.Rotation
-
Gets the change in x-coordinate corresponding to this rotation.
- dy() - Methode in Enum-Klasse pp.battleship.model.Rotation
-
Gets the change in y-coordinate corresponding to this rotation.
E
- EffectMessage - Klasse in pp.battleship.message.server
-
A message sent by the server to inform clients about the effects of a shot in the Battleship game.
- enqueue(Runnable) - Methode in Schnittstelle pp.battleship.game.client.BattleshipClient
-
Enqueues a task to be executed by the client.
- equals(Object) - Methode in Klasse pp.battleship.model.IntPoint
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Methode in Klasse pp.battleship.model.Shot
-
Checks if this shot is equal to another object.
- equals(Object) - Methode in Datensatzklasse pp.battleship.notification.ClientStateEvent
-
Gibt an, ob ein anderes Objekt diesem gleich ("equal to") ist.
- equals(Object) - Methode in Datensatzklasse pp.battleship.notification.InfoTextEvent
-
Gibt an, ob ein anderes Objekt diesem gleich ("equal to") ist.
- equals(Object) - Methode in Datensatzklasse pp.battleship.notification.ItemAddedEvent
-
Gibt an, ob ein anderes Objekt diesem gleich ("equal to") ist.
- equals(Object) - Methode in Datensatzklasse pp.battleship.notification.ItemRemovedEvent
-
Gibt an, ob ein anderes Objekt diesem gleich ("equal to") ist.
- equals(Object) - Methode in Datensatzklasse pp.battleship.notification.SoundEvent
-
Gibt an, ob ein anderes Objekt diesem gleich ("equal to") ist.
- EXPLOSION - Enum-Konstante in Enum-Klasse pp.battleship.notification.Sound
-
Sound of an explosion.
F
- findShipAt(int, int) - Methode in Klasse pp.battleship.model.ShipMap
-
Finds a battleship at the specified coordinates.
- findShipAt(IntPosition) - Methode in Klasse pp.battleship.model.ShipMap
-
Finds a battleship at the specified position.
- fits(GameDetails) - Methode in Klasse pp.battleship.model.dto.ShipMapDTO
-
Checks if the current ship map fits the game details provided.
G
- GameDetails - Klasse in pp.battleship.message.server
-
A message sent by the server to provide details about the game configuration.
- GameDetails(BattleshipConfig) - Konstruktor für Klasse pp.battleship.message.server.GameDetails
-
Constructs a GameDetails message with the specified BattleshipConfig.
- GameEvent - Schnittstelle in pp.battleship.notification
-
An interface used for all game events.
- GameEventBroker - Schnittstelle in pp.battleship.notification
-
Defines a broker for distributing game events to registered listeners.
- GameEventListener - Schnittstelle in pp.battleship.notification
-
Listener interface for all events implemented by subclasses of GameEvent.
- getConfig() - Methode in Schnittstelle pp.battleship.game.client.BattleshipClient
-
Returns the configuration associated with this client.
- getCurrentPosition() - Methode in Klasse pp.battleship.model.Shell
- getDamaged() - Methode in Klasse pp.battleship.model.Battleship
-
Returns the positions of this battleship that have been hit.
- getDelay() - Methode in Klasse pp.battleship.game.singlemode.BattleshipClientConfig
-
Returns the delay (in milliseconds) between shots by the RobotClient.
- getDestroyedShip() - Methode in Klasse pp.battleship.message.server.EffectMessage
-
Returns the ship that was destroyed by the shot.
- getGameLogic() - Methode in Schnittstelle pp.battleship.game.client.BattleshipClient
-
Returns the game logic associated with this client.
- getHarbor() - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Returns the harbor map.
- getHeight() - Methode in Klasse pp.battleship.message.server.GameDetails
-
Returns the height of the game map.
- getHeight() - Methode in Klasse pp.battleship.model.ShipMap
-
Returns the height (number of rows) of the map.
- getId() - Methode in Klasse pp.battleship.game.server.Player
-
Returns the id of the connection to the client represented by this player.
- getInfoTextKey() - Methode in Klasse pp.battleship.message.server.EffectMessage
-
Returns the key for the informational text associated with this message.
- getInfoTextKey() - Methode in Klasse pp.battleship.message.server.GameDetails
-
Returns the key for the informational text associated with this message.
- getInfoTextKey() - Methode in Klasse pp.battleship.message.server.ServerMessage
-
Gets the bundle key of the informational text to be shown at the client.
- getInfoTextKey() - Methode in Klasse pp.battleship.message.server.StartBattleMessage
-
Returns the key for the informational text associated with this message.
- getItems() - Methode in Klasse pp.battleship.model.ShipMap
-
Returns an unmodifiable list of all items currently on the map.
- getLength() - Methode in Klasse pp.battleship.model.Battleship
-
Returns the length of the battleship.
- getMap() - Methode in Klasse pp.battleship.game.server.Player
- getMapHeight() - Methode in Klasse pp.battleship.BattleshipConfig
-
Returns the height of the game map.
- getMapWidth() - Methode in Klasse pp.battleship.BattleshipConfig
-
Returns the width of the game map.
- getMaxX() - Methode in Klasse pp.battleship.model.Battleship
-
Returns the maximum x-coordinate that the battleship occupies based on its current position and rotation.
- getMaxY() - Methode in Klasse pp.battleship.model.Battleship
-
Returns the maximum y-coordinate that the battleship occupies based on its current position and rotation.
- getMinX() - Methode in Klasse pp.battleship.model.Battleship
-
Returns the minimum x-coordinate that the battleship occupies based on its current position and rotation.
- getMinY() - Methode in Klasse pp.battleship.model.Battleship
-
Returns the minimum y-coordinate that the battleship occupies based on its current position and rotation.
- getOpponentMap() - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Returns the opponent's map.
- getOpponentMap() - Methode in Klasse pp.battleship.game.singlemode.BattleshipClientConfig
-
Returns the file representing the opponent's map.
- getOwnMap() - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Returns the player's own map.
- getOwnMap() - Methode in Klasse pp.battleship.game.singlemode.BattleshipClientConfig
-
Returns the file representing the player's own map.
- getPlayerById(int) - Methode in Klasse pp.battleship.game.server.ServerGameLogic
-
Returns the player representing the client with the specified connection ID.
- getPort() - Methode in Klasse pp.battleship.BattleshipConfig
-
Returns the port number configured for the Battleship server.
- getPosition() - Methode in Klasse pp.battleship.message.client.ShootMessage
-
Returns the position of the shot.
- getRemainingOpponentShips() - Methode in Klasse pp.battleship.message.server.EffectMessage
-
Returns the list of opponent's remaining ships after the shot.
- getRemainingShips() - Methode in Klasse pp.battleship.model.ShipMap
-
Returns a list of all remaining battleships that have not been destroyed.
- getRobotTargets() - Methode in Klasse pp.battleship.game.singlemode.BattleshipClientConfig
-
Returns an iterator of
IntPoint
objects representing the predefined shooting locations for the RobotClient. - getRot() - Methode in Klasse pp.battleship.model.Battleship
-
Returns the current rotation of the battleship.
- getShell() - Methode in Klasse pp.battleship.model.ShellControl
- getShipNums() - Methode in Klasse pp.battleship.BattleshipConfig
-
Returns a map representing the number of ships for each length.
- getShipNums() - Methode in Klasse pp.battleship.message.server.GameDetails
-
Returns a map where the keys represent ship lengths and the values represent the number of ships of that length.
- getShips() - Methode in Klasse pp.battleship.message.client.MapMessage
-
Returns the list of ships on the player's map.
- getShips() - Methode in Klasse pp.battleship.model.dto.ShipMapDTO
-
Returns the ships stored in this DTO.
- getShips() - Methode in Klasse pp.battleship.model.ShipMap
-
Returns a stream of all battleships currently on the map.
- getShot() - Methode in Klasse pp.battleship.message.server.EffectMessage
-
Returns the shot fired.
- getShots() - Methode in Klasse pp.battleship.model.ShipMap
-
Returns a stream of all shots fired on the map.
- getStatus() - Methode in Klasse pp.battleship.model.Battleship
-
Returns the current status of the battleship.
- getWidth() - Methode in Klasse pp.battleship.message.server.GameDetails
-
Returns the width of the game map.
- getWidth() - Methode in Klasse pp.battleship.model.ShipMap
-
Returns the width (number of columns) of the map.
- getX() - Methode in Klasse pp.battleship.model.Battleship
-
Returns the current x-coordinate of the battleship's position.
- getX() - Methode in Klasse pp.battleship.model.IntPoint
-
Gets the x-coordinate of the point.
- getX() - Methode in Schnittstelle pp.battleship.model.IntPosition
-
Returns the X coordinate of this position.
- getX() - Methode in Klasse pp.battleship.model.Shot
-
Gets the x-coordinate of the shot.
- getY() - Methode in Klasse pp.battleship.model.Battleship
-
Returns the current y-coordinate of the battleship's position.
- getY() - Methode in Klasse pp.battleship.model.IntPoint
-
Gets the y-coordinate of the point.
- getY() - Methode in Schnittstelle pp.battleship.model.IntPosition
-
Returns the Y coordinate of this position.
- getY() - Methode in Klasse pp.battleship.model.Shot
-
Gets the y-coordinate of the shot.
H
- hashCode() - Methode in Klasse pp.battleship.model.IntPoint
-
Returns a hash code value for the IntPoint.
- hashCode() - Methode in Klasse pp.battleship.model.Shot
-
Computes the hash code of this shot.
- hashCode() - Methode in Datensatzklasse pp.battleship.notification.ClientStateEvent
-
Gibt einen Hashcodewert für diese Objekt zurück.
- hashCode() - Methode in Datensatzklasse pp.battleship.notification.InfoTextEvent
-
Gibt einen Hashcodewert für diese Objekt zurück.
- hashCode() - Methode in Datensatzklasse pp.battleship.notification.ItemAddedEvent
-
Gibt einen Hashcodewert für diese Objekt zurück.
- hashCode() - Methode in Datensatzklasse pp.battleship.notification.ItemRemovedEvent
-
Gibt einen Hashcodewert für diese Objekt zurück.
- hashCode() - Methode in Datensatzklasse pp.battleship.notification.SoundEvent
-
Gibt einen Hashcodewert für diese Objekt zurück.
- hit(boolean, IntPoint) - Statische Methode in Klasse pp.battleship.message.server.EffectMessage
-
Creates an EffectMessage indicating a hit.
- hit(int, int) - Methode in Klasse pp.battleship.model.Battleship
-
Attempts to hit the battleship at the specified position.
- hit(IntPosition) - Methode in Klasse pp.battleship.model.Battleship
-
Attempts to hit the battleship at the specified position.
I
- InfoTextEvent - Datensatzklasse in pp.battleship.notification
-
Event when an item is added to a map.
- InfoTextEvent(String) - Konstruktor für Datensatzklasse pp.battleship.notification.InfoTextEvent
-
Erstellt eine Instanz einer Datensatzklasse
InfoTextEvent
. - IntPoint - Klasse in pp.battleship.model
-
Represents a point in the two-dimensional plane with integer coordinates.
- IntPoint(int, int) - Konstruktor für Klasse pp.battleship.model.IntPoint
-
Constructs a new IntPoint with the specified coordinates.
- IntPosition - Schnittstelle in pp.battleship.model
-
Interface representing a position with X and Y coordinates.
- INVALID_PREVIEW - Enum-Konstante in Enum-Klasse pp.battleship.model.Battleship.Status
-
The ship is being previewed in an invalid position for placement.
- isAtTarget() - Methode in Klasse pp.battleship.model.Shell
- isConnected() - Methode in Schnittstelle pp.battleship.game.client.ServerConnection
-
Checks if the client is currently connected to the server.
- isConnected() - Methode in Klasse pp.battleship.game.singlemode.ServerConnectionMockup
-
Always returns true as this is a mock connection.
- isDestroyed() - Methode in Klasse pp.battleship.model.Battleship
-
Determines if the battleship has been completely destroyed.
- isGameLost() - Methode in Klasse pp.battleship.message.server.EffectMessage
-
Checks if the game is lost by the player.
- isGameOver() - Methode in Klasse pp.battleship.message.server.EffectMessage
-
Checks if the game is over.
- isGameWon() - Methode in Klasse pp.battleship.message.server.EffectMessage
-
Checks if the game is won by the player.
- isHit() - Methode in Klasse pp.battleship.model.Shot
-
Checks if the shot was a hit.
- isMapComplete() - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Checks if the player's map is complete (i.e., all ships are placed).
- isMyTurn() - Methode in Klasse pp.battleship.message.server.EffectMessage
-
Checks if it's currently the player's turn.
- isMyTurn() - Methode in Klasse pp.battleship.message.server.StartBattleMessage
-
Checks if it's the client's turn to shoot.
- isOwnShot() - Methode in Klasse pp.battleship.message.server.EffectMessage
-
Checks if the shot was fired by the player.
- isSingleMode() - Methode in Klasse pp.battleship.game.singlemode.BattleshipClientConfig
-
Determines if the game is in single mode based on the presence of an opponent map.
- isValid(int, int) - Methode in Klasse pp.battleship.model.ShipMap
-
Checks if the specified coordinates are within the map boundaries.
- isValid(Battleship) - Methode in Klasse pp.battleship.model.ShipMap
-
Checks if the given ship is in a valid position (within the map bounds and non-colliding with other ships).
- isValid(IntPosition) - Methode in Klasse pp.battleship.model.ShipMap
-
Validates whether the specified position is within the map boundaries.
- item() - Methode in Datensatzklasse pp.battleship.notification.ItemAddedEvent
-
Gibt den Wert für die Datensatzkomponente
item
zurück. - item() - Methode in Datensatzklasse pp.battleship.notification.ItemRemovedEvent
-
Gibt den Wert für die Datensatzkomponente
item
zurück. - Item - Schnittstelle in pp.battleship.model
-
An interface representing any item on a ship map.
- ItemAddedEvent - Datensatzklasse in pp.battleship.notification
-
Event when an item is added to a map.
- ItemAddedEvent(Item, ShipMap) - Konstruktor für Datensatzklasse pp.battleship.notification.ItemAddedEvent
-
Erstellt eine Instanz einer Datensatzklasse
ItemAddedEvent
. - ItemRemovedEvent - Datensatzklasse in pp.battleship.notification
-
Event when an item gets removed.
- ItemRemovedEvent(Item, ShipMap) - Konstruktor für Datensatzklasse pp.battleship.notification.ItemRemovedEvent
-
Erstellt eine Instanz einer Datensatzklasse
ItemRemovedEvent
.
K
- key() - Methode in Datensatzklasse pp.battleship.notification.InfoTextEvent
-
Gibt den Wert für die Datensatzkomponente
key
zurück.
L
- LEFT - Enum-Konstante in Enum-Klasse pp.battleship.model.Rotation
-
Represents the ship facing leftwards.
- loadFrom(File) - Statische Methode in Klasse pp.battleship.model.dto.ShipMapDTO
-
Loads a ShipMapDTO from a file containing JSON data.
- loadMap(File) - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Loads a map from the specified file.
- lookup(String) - Statische Methode in Klasse pp.battleship.Resources
-
Gets a string for the given key from the resource bundle in Resources.BUNDLE.
- lost(IntPoint, Battleship, List<Battleship>) - Statische Methode in Klasse pp.battleship.message.server.EffectMessage
-
Creates an EffectMessage indicating the player has lost the game.
M
- map() - Methode in Datensatzklasse pp.battleship.notification.ItemAddedEvent
-
Gibt den Wert für die Datensatzkomponente
map
zurück. - map() - Methode in Datensatzklasse pp.battleship.notification.ItemRemovedEvent
-
Gibt den Wert für die Datensatzkomponente
map
zurück. - mapFinished() - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Marks the player's map as finished.
- MapMessage - Klasse in pp.battleship.message.client
-
A message sent by the client containing the positions of the ships on the player's map.
- MapMessage(List<Battleship>) - Konstruktor für Klasse pp.battleship.message.client.MapMessage
-
Constructs a MapMessage with the specified list of ships.
- mayLoadMap() - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Checks if the player's own map may be loaded from a file.
- maySaveMap() - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Checks if the player's own map may be saved to a file.
- miss(boolean, IntPoint) - Statische Methode in Klasse pp.battleship.message.server.EffectMessage
-
Creates an EffectMessage indicating a miss.
- movePreview(IntPoint) - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Moves the preview ship to the specified position.
- moveTo(int, int) - Methode in Klasse pp.battleship.model.Battleship
-
Moves the battleship to the specified coordinates.
- moveTo(IntPosition) - Methode in Klasse pp.battleship.model.Battleship
-
Moves the battleship to the specified position.
- movingShip() - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Checks if there is currently a preview ship.
N
- NORMAL - Enum-Konstante in Enum-Klasse pp.battleship.model.Battleship.Status
-
The ship is in its normal state, not being previewed for placement.
- notifyListener(GameEventListener) - Methode in Datensatzklasse pp.battleship.notification.ClientStateEvent
-
Notifies the game event listener of this event.
- notifyListener(GameEventListener) - Methode in Schnittstelle pp.battleship.notification.GameEvent
-
Notifies the game event listener of the event.
- notifyListener(GameEventListener) - Methode in Datensatzklasse pp.battleship.notification.InfoTextEvent
-
Notifies the game event listener of this event.
- notifyListener(GameEventListener) - Methode in Datensatzklasse pp.battleship.notification.ItemAddedEvent
-
Notifies the game event listener of this event.
- notifyListener(GameEventListener) - Methode in Datensatzklasse pp.battleship.notification.ItemRemovedEvent
-
Notifies the game event listener of this event.
- notifyListener(GameEventListener) - Methode in Datensatzklasse pp.battleship.notification.SoundEvent
-
Notifies the game event listener of this event.
- notifyListeners(GameEvent) - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Notifies all listeners of a game event.
- notifyListeners(GameEvent) - Methode in Schnittstelle pp.battleship.notification.GameEventBroker
-
Notifies all registered listeners about the specified game event.
P
- Player - Klasse in pp.battleship.game.server
-
Class representing a player
- playSound(Sound) - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Emits an event to play the specified sound.
- pp.battleship - Package pp.battleship
- pp.battleship.game.client - Package pp.battleship.game.client
- pp.battleship.game.server - Package pp.battleship.game.server
- pp.battleship.game.singlemode - Package pp.battleship.game.singlemode
- pp.battleship.message.client - Package pp.battleship.message.client
- pp.battleship.message.server - Package pp.battleship.message.server
- pp.battleship.model - Package pp.battleship.model
- pp.battleship.model.dto - Package pp.battleship.model.dto
- pp.battleship.notification - Package pp.battleship.notification
R
- received(MapMessage, int) - Methode in Klasse pp.battleship.game.server.ServerGameLogic
-
Handles the reception of a MapMessage.
- received(MapMessage, int) - Methode in Schnittstelle pp.battleship.message.client.ClientInterpreter
-
Processes a received MapMessage.
- received(ShellAnimationFinishedMessage, int) - Methode in Klasse pp.battleship.game.server.ServerGameLogic
-
Handles the reception of ShellAnimationFinishedMessage.
- received(ShellAnimationFinishedMessage, int) - Methode in Schnittstelle pp.battleship.message.client.ClientInterpreter
- received(ShootMessage, int) - Methode in Klasse pp.battleship.game.server.ServerGameLogic
-
Handles the reception of a ShootMessage.
- received(ShootMessage, int) - Methode in Schnittstelle pp.battleship.message.client.ClientInterpreter
-
Processes a received ShootMessage.
- received(EffectMessage) - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Reports the effect of a shot based on the server message.
- received(EffectMessage) - Methode in Schnittstelle pp.battleship.message.server.ServerInterpreter
-
Handles an EffectMessage received from the server.
- received(GameDetails) - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Sets the game details provided by the server.
- received(GameDetails) - Methode in Schnittstelle pp.battleship.message.server.ServerInterpreter
-
Handles a GameDetails message received from the server.
- received(StartBattleMessage) - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Starts the battle based on the server message.
- received(StartBattleMessage) - Methode in Schnittstelle pp.battleship.message.server.ServerInterpreter
-
Handles a StartBattleMessage received from the server.
- receivedEvent(ClientStateEvent) - Methode in Schnittstelle pp.battleship.notification.GameEventListener
-
Indicates that the client's state has changed.
- receivedEvent(InfoTextEvent) - Methode in Schnittstelle pp.battleship.notification.GameEventListener
-
Indicates that an info text shall be shown.
- receivedEvent(ItemAddedEvent) - Methode in Schnittstelle pp.battleship.notification.GameEventListener
-
Indicates that an item has been added to a map.
- receivedEvent(ItemRemovedEvent) - Methode in Schnittstelle pp.battleship.notification.GameEventListener
-
Indicates that an item has been destroyed
- receivedEvent(SoundEvent) - Methode in Schnittstelle pp.battleship.notification.GameEventListener
-
Indicates that a sound shall be played.
- remove(Item) - Methode in Klasse pp.battleship.model.ShipMap
-
Removes an item from the map and triggers an item removal event.
- removeListener(GameEventListener) - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Removes a listener from receiving game events.
- Resources - Klasse in pp.battleship
-
Provides access to the resource bundle of the game.
- RIGHT - Enum-Konstante in Enum-Klasse pp.battleship.model.Rotation
-
Represents the ship facing rightwards.
- rotate() - Methode in Enum-Klasse pp.battleship.model.Rotation
-
Rotates the orientation clockwise and returns the next rotation.
- rotated() - Methode in Klasse pp.battleship.model.Battleship
-
Rotates the battleship by 90 degrees clockwise.
- rotateShip() - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Rotates the preview ship.
- Rotation - Enum-Klasse in pp.battleship.model
-
Represents the rotation of a ship and provides functionality related to rotation.
S
- saveMap(File) - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Saves the player's own map to the specified file.
- saveTo(File) - Methode in Klasse pp.battleship.model.dto.ShipMapDTO
-
Saves the current ShipMapDTO to a file in JSON format.
- send(int, ServerMessage) - Methode in Schnittstelle pp.battleship.game.server.ServerSender
-
Send the specified message to the client.
- send(int, ServerMessage) - Methode in Klasse pp.battleship.game.singlemode.ServerConnectionMockup
-
Forwards the specified message received from the server logic either to the player client or to the robot client, depending on the specified id.
- send(ClientMessage) - Methode in Schnittstelle pp.battleship.game.client.ClientSender
-
Send the specified message to the server.
- send(ClientMessage) - Methode in Klasse pp.battleship.game.singlemode.ServerConnectionMockup
-
Forwards the specified message received from the player client to the server logic.
- ServerConnection - Schnittstelle in pp.battleship.game.client
-
Interface representing a connection to the server.
- ServerConnectionMockup - Klasse in pp.battleship.game.singlemode
-
A mock implementation of the ServerConnection interface for single mode.
- ServerConnectionMockup(BattleshipClient) - Konstruktor für Klasse pp.battleship.game.singlemode.ServerConnectionMockup
-
Constructs a ServerConnectionMockup instance for the given Battleship application.
- ServerGameLogic - Klasse in pp.battleship.game.server
-
Controls the server-side game logic for Battleship.
- ServerGameLogic(ServerSender, BattleshipConfig) - Konstruktor für Klasse pp.battleship.game.server.ServerGameLogic
-
Constructs a ServerGameLogic with the specified sender and configuration.
- ServerInterpreter - Schnittstelle in pp.battleship.message.server
-
An interface for processing server messages.
- ServerMessage - Klasse in pp.battleship.message.server
-
An abstract base class for server messages used in network transfer.
- ServerMessage() - Konstruktor für Klasse pp.battleship.message.server.ServerMessage
-
Constructs a new ServerMessage instance.
- ServerSender - Schnittstelle in pp.battleship.game.server
-
Interface for sending messages to a client.
- setRotation(Rotation) - Methode in Klasse pp.battleship.model.Battleship
-
Sets the rotation of the battleship.
- setShell(Shell) - Methode in Klasse pp.battleship.model.ShellControl
- setStatus(Battleship.Status) - Methode in Klasse pp.battleship.model.Battleship
-
Sets the status of the battleship.
- Shell - Klasse in pp.battleship.model
- Shell(Vector3f, Vector3f, float) - Konstruktor für Klasse pp.battleship.model.Shell
- ShellAnimationFinishedMessage - Klasse in pp.battleship.message.client
- ShellAnimationFinishedMessage() - Konstruktor für Klasse pp.battleship.message.client.ShellAnimationFinishedMessage
- ShellControl - Klasse in pp.battleship.model
- ShellControl(Shell) - Konstruktor für Klasse pp.battleship.model.ShellControl
- shipDestroyed(boolean, IntPoint, Battleship) - Statische Methode in Klasse pp.battleship.message.server.EffectMessage
-
Creates an EffectMessage indicating a ship was destroyed.
- ShipMap - Klasse in pp.battleship.model
-
Represents a rectangular map that holds ships and registers shots fired.
- ShipMap(int, int, GameEventBroker) - Konstruktor für Klasse pp.battleship.model.ShipMap
-
Constructs an empty map with the given dimensions.
- ShipMapDTO - Klasse in pp.battleship.model.dto
-
A class representing data transfer objects of ship maps for JSON serialization and deserialization.
- ShipMapDTO(ShipMap) - Konstruktor für Klasse pp.battleship.model.dto.ShipMapDTO
-
Constructs a ShipMapDTO object from a ShipMap object.
- ShootingAnimationState - Klasse in pp.battleship.game.client
-
This class represents the client state during a shooting animation.
- ShootMessage - Klasse in pp.battleship.message.client
-
A message sent by the client to indicate a shooting action in the game.
- ShootMessage(IntPoint) - Konstruktor für Klasse pp.battleship.message.client.ShootMessage
-
Constructs a ShootMessage with the specified position.
- Shot - Klasse in pp.battleship.model
-
Represents a shot in the Battleship game.
- Shot(int, int, boolean) - Konstruktor für Klasse pp.battleship.model.Shot
-
Creates a new shot.
- Shot(IntPosition, boolean) - Konstruktor für Klasse pp.battleship.model.Shot
-
Creates a new shot.
- showBattle() - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Checks if the battle state should be shown.
- showBattle() - Methode in Klasse pp.battleship.game.client.ShootingAnimationState
-
Indicates that the battle scene should be shown in this state.
- showEditor() - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Checks if the editor should be shown.
- sound() - Methode in Datensatzklasse pp.battleship.notification.SoundEvent
-
Gibt den Wert für die Datensatzkomponente
sound
zurück. - Sound - Enum-Klasse in pp.battleship.notification
-
Enumeration representing different types of sounds used in the game.
- SoundEvent - Datensatzklasse in pp.battleship.notification
-
Event when an item is added to a map.
- SoundEvent(Sound) - Konstruktor für Datensatzklasse pp.battleship.notification.SoundEvent
-
Erstellt eine Instanz einer Datensatzklasse
SoundEvent
. - SPLASH - Enum-Konstante in Enum-Klasse pp.battleship.notification.Sound
-
Sound of a splash.
- StartBattleMessage - Klasse in pp.battleship.message.server
-
A message sent by the server to inform clients about the start of the battle.
- StartBattleMessage(boolean) - Konstruktor für Klasse pp.battleship.message.server.StartBattleMessage
-
Constructs a StartBattleMessage with the specified turn indicator.
T
- toString() - Methode in Klasse pp.battleship.game.server.Player
- toString() - Methode in Klasse pp.battleship.message.client.MapMessage
-
Returns a string representation of the MapMessage.
- toString() - Methode in Klasse pp.battleship.message.client.ShootMessage
-
Returns a string representation of the ShootMessage.
- toString() - Methode in Klasse pp.battleship.message.server.EffectMessage
-
Returns a string representation of the EffectMessage.
- toString() - Methode in Klasse pp.battleship.message.server.GameDetails
-
Returns a string representation of the GameDetails message.
- toString() - Methode in Klasse pp.battleship.message.server.StartBattleMessage
-
Returns a string representation of the StartBattleMessage.
- toString() - Methode in Klasse pp.battleship.model.Battleship
-
Returns a string representation of the battleship, including its length, position, and rotation.
- toString() - Methode in Klasse pp.battleship.model.IntPoint
-
Returns a string representation of the IntPoint.
- toString() - Methode in Klasse pp.battleship.model.ShipMap
-
Returns a string representation of the ship map.
- toString() - Methode in Klasse pp.battleship.model.Shot
-
Returns a string representation of the shot.
- toString() - Methode in Datensatzklasse pp.battleship.notification.ClientStateEvent
-
Gibt eine Zeichenfolgendarstellung dieser Datensatzklasse zurück.
- toString() - Methode in Datensatzklasse pp.battleship.notification.InfoTextEvent
-
Gibt eine Zeichenfolgendarstellung dieser Datensatzklasse zurück.
- toString() - Methode in Datensatzklasse pp.battleship.notification.ItemAddedEvent
-
Gibt eine Zeichenfolgendarstellung dieser Datensatzklasse zurück.
- toString() - Methode in Datensatzklasse pp.battleship.notification.ItemRemovedEvent
-
Gibt eine Zeichenfolgendarstellung dieser Datensatzklasse zurück.
- toString() - Methode in Datensatzklasse pp.battleship.notification.SoundEvent
-
Gibt eine Zeichenfolgendarstellung dieser Datensatzklasse zurück.
U
- UP - Enum-Konstante in Enum-Klasse pp.battleship.model.Rotation
-
Represents the ship facing upwards.
- update(float) - Methode in Klasse pp.battleship.game.client.ClientGameLogic
-
Called once per frame by the update loop.
- update(float) - Methode in Klasse pp.battleship.game.client.ShootingAnimationState
-
Called once per frame to update the shell's position and check if it has reached the target.
- updatePosition(float) - Methode in Klasse pp.battleship.model.Shell
V
- VALID_PREVIEW - Enum-Konstante in Enum-Klasse pp.battleship.model.Battleship.Status
-
The ship is being previewed in a valid position for placement.
- valueOf(String) - Statische Methode in Enum-Klasse pp.battleship.model.Battleship.Status
-
Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück.
- valueOf(String) - Statische Methode in Enum-Klasse pp.battleship.model.Rotation
-
Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück.
- valueOf(String) - Statische Methode in Enum-Klasse pp.battleship.notification.Sound
-
Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück.
- values() - Statische Methode in Enum-Klasse pp.battleship.model.Battleship.Status
-
Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.
- values() - Statische Methode in Enum-Klasse pp.battleship.model.Rotation
-
Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.
- values() - Statische Methode in Enum-Klasse pp.battleship.notification.Sound
-
Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.
- visit(Battleship) - Methode in Schnittstelle pp.battleship.model.Visitor
-
Visits a Battleship element.
- visit(Battleship) - Methode in Schnittstelle pp.battleship.model.VoidVisitor
-
Visits a Battleship element.
- visit(Shot) - Methode in Schnittstelle pp.battleship.model.Visitor
-
Visits a Shot element.
- visit(Shot) - Methode in Schnittstelle pp.battleship.model.VoidVisitor
-
Visits a Shot element.
- Visitor<T> - Schnittstelle in pp.battleship.model
-
An interface for implementing the Visitor pattern for different types of elements in the Battleship model.
- VoidVisitor - Schnittstelle in pp.battleship.model
-
An interface for implementing the Visitor pattern for different types of elements in the Battleship model without returning any result.
W
- won(IntPoint, Battleship) - Statische Methode in Klasse pp.battleship.message.server.EffectMessage
-
Creates an EffectMessage indicating the player has won the game.
Alle Klassen und Schnittstellen|Alle Packages