Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/petra/queueplan.js
var PETRA = function(m) | (function(m) | ||||
{ | { | ||||
/** | /** | ||||
* Common functions and variables to all queue plans. | * Common functions and variables to all queue plans. | ||||
*/ | */ | ||||
m.QueuePlan = function(gameState, type, metadata) | m.QueuePlan = function(gameState, type, metadata) | ||||
{ | { | ||||
this.type = gameState.applyCiv(type); | this.type = gameState.applyCiv(type); | ||||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
* Can be used to do some specific stuffs | * Can be used to do some specific stuffs | ||||
* Need to be updated to actually do something if you want them to. | * Need to be updated to actually do something if you want them to. | ||||
* this is called by "Start" if it succeeds. | * this is called by "Start" if it succeeds. | ||||
*/ | */ | ||||
m.QueuePlan.prototype.onStart = function(gameState) | m.QueuePlan.prototype.onStart = function(gameState) | ||||
{ | { | ||||
}; | }; | ||||
return m; | }(PETRA)); | ||||
}(PETRA); |
Wildfire Games · Phabricator