Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/ai/petra/_petrabot.js
Show All 11 Lines | m.PetraBot = function PetraBot(settings) | ||||
this.uniqueIDs = { | this.uniqueIDs = { | ||||
"armies": 1, // starts at 1 to allow easier tests on armies ID existence | "armies": 1, // starts at 1 to allow easier tests on armies ID existence | ||||
"bases": 1, // base manager ID starts at one because "0" means "no base" on the map | "bases": 1, // base manager ID starts at one because "0" means "no base" on the map | ||||
"plans": 0, // training/building/research plans | "plans": 0, // training/building/research plans | ||||
"transports": 1 // transport plans start at 1 because 0 might be used as none | "transports": 1 // transport plans start at 1 because 0 might be used as none | ||||
}; | }; | ||||
this.Config = new m.Config(settings.difficulty); | this.Config = new m.Config(settings.difficulty, settings.behavior); | ||||
this.savedEvents = {}; | this.savedEvents = {}; | ||||
}; | }; | ||||
m.PetraBot.prototype = new API3.BaseAI(); | m.PetraBot.prototype = new API3.BaseAI(); | ||||
m.PetraBot.prototype.CustomInit = function(gameState) | m.PetraBot.prototype.CustomInit = function(gameState) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator