public class Game
extends joueur.BaseGame
Modifier and Type | Field and Description |
---|---|
int |
bombPrice
The monetary price of a bomb when bought or sold.
|
java.util.List<Bomb> |
bombs
Every Bomb in the game.
|
int |
bombSize
The amount of cargo space taken up by a Bomb.
|
int |
buildingMaterialPrice
The monetary price of building materials when bought.
|
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 |
dirtPrice
The monetary price of dirt when bought or sold.
|
int |
fallDamage
The amount of damage taken per Tile fallen.
|
int |
fallWeightDamage
The amount of extra damage taken for falling while carrying a large amount of cargo.
|
static java.lang.String |
gameVersion
The hash of the game version we have locally.
|
int |
ladderCost
The amount of building material required to build a ladder.
|
int |
ladderHealth
The amount of mining power needed to remove a ladder from a Tile.
|
int |
largeCargoSize
The amount deemed as a large amount of cargo.
|
int |
largeMaterialSize
The amount deemed as a large amount of material.
|
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 |
maxShielding
The maximum amount of shielding possible on a Tile.
|
int |
maxTurns
The maximum number of turns before the game will automatically end.
|
int |
maxUpgradeLevel
The highest upgrade level allowed on a Miner.
|
java.util.List<Miner> |
miners
Every Miner in the game.
|
int |
orePrice
The amount of money awarded when ore is dumped in the base and sold.
|
int |
oreValue
The amount of value awarded when ore is dumped in the base and sold.
|
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 |
shieldCost
The amount of building material required to shield a Tile.
|
int |
shieldHealth
The amount of mining power needed to remove one unit of shielding off a Tile.
|
int |
spawnPrice
The monetary price of spawning a Miner.
|
int |
suffocationDamage
The amount of damage taken when suffocating inside a filled Tile.
|
int |
suffocationWeightDamage
The amount of extra damage taken for suffocating under a large amount of material.
|
int |
supportCost
The amount of building material required to build a support.
|
int |
supportHealth
The amount of mining power needed to remove a support from a Tile.
|
java.util.List<Tile> |
tiles
All the tiles in the map, stored in Row-major order.
|
double |
timeAddedPerTurn
The amount of time (in nano-seconds) added after each player performs a turn.
|
int |
upgradePrice
The cost to upgrade a Miner.
|
java.util.List<Upgrade> |
upgrades
Every Upgrade for a Miner in the game.
|
int |
victoryAmount
The amount of victory points (value) required to win.
|
Modifier and Type | Method and Description |
---|---|
Tile |
getTileAt(int x,
int y)
Gets the Tile at a specified (x, y) position
|
public int bombPrice
public int bombSize
public java.util.List<Bomb> bombs
public int buildingMaterialPrice
public Player currentPlayer
public int currentTurn
public int dirtPrice
public int fallDamage
public int fallWeightDamage
public int ladderCost
public int ladderHealth
public int largeCargoSize
public int largeMaterialSize
public int mapHeight
public int mapWidth
public int maxShielding
public int maxTurns
public int maxUpgradeLevel
public java.util.List<Miner> miners
public int orePrice
public int oreValue
public java.util.List<Player> players
public java.lang.String session
public int shieldCost
public int shieldHealth
public int spawnPrice
public int suffocationDamage
public int suffocationWeightDamage
public int supportCost
public int supportHealth
public java.util.List<Tile> tiles
public double timeAddedPerTurn
public int upgradePrice
public java.util.List<Upgrade> upgrades
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