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

Method launch_rocket

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

Updates the rocket as if it has launched by changing its location and marking it as used.

(&mut self)

Source from the content-addressed store, hash-verified

1150 /// Updates the rocket as if it has launched by changing its location and
1151 /// marking it as used.
1152 pub(crate) fn launch_rocket(&mut self) {
1153 self.location = InSpace;
1154 self.is_used = true;
1155 }
1156
1157 /// Updates the rocket's location as if it has landed.
1158 pub(crate) fn land_rocket(&mut self, location: MapLocation) {

Callers 1

test_rocketsFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_rocketsFunction · 0.36