new Anarchy.Game()
Initializes a Game with basic logic as provided by the Creer code generator.
Never use this directly. It is for internal Joueur use.
Extends
- BaseGame
Members
-
number baseBribesPerTurn
-
How many bribes players get at the beginning of their turn, not counting their burned down Buildings.
-
Array.<Anarchy.Building> buildings
-
All the buildings in the game.
-
Anarchy.Forecast currentForecast
-
The current Forecast, which will be applied at the end of the turn.
-
Anarchy.Player currentPlayer
-
The player whose turn it is currently. That player can send commands. Other players cannot.
-
number currentTurn
-
The current turn number, starting at 0 for the first player's turn.
-
Array.<Anarchy.Forecast> forecasts
-
All the forecasts in the game, indexed by turn number.
-
Object.<string, Anarchy.GameObject> gameObjects
-
A mapping of every game object's ID to the actual game object. Primarily used by the server and client to easily refer to the game objects via ID.
-
number mapHeight
-
The width of the entire map along the vertical (y) axis.
-
number mapWidth
-
The width of the entire map along the horizontal (x) axis.
-
number maxFire
-
The maximum amount of fire value for any Building.
-
number maxForecastIntensity
-
The maximum amount of intensity value for any Forecast.
-
number maxTurns
-
The maximum number of turns before the game will automatically end.
-
string name
-
The name of the game.
-
Anarchy.Forecast nextForecast
-
The next Forecast, which will be applied at the end of your opponent's turn. This is also the Forecast WeatherStations can control this turn.
-
Array.<Anarchy.Player> players
-
List of all the players in the game.
-
string session
-
A unique identifier for the game instance that is being played.
-
number timeAddedPerTurn
-
The amount of time (in nano-seconds) added after each player performs a turn.