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

Method ability_cooldown

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

The active ability cooldown. InappropriateUnitType - the unit is not a robot.

(&self)

Source from the content-addressed store, hash-verified

582 ///
583 /// * InappropriateUnitType - the unit is not a robot.
584 pub fn ability_cooldown(&self) -> Result<u32, GameError>{
585 self.ok_if_robot()?;
586 Ok(self.ability_cooldown)
587 }
588
589 /// The active ability range. This is the range in which: workers can
590 /// replicate, knights can javelin, rangers can snipe, mages can blink,

Callers

nothing calls this directly

Calls 1

ok_if_robotMethod · 0.80

Tested by

no test coverage detected