Class SimplePlayer

java.lang.Object
VASSAL.chat.SimplePlayer
All Implemented Interfaces:
Player
Direct Known Subclasses:
NodePlayer, P2PPlayer

public class SimplePlayer extends Object implements Player
Simple Player bean
  • Field Details

  • Constructor Details

    • SimplePlayer

      public SimplePlayer(String id, String name, PlayerStatus status)
    • SimplePlayer

      public SimplePlayer(String name)
    • SimplePlayer

      public SimplePlayer()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getName

      public String getName()
      Description copied from interface: Player
      Display name (nickname) for the player
      Specified by:
      getName in interface Player
    • setName

      public void setName(String name)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getId

      public String getId()
      Description copied from interface: Player
      Unique identifier for this player
      Specified by:
      getId in interface Player
    • getStatus

      public PlayerStatus getStatus()
      Description copied from interface: Player
      Return the current status of the player
      Specified by:
      getStatus in interface Player
    • setId

      public void setId(String id)
    • setStatus

      public void setStatus(PlayerStatus status)
    • updateStatus

      public void updateStatus()