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.
|
int |
health
The amount of health remaining for this player's main unit.
|
java.util.List<Tile> |
homeBase
The tile that the home base is located on.
|
boolean |
lost
If the player lost the game or not.
|
int |
mana
The amount of mana this player has.
|
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<Tile> |
side
All tiles that this player can build on and move workers on.
|
double |
timeRemaining
The amount of time (in ns) remaining for this AI to send commands.
|
java.util.List<Tower> |
towers
Every Tower owned by this player.
|
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 health
public java.util.List<Tile> homeBase
public boolean lost
public int mana
public java.lang.String name
public Player opponent
public java.lang.String reasonLost
public java.lang.String reasonWon
public java.util.List<Tile> side
public double timeRemaining
public java.util.List<Tower> towers
public java.util.List<Unit> units
public boolean won
© 2020 MST ACM SIG-GAME