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

Method ok_if_heal_ready

battlecode-engine/src/world.rs:1674–1676  ·  view source on GitHub ↗
(&self, healer_id: UnitID)

Source from the content-addressed store, hash-verified

1672 }
1673
1674 fn ok_if_heal_ready(&self, healer_id: UnitID) -> Result<(), GameError> {
1675 Ok(self.my_unit(healer_id)?.ok_if_attack_ready()?)
1676 }
1677
1678 /// Whether the healer is ready to heal. Tests whether the healer's attack
1679 /// heat is sufficiently low.

Callers 2

is_heal_readyMethod · 0.80
healMethod · 0.80

Calls 2

my_unitMethod · 0.80
ok_if_attack_readyMethod · 0.45

Tested by

no test coverage detected