Package pp.battleship.message.client
Klasse ShootMessage
java.lang.Object
com.jme3.network.AbstractMessage
pp.battleship.message.client.ClientMessage
pp.battleship.message.client.ShootMessage
- Alle implementierten Schnittstellen:
com.jme3.network.Message
A message sent by the client to indicate a shooting action in the game.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungShootMessage(IntPoint position) Constructs a ShootMessage with the specified position. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaccept(ClientInterpreter interpreter, int from) Accepts a visitor to process this message.Returns the position of the shot.toString()Returns a string representation of the ShootMessage.Von Klasse geerbte Methoden com.jme3.network.AbstractMessage
isReliable, setReliable
-
Konstruktordetails
-
ShootMessage
Constructs a ShootMessage with the specified position.- Parameter:
position- the position where the shot is fired
-
-
Methodendetails
-
getPosition
Returns the position of the shot.- Gibt zurück:
- the position of the shot
-
toString
Returns a string representation of the ShootMessage. -
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
-