INNER CODE UNIT · JavaScript
Constructor
Robosturm/Commander_Wars · templates/gamescript.js:1
var Constructor = function()
{
this.immediateStart = function()
{
// called to check if the game should start immediately without changing rules or modifying co's
// return true for an immediate start
return false;
};
this.victory = function()
{
// called when a player wins
};
this.gameStart = function(map)
{
// called before a game starts
};
this.actionDone = function(action, map)