new Coreminer.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 bombPrice
-
The monetary price of a bomb when bought or sold.
-
Array.<Coreminer.Bomb> bombs
-
Every Bomb in the game.
-
number bombSize
-
The amount of cargo space taken up by a Bomb.
-
number buildingMaterialPrice
-
The monetary price of building materials when bought.
-
Coreminer.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.
-
number dirtPrice
-
The monetary price of dirt when bought or sold.
-
number fallDamage
-
The amount of damage taken per Tile fallen.
-
number fallWeightDamage
-
The amount of extra damage taken for falling while carrying a large amount of cargo.
-
Object.<string, Coreminer.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 ladderCost
-
The amount of building material required to build a ladder.
-
number ladderHealth
-
The amount of mining power needed to remove a ladder from a Tile.
-
number largeCargoSize
-
The amount deemed as a large amount of cargo.
-
number largeMaterialSize
-
The amount deemed as a large amount of material.
-
number mapHeight
-
The number of Tiles in the map along the y (vertical) axis.
-
number mapWidth
-
The number of Tiles in the map along the x (horizontal) axis.
-
number maxShielding
-
The maximum amount of shielding possible on a Tile.
-
number maxTurns
-
The maximum number of turns before the game will automatically end.
-
number maxUpgradeLevel
-
The highest upgrade level allowed on a Miner.
-
Array.<Coreminer.Miner> miners
-
Every Miner in the game.
-
string name
-
The name of the game.
-
number orePrice
-
The amount of money awarded when ore is dumped in the base and sold.
-
number oreValue
-
The amount of value awarded when ore is dumped in the base and sold.
-
Array.<Coreminer.Player> players
-
List of all the players in the game.
-
string session
-
A unique identifier for the game instance that is being played.
-
number shieldCost
-
The amount of building material required to shield a Tile.
-
number shieldHealth
-
The amount of mining power needed to remove one unit of shielding off a Tile.
-
number spawnPrice
-
The monetary price of spawning a Miner.
-
number suffocationDamage
-
The amount of damage taken when suffocating inside a filled Tile.
-
number suffocationWeightDamage
-
The amount of extra damage taken for suffocating under a large amount of material.
-
number supportCost
-
The amount of building material required to build a support.
-
number supportHealth
-
The amount of mining power needed to remove a support from a Tile.
-
Array.<Coreminer.Tile> tiles
-
All the tiles in the map, stored in Row-major order. Use `x + y * mapWidth` to access the correct index.
-
number timeAddedPerTurn
-
The amount of time (in nano-seconds) added after each player performs a turn.
-
number upgradePrice
-
The cost to upgrade a Miner.
-
Array.<Coreminer.Upgrade> upgrades
-
Every Upgrade for a Miner in the game.
-
number victoryAmount
-
The amount of victory points (value) required to win.
Methods
-
Tile | null getTileAt(x, y)
-
Gets the Tile at a specified (x, y) position
Name Type Description x
number integer between 0 and the mapWidth y
number integer between 0 and the mapHeight Returns: Tile | null
the Tile at (x, y) or null if out of bounds