public class Game
extends joueur.BaseGame
Modifier and Type | Field and Description |
---|---|
java.util.List<Beaver> |
beavers
Every Beaver in the game.
|
Player |
currentPlayer
The player whose turn it is currently.
|
int |
currentTurn
The current turn number, starting at 0 for the first player's turn.
|
int |
freeBeaversCount
When a Player has less Beavers than this number, then recruiting other Beavers is free.
|
static java.lang.String |
gameVersion
The hash of the game version we have locally.
|
java.util.List<Job> |
jobs
All the Jobs that Beavers can have in the game.
|
double |
lodgeCostConstant
Constant number used to calculate what it costs to spawn a new lodge.
|
int |
lodgesToWin
How many lodges must be owned by a Player at once to win the game.
|
int |
mapHeight
The number of Tiles in the map along the y (vertical) axis.
|
int |
mapWidth
The number of Tiles in the map along the x (horizontal) axis.
|
int |
maxTurns
The maximum number of turns before the game will automatically end.
|
java.util.List<Player> |
players
List of all the players in the game.
|
java.lang.String |
session
A unique identifier for the game instance that is being played.
|
java.util.List<Spawner> |
spawner
Every Spawner in the game.
|
double |
spawnerHarvestConstant
Constant number used to calculate how many branches/food Beavers harvest from Spawners.
|
java.util.List<java.lang.String> |
spawnerTypes
All the types of Spawners in the game.
|
java.util.List<Tile> |
tiles
All the tiles in the map, stored in Row-major order.
|
int |
timeAddedPerTurn
The amount of time (in nano-seconds) added after each player performs a turn.
|
Modifier and Type | Method and Description |
---|---|
Tile |
getTileAt(int x,
int y)
Gets the Tile at a specified (x, y) position
|
public java.util.List<Beaver> beavers
public Player currentPlayer
public int currentTurn
public int freeBeaversCount
public java.util.List<Job> jobs
public double lodgeCostConstant
public int lodgesToWin
public int mapHeight
public int mapWidth
public int maxTurns
public java.util.List<Player> players
public java.lang.String session
public java.util.List<Spawner> spawner
public double spawnerHarvestConstant
public java.util.List<java.lang.String> spawnerTypes
public java.util.List<Tile> tiles
public int timeAddedPerTurn
public static final java.lang.String gameVersion
public Tile getTileAt(int x, int y)
x
- integer between 0 and the mapWidthy
- integer between 0 and the mapHeight© 2020 MST ACM SIG-GAME