public class Game
extends joueur.BaseGame
Modifier and Type | Field and Description |
---|---|
double |
catEnergyMult
The multiplier for the amount of energy regenerated when resting in a shelter with the cat overlord.
|
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 |
harvestCooldown
The amount of turns it takes for a Tile that was just harvested to grow food again.
|
java.util.List<Job> |
jobs
All the Jobs that Units can have in the game.
|
int |
lowerHarvestAmount
The amount that the harvest rate is lowered each season.
|
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.
|
double |
monumentCostMult
The multiplier for the cost of actions when performing them in range of a monument.
|
int |
monumentMaterials
The number of materials in a monument.
|
int |
neutralMaterials
The number of materials in a neutral Structure.
|
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.
|
int |
shelterMaterials
The number of materials in a shelter.
|
int |
startingFood
The amount of food Players start with.
|
double |
starvingEnergyMult
The multiplier for the amount of energy regenerated when resting while starving.
|
java.util.List<Structure> |
structures
Every Structure 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.
|
int |
turnsBetweenHarvests
After a food tile is harvested, the number of turns before it can be harvested again.
|
int |
turnsToCreateHuman
The number of turns between fresh humans being spawned on the road.
|
int |
turnsToLowerHarvest
The number of turns before the harvest rate is lowered (length of each season basically).
|
java.util.List<Unit> |
units
Every Unit in the game.
|
int |
wallMaterials
The number of materials in a wall.
|
Modifier and Type | Method and Description |
---|---|
Tile |
getTileAt(int x,
int y)
Gets the Tile at a specified (x, y) position
|
public double catEnergyMult
public Player currentPlayer
public int currentTurn
public int harvestCooldown
public java.util.List<Job> jobs
public int lowerHarvestAmount
public int mapHeight
public int mapWidth
public int maxTurns
public double monumentCostMult
public int monumentMaterials
public int neutralMaterials
public java.util.List<Player> players
public java.lang.String session
public int shelterMaterials
public int startingFood
public double starvingEnergyMult
public java.util.List<Structure> structures
public java.util.List<Tile> tiles
public int timeAddedPerTurn
public int turnsBetweenHarvests
public int turnsToCreateHuman
public int turnsToLowerHarvest
public java.util.List<Unit> units
public int wallMaterials
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