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

Method damage

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

The damage inflicted by the robot during a normal attack. InappropriateUnitType - the unit is not a robot.

(&self)

Source from the content-addressed store, hash-verified

427 ///
428 /// * InappropriateUnitType - the unit is not a robot.
429 pub fn damage(&self) -> Result<i32, GameError> {
430 self.ok_if_robot()?;
431 Ok(self.damage)
432 }
433
434 /// The attack range.
435 ///

Callers 1

process_rangersMethod · 0.80

Calls 1

ok_if_robotMethod · 0.80

Tested by

no test coverage detected