public class Player extends GameObject
Modifier and Type | Field and Description |
---|---|
java.lang.String |
clientType
What type of client this is, e.g.
|
int |
gold
The amount of gold this Player has in reserve.
|
int |
infamy
The amount of infamy this Player has.
|
boolean |
lost
If the player lost the game or not.
|
java.lang.String |
name
The name of the player.
|
Player |
opponent
This player's opponent in the game.
|
Port |
port
The Port owned by this Player.
|
java.lang.String |
reasonLost
The reason why the player lost the game.
|
java.lang.String |
reasonWon
The reason why the player won the game.
|
double |
timeRemaining
The amount of time (in ns) remaining for this AI to send commands.
|
java.util.List<Unit> |
units
Every Unit owned by this Player.
|
boolean |
won
If the player won the game or not.
|
logs
log
public java.lang.String clientType
public int gold
public int infamy
public boolean lost
public java.lang.String name
public Player opponent
public Port port
public java.lang.String reasonLost
public java.lang.String reasonWon
public double timeRemaining
public java.util.List<Unit> units
public boolean won
© 2020 MST ACM SIG-GAME