public class PlayerProxy
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private boolean |
ai
Whether the player this proxy represents is an AI.
|
private int |
id
The ID of the player this proxy represents.
|
private boolean |
lost
Whether the connection to the player this proxy represents was lost.
|
private java.lang.String |
name
The name of the player this proxy represents.
|
private static long |
serialVersionUID
Serial ID.
|
Constructor and Description |
---|
PlayerProxy(Player player)
Constructs a new player proxy from the given player.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
int |
getID()
Gets the ID of the player.
|
java.lang.String |
getName()
Gets the name of the player.
|
int |
hashCode() |
boolean |
isAI()
Checks if the player is an AI.
|
boolean |
isLost()
Checks if the connection to the player was lost.
|
private static final long serialVersionUID
private int id
private java.lang.String name
private boolean ai
private boolean lost
public PlayerProxy(Player player)
player
- The player to construct a proxy for.public boolean isLost()
public int getID()
public java.lang.String getName()
public boolean isAI()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object