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

Method can_overcharge

battlecode-engine/src/world.rs:1715–1717  ·  view source on GitHub ↗

Whether the healer can overcharge the given robot, without taking into account the healer's ability heat. Takes into account only the healer's ability range, and the location of the robot.

(&self, healer_id: UnitID, robot_id: UnitID)

Source from the content-addressed store, hash-verified

1713 /// account the healer's ability heat. Takes into account only the healer's
1714 /// ability range, and the location of the robot.
1715 pub fn can_overcharge(&self, healer_id: UnitID, robot_id: UnitID) -> bool {
1716 self.ok_if_can_overcharge(healer_id, robot_id).is_ok()
1717 }
1718
1719 fn ok_if_overcharge_ready(&self, healer_id: UnitID) -> Result<(), GameError> {
1720 let healer = self.my_unit(healer_id)?;

Callers

nothing calls this directly

Calls 1

ok_if_can_overchargeMethod · 0.80

Tested by

no test coverage detected