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

Method attack_heat

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

The attack heat. InappropriateUnitType - the unit is not a robot.

(&self)

Source from the content-addressed store, hash-verified

451 ///
452 /// * InappropriateUnitType - the unit is not a robot.
453 pub fn attack_heat(&self) -> Result<u32, GameError> {
454 self.ok_if_robot()?;
455 Ok(self.attack_heat)
456 }
457
458 /// The movement cooldown.
459 ///

Callers 1

ok_if_attack_readyMethod · 0.80

Calls 1

ok_if_robotMethod · 0.80

Tested by

no test coverage detected