MCPcopy Index your code
hub / github.com/battlecode/battlecode-2018 / move_to

Method move_to

battlecode-engine/src/world.rs:1048–1052  ·  view source on GitHub ↗
(&mut self, robot_id: UnitID, location: MapLocation)

Source from the content-addressed store, hash-verified

1046 }
1047
1048 fn move_to(&mut self, robot_id: UnitID, location: MapLocation) {
1049 self.remove_unit(robot_id);
1050 self.my_unit_mut(robot_id).unwrap().move_to(location);
1051 self.place_unit(robot_id);
1052 }
1053
1054 // ************************************************************************
1055 // *************************** ATTACK METHODS *****************************

Callers 3

move_robotMethod · 0.45
unloadMethod · 0.45
test_healer_overchargeFunction · 0.45

Calls 3

remove_unitMethod · 0.80
my_unit_mutMethod · 0.80
place_unitMethod · 0.80

Tested by 1

test_healer_overchargeFunction · 0.36