Esempio n. 1
0
 public static void goToLocationDontDefuseOrAvoidMines(MapLocation location)
     throws GameActionException {
   Direction dir = rc.getLocation().directionTo(location);
   if (dir != Direction.OMNI) {
     goDirectionAvoidMines(dir);
   }
 }
Esempio n. 2
0
 public static void goAwayFromLocationAvoidMines(MapLocation location) throws GameActionException {
   Direction dir = rc.getLocation().directionTo(location).opposite();
   if (dir != Direction.OMNI) {
     goDirectionAvoidMines(dir);
   }
 }