public class Game
extends joueur.BaseGame
Modifier and Type | Field and Description |
---|---|
double |
buryInterestRate
The rate buried gold increases each turn.
|
int |
crewCost
How much gold it costs to construct a single crew.
|
int |
crewDamage
How much damage crew deal to each other.
|
int |
crewHealth
The maximum amount of health a crew member can have.
|
int |
crewMoves
The number of moves Units with only crew are given each turn.
|
double |
crewRange
A crew's attack range.
|
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.
|
double |
healFactor
How much health a Unit recovers when they rest.
|
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 |
merchantGoldRate
How much gold merchant Ports get each turn.
|
double |
merchantInterestRate
When a merchant ship spawns, the amount of additional gold it has relative to the Port's investment.
|
double |
minInterestDistance
The Euclidean distance buried gold must be from the Player's Port to accumulate interest.
|
java.util.List<Player> |
players
List of all the players in the game.
|
java.util.List<Port> |
ports
Every Port in the game.
|
double |
restRange
How far a Unit can be from a Port to rest.
|
java.lang.String |
session
A unique identifier for the game instance that is being played.
|
int |
shipCost
How much gold it costs to construct a ship.
|
int |
shipDamage
How much damage ships deal to ships and ports.
|
int |
shipHealth
The maximum amount of health a ship can have.
|
int |
shipMoves
The number of moves Units with ships are given each turn.
|
double |
shipRange
A ship's attack range.
|
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<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 double buryInterestRate
public int crewCost
public int crewDamage
public int crewHealth
public int crewMoves
public double crewRange
public Player currentPlayer
public int currentTurn
public double healFactor
public int mapHeight
public int mapWidth
public int maxTurns
public double merchantGoldRate
public double merchantInterestRate
public double minInterestDistance
public java.util.List<Player> players
public java.util.List<Port> ports
public double restRange
public java.lang.String session
public int shipCost
public int shipDamage
public int shipHealth
public int shipMoves
public double shipRange
public java.util.List<Tile> tiles
public int timeAddedPerTurn
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