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

Method attack_range

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

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

(&self)

Source from the content-addressed store, hash-verified

435 ///
436 /// * InappropriateUnitType - the unit is not a robot.
437 pub fn attack_range(&self) -> Result<u32, GameError> {
438 self.ok_if_robot()?;
439 Ok(self.attack_range)
440 }
441
442 /// The movement heat.
443 ///

Callers

nothing calls this directly

Calls 1

ok_if_robotMethod · 0.80

Tested by

no test coverage detected