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

Method movement_cooldown

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

The movement cooldown. InappropriateUnitType - the unit is not a robot.

(&self)

Source from the content-addressed store, hash-verified

459 ///
460 /// * InappropriateUnitType - the unit is not a robot.
461 pub fn movement_cooldown(&self) -> Result<u32, GameError> {
462 self.ok_if_robot()?;
463 Ok(self.movement_cooldown)
464 }
465
466 /// The attack cooldown.
467 ///

Callers

nothing calls this directly

Calls 1

ok_if_robotMethod · 0.80

Tested by

no test coverage detected