public class Game
extends joueur.BaseGame
Modifier and Type | Field and Description |
---|---|
int |
bartenderCooldown
How many turns a Bartender will be busy for after throwing a Bottle.
|
java.util.List<Bottle> |
bottles
All the beer Bottles currently flying across the saloon in the game.
|
int |
brawlerDamage
How much damage is applied to neighboring things bit by the Sharpshooter between turns.
|
java.util.List<Cowboy> |
cowboys
Every Cowboy in the game.
|
Player |
currentPlayer
The player whose turn it is currently.
|
int |
currentTurn
The current turn number, starting at 0 for the first player's turn.
|
java.util.List<Furnishing> |
furnishings
Every furnishing in the game.
|
static java.lang.String |
gameVersion
The hash of the game version we have locally.
|
java.util.List<java.lang.String> |
jobs
All the jobs that Cowboys can be called in with.
|
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 |
maxCowboysPerJob
The maximum number of Cowboys a Player can bring into the saloon of each specific job.
|
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 |
rowdinessToSiesta
When a player's rowdiness reaches or exceeds this number their Cowboys take a collective siesta.
|
java.lang.String |
session
A unique identifier for the game instance that is being played.
|
int |
sharpshooterDamage
How much damage is applied to things hit by Sharpshooters when they act.
|
int |
siestaLength
How long siestas are for a player's team.
|
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 |
turnsDrunk
How many turns a Cowboy will be drunk for if a bottle breaks on it.
|
Modifier and Type | Method and Description |
---|---|
Tile |
getTileAt(int x,
int y)
Gets the Tile at a specified (x, y) position
|
public int bartenderCooldown
public java.util.List<Bottle> bottles
public int brawlerDamage
public java.util.List<Cowboy> cowboys
public Player currentPlayer
public int currentTurn
public java.util.List<Furnishing> furnishings
public java.util.List<java.lang.String> jobs
public int mapHeight
public int mapWidth
public int maxCowboysPerJob
public int maxTurns
public java.util.List<Player> players
public int rowdinessToSiesta
public java.lang.String session
public int sharpshooterDamage
public int siestaLength
public java.util.List<Tile> tiles
public int timeAddedPerTurn
public int turnsDrunk
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