コード例 #1
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();
 }
コード例 #2
0
 public InitTestMap(ModeloZombie theModel_) {
   theModel = theModel_;
   _environmentMap = theModel.getEnvironmentMap();
   _agentMap = theModel.getAgentMap();
 }