public class Game
extends joueur.BaseGame
Modifier and Type | Field and Description |
---|---|
Player |
currentPlayer
The player whose turn it is currently.
|
int |
currentTurn
The current turn number, starting at 0 for the first player's turn.
|
static java.lang.String |
gameVersion
The hash of the game version we have locally.
|
int |
internCap
The maximum number of interns a player can have.
|
java.util.List<Job> |
jobs
A list of all jobs.
|
java.util.List<Machine> |
machines
Every Machine in the game.
|
int |
managerCap
The maximum number of managers a player can have.
|
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 |
materialSpawn
The number of materials that spawn per spawn cycle.
|
int |
maxTurns
The maximum number of turns before the game will automatically end.
|
int |
physicistCap
The maximum number of physicists a player can have.
|
java.util.List<Player> |
players
List of all the players in the game.
|
int |
refinedValue
The amount of victory points added when a refined ore is consumed by the generator.
|
double |
regenerateRate
The percent of max HP regained when a unit end their turn on a tile owned by their player.
|
java.lang.String |
session
A unique identifier for the game instance that is being played.
|
int |
spawnTime
The amount of turns it takes a unit to spawn.
|
int |
stunTime
The amount of turns a unit cannot do anything when stunned.
|
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.
|
int |
timeImmune
The number turns a unit is immune to being stunned.
|
java.util.List<Unit> |
units
Every Unit in the game.
|
int |
victoryAmount
The amount of combined heat and pressure that you need to win.
|
Modifier and Type | Method and Description |
---|---|
Tile |
getTileAt(int x,
int y)
Gets the Tile at a specified (x, y) position
|
public Player currentPlayer
public int currentTurn
public int internCap
public java.util.List<Job> jobs
public java.util.List<Machine> machines
public int managerCap
public int mapHeight
public int mapWidth
public int materialSpawn
public int maxTurns
public int physicistCap
public java.util.List<Player> players
public int refinedValue
public double regenerateRate
public java.lang.String session
public int spawnTime
public int stunTime
public java.util.List<Tile> tiles
public int timeAddedPerTurn
public int timeImmune
public java.util.List<Unit> units
public int victoryAmount
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