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

Method rocket_travel_time_decrease

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

The number of rounds the rocket travel time is reduced by compared to the travel time determined by the orbit of the planets. InappropriateUnitType - the unit is not a rocket.

(&self)

Source from the content-addressed store, hash-verified

1129 ///
1130 /// * InappropriateUnitType - the unit is not a rocket.
1131 pub fn rocket_travel_time_decrease(&self) -> Result<u32, GameError> {
1132 self.ok_if_unit_type(Rocket)?;
1133 Ok(self.travel_time_decrease)
1134 }
1135
1136 /// Ok if the rocket can launch. It must be built, and it must have
1137 /// not been used yet.

Callers 1

launch_rocketMethod · 0.80

Calls 1

ok_if_unit_typeMethod · 0.80

Tested by

no test coverage detected