public void onRobotDeath(RobotDeathEvent e) { // ロボットが死んだ時 System.out.println("START at : " + getTime() + " onRobotDeath----------------------------"); System.out.println("print death " + e.getName()); if (isTeammate(e.getName())) { } else { // それが敵である時 if (target_enemy.get_en_name().equals(e.getName())) { enemy_detected = false; // 敵の生存フラグを折る enemy_count--; // 敵のカウントを減らす } walls_count--; // wallsのカウントを減らす } System.out.println("END at : " + getTime() + " onRobotDeath----------------------------"); }
public void onRobotDeath(RobotDeathEvent e) { // see if the robot we were tracking died if (e.getName().equals(enemy.getName())) { enemy.reset(); } }