Every Beaver in the game.
The player whose turn it is currently. That player can send commands. Other players cannot.
The current turn number, starting at 0 for the first player's turn.
When a Player has less Beavers than this number, then recruiting other Beavers is free.
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.
All the Jobs that Beavers can have in the game.
Constant number used to calculate what it costs to spawn a new lodge.
How many lodges must be owned by a Player at once to win the game.
The number of Tiles in the map along the y (vertical) axis.
The number of Tiles in the map along the x (horizontal) axis.
The maximum number of turns before the game will automatically end.
List of all the players in the game.
A unique identifier for the game instance that is being played.
Every Spawner in the game.
Constant number used to calculate how many branches/food Beavers harvest from Spawners.
All the types of Spawners in the game.
All the tiles in the map, stored in Row-major order. Use x + y *
mapWidth
to access the correct index.
The amount of time (in nano-seconds) added after each player performs a turn.
Gets the Tile at a specified (x, y) position
an integer between 0 and the mapWidth
an integer between 0 and the mapHeight
the Tile at (x, y) or null if out of bounds
Generated using TypeDoc
Gather branches and build up your lodge as beavers fight to survive.