Esempio n. 1
0
 public void setup()
 {
     //setup defenses
     redOuterworks[0] = new Defense();
     redOuterworks[1] = new Defense();
     redOuterworks[2] = new Defense();
     redOuterworks[3] = new Defense();
     redOuterworks[4] = new Defense();
     //setup bots
     //make some shortcut lables
     Bot.teleAbility tele1 = Bot.teleAbility.shoot | Bot.teleAbility.climb;
     Bot.teleAbility tele2 = Bot.teleAbility.breach;
     Bot.autoAbility auto0 = Bot.autoAbility.none;
     Bot.autoAbility auto1 = Bot.autoAbility.breach;
     //build bots
     redAlliance[0] = new Bot(tele1, auto0,Bot.Alliance.red);
     redAlliance[1] = new Bot(tele1, auto0, Bot.Alliance.red);
     redAlliance[2] = new Bot(tele1, auto0, Bot.Alliance.red);
     blueAlliance[0] = new Bot(tele2,auto1, Bot.Alliance.blue);
     blueAlliance[1] = new Bot(tele2, auto1, Bot.Alliance.blue);
     blueAlliance[2] = new Bot(tele2, auto1, Bot.Alliance.blue);
     for (int i = 0; i < 3; i++) //tell all robots how to find the field
     {
         redAlliance[i].field = this;
         blueAlliance[i].field = this;
     }
 }
Esempio n. 2
0
 public BotStrategy(Bot owner)
 {
     bot = owner;
 }
Esempio n. 3
0
 public BotAllen(Bot owner)
 {
     bot = owner;
 }