new Spiders.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
-
Spiders.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 cutSpeed
-
The speed at which Cutters work to do cut Webs.
-
number eggsScalar
-
Constant used to calculate how many eggs BroodMothers get on their owner's turns.
-
Object.<string, Spiders.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 initialWebStrength
-
The starting strength for Webs.
-
number maxTurns
-
The maximum number of turns before the game will automatically end.
-
number maxWebStrength
-
The maximum strength a web can be strengthened to.
-
number movementSpeed
-
The speed at which Spiderlings move on Webs.
-
string name
-
The name of the game.
-
Array.<Spiders.Nest> nests
-
Every Nest in the game.
-
Array.<Spiders.Player> players
-
List of all the players in the game.
-
string session
-
A unique identifier for the game instance that is being played.
-
number spitSpeed
-
The speed at which Spitters work to spit new Webs.
-
number timeAddedPerTurn
-
The amount of time (in nano-seconds) added after each player performs a turn.
-
number weavePower
-
How much web strength is added or removed from Webs when they are weaved.
-
number weaveSpeed
-
The speed at which Weavers work to do strengthens and weakens on Webs.
-
Array.<Spiders.Web> webs
-
Every Web in the game.