コード例 #1
0
 public void initPresetedMap(int testNr_) {
   for (int i = 0; i < MovementType.values().length; i++) {
     for (int j = 0; j < PrecautionType.values().length; j++) {
       for (int k = 0; k < WeaponType.values().length; k++) {
         startSim(i, j, k);
       }
     }
   }
 }
コード例 #2
0
 public void startSim(Integer moveType_, Integer precType_, Integer weaponType_) {
   Survivor survivor =
       new Survivor(
           theModel,
           2,
           MovementType.values()[moveType_],
           PrecautionType.values()[precType_],
           new Weapon(WeaponType.values()[weaponType_]),
           theModel.generateRandAim());
   // theModel.setActiveSurvivors(survivor);
   // theModel.setAllSurvivors(survivor, 0);
   addObstacles();
   addExits();
 }