public class Player extends GameObject
Modifier and Type | Field and Description |
---|---|
Unit |
cat
The overlord cat Unit owned by this Player.
|
java.lang.String |
clientType
What type of client this is, e.g.
|
int |
food
The amount of food owned by this player.
|
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.
|
java.lang.String |
reasonLost
The reason why the player lost the game.
|
java.lang.String |
reasonWon
The reason why the player won the game.
|
java.util.List<Structure> |
structures
Every Structure owned by this Player.
|
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.
|
int |
upkeep
The total upkeep of every Unit owned by this Player.
|
boolean |
won
If the player won the game or not.
|
logs
log
public Unit cat
public java.lang.String clientType
public int food
public boolean lost
public java.lang.String name
public Player opponent
public java.lang.String reasonLost
public java.lang.String reasonWon
public java.util.List<Structure> structures
public double timeRemaining
public java.util.List<Unit> units
public int upkeep
public boolean won
© 2020 MST ACM SIG-GAME