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 |
goldIncomePerUnit
The amount of gold income per turn per unit in a mine.
|
int |
islandIncomePerUnit
The amount of gold income per turn per unit in the island mine.
|
int |
manaIncomePerUnit
The Amount of gold income per turn per unit fishing on the river side.
|
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.
|
int |
riverPhase
The amount of turns it takes between the river changing phases.
|
java.lang.String |
session
A unique identifier for the game instance that is being played.
|
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.
|
java.util.List<TowerJob> |
towerJobs
A list of every tower type / job.
|
java.util.List<Tower> |
towers
Every Tower in the game.
|
java.util.List<UnitJob> |
unitJobs
A list of every unit type / job.
|
java.util.List<Unit> |
units
Every Unit in the game.
|
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 goldIncomePerUnit
public int islandIncomePerUnit
public int manaIncomePerUnit
public int mapHeight
public int mapWidth
public int maxTurns
public java.util.List<Player> players
public int riverPhase
public java.lang.String session
public java.util.List<Tile> tiles
public int timeAddedPerTurn
public java.util.List<TowerJob> towerJobs
public java.util.List<Tower> towers
public java.util.List<UnitJob> unitJobs
public java.util.List<Unit> units
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