Package pp.battleship.message.client
Klasse MapMessage
java.lang.Object
com.jme3.network.AbstractMessage
pp.battleship.message.client.ClientMessage
pp.battleship.message.client.MapMessage
- Alle implementierten Schnittstellen:
com.jme3.network.Message
A message sent by the client containing the positions of the ships on the player's map.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungMapMessage(List<Battleship> ships) Constructs a MapMessage with the specified list of ships. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaccept(ClientInterpreter interpreter, int from) Accepts a visitor to process this message.getShips()Returns the list of ships on the player's map.toString()Returns a string representation of the MapMessage.Von Klasse geerbte Methoden com.jme3.network.AbstractMessage
isReliable, setReliable
-
Konstruktordetails
-
MapMessage
Constructs a MapMessage with the specified list of ships.- Parameter:
ships- the list of ships placed on the player's map
-
-
Methodendetails
-
getShips
Returns the list of ships on the player's map.- Gibt zurück:
- the list of ships
-
toString
Returns a string representation of the MapMessage. -
accept
Accepts a visitor to process this message.- Angegeben von:
acceptin KlasseClientMessage- Parameter:
interpreter- the visitor to process this messagefrom- the connection ID from which the message was received
-