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

Method land_rocket

battlecode-engine/src/unit.rs:1158–1160  ·  view source on GitHub ↗

Updates the rocket's location as if it has landed.

(&mut self, location: MapLocation)

Source from the content-addressed store, hash-verified

1156
1157 /// Updates the rocket's location as if it has landed.
1158 pub(crate) fn land_rocket(&mut self, location: MapLocation) {
1159 self.location = OnMap(location);
1160 }
1161
1162 /// Boards a rocket. The unit must be ready to move.
1163 pub(crate) fn board_rocket(&mut self, rocket_id: UnitID) {

Callers 1

test_rocketsFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_rocketsFunction · 0.36