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

public class ShootMessage extends ClientMessage
A message sent by the client to indicate a shooting action in the game.
  • Konstruktordetails

    • ShootMessage

      public ShootMessage(IntPoint position)
      Constructs a ShootMessage with the specified position.
      Parameter:
      position - the position where the shot is fired
  • Methodendetails

    • getPosition

      public IntPoint getPosition()
      Returns the position of the shot.
      Gibt zurück:
      the position of the shot
    • toString

      public String toString()
      Returns a string representation of the ShootMessage.
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      a string representation of the ShootMessage
    • accept

      public void accept(ClientInterpreter interpreter, int from)
      Accepts a visitor to process this message.
      Angegeben von:
      accept in Klasse ClientMessage
      Parameter:
      interpreter - the visitor to process this message
      from - the connection ID from which the message was received