Package pp.battleship.notification
Schnittstelle GameEventListener
public interface GameEventListener
Listener interface for all events implemented by subclasses of GameEvent.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdefault voidreceivedEvent(ClientStateEvent event) Indicates that the client's state has changed.default voidreceivedEvent(InfoTextEvent event) Indicates that an info text shall be shown.default voidreceivedEvent(ItemAddedEvent event) Indicates that an item has been added to a map.default voidreceivedEvent(ItemRemovedEvent event) Indicates that an item has been destroyeddefault voidreceivedEvent(SoundEvent event) Indicates that a sound shall be played.
-
Methodendetails
-
receivedEvent
Indicates that an item has been destroyed- Parameter:
event- the received event
-
receivedEvent
Indicates that an item has been added to a map.- Parameter:
event- the received event
-
receivedEvent
Indicates that an info text shall be shown.- Parameter:
event- the received event
-
receivedEvent
Indicates that a sound shall be played.- Parameter:
event- the received event
-
receivedEvent
Indicates that the client's state has changed.- Parameter:
event- the received event
-