Package pp.battleship.game.client
Schnittstelle BattleshipClient
public interface BattleshipClient
Interface representing a Battleship client.
Provides methods to access game logic, configuration, and to enqueue tasks.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidEnqueues a task to be executed by the client.Returns the configuration associated with this client.Returns the game logic associated with this client.
-
Methodendetails
-
getGameLogic
ClientGameLogic getGameLogic()Returns the game logic associated with this client.- Gibt zurück:
- the ClientGameLogic instance
-
getConfig
BattleshipClientConfig getConfig()Returns the configuration associated with this client.- Gibt zurück:
- the BattleshipConfig instance
-
enqueue
Enqueues a task to be executed by the client.- Parameter:
runnable- the task to be executed
-