Beispiel #1
0
 public static void factoryBuild(AIDelegate aiDelegate, String name, CachedUnit factory) {
   CachedUnitDef def = GlobalDelegate.getUnitDef(name, factory.getFaction());
   AICommand command =
       new BuildUnitAICommand(
           factory.getUnitId(),
           -1,
           0,
           commandTimeout.getValue(),
           def.getUnitDefId(),
           new AIFloat3(),
           0);
   handleCommand(aiDelegate, command);
 }
Beispiel #2
0
 public static void buildUnit(
     AIDelegate aiDelegate, CachedUnit builder, CachedUnitDef def, AIFloat3 pos, int facing) {
   AICommand command =
       new BuildUnitAICommand(
           builder.getUnitId(), -1, 0, commandTimeout.getValue(), def.getUnitDefId(), pos, facing);
   handleCommand(aiDelegate, command);
 }