Klasse Player

java.lang.Object
pp.battleship.game.server.Player

public class Player extends Object
Class representing a player
  • Methodendetails

    • getId

      public int getId()
      Returns the id of the connection to the client represented by this player.
      Gibt zurück:
      the id
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • getMap

      public ShipMap getMap()
      Gibt zurück:
      map containing own ships and shots