public class Player extends GameObject
Modifier and Type | Field and Description |
---|---|
Tile |
baseTile
The Tile this Player's base is on.
|
java.util.List<Bomb> |
bombs
Every Bomb owned by this Player.
|
java.lang.String |
clientType
What type of client this is, e.g.
|
java.util.List<Tile> |
hopperTiles
The Tiles this Player's hoppers are on.
|
boolean |
lost
If the player lost the game or not.
|
java.util.List<Miner> |
miners
Every Miner owned by this Player.
|
int |
money
The amount of money this Player currently 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.
|
double |
timeRemaining
The amount of time (in ns) remaining for this AI to send commands.
|
int |
value
The amount of value (victory points) this Player has gained.
|
boolean |
won
If the player won the game or not.
|
logs
Modifier and Type | Method and Description |
---|---|
boolean |
spawnMiner()
Spawns a Miner on this Player's base Tile.
|
log
public Tile baseTile
public java.util.List<Bomb> bombs
public java.lang.String clientType
public java.util.List<Tile> hopperTiles
public boolean lost
public java.util.List<Miner> miners
public int money
public java.lang.String name
public Player opponent
public java.lang.String reasonLost
public java.lang.String reasonWon
public double timeRemaining
public int value
public boolean won
© 2020 MST ACM SIG-GAME