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

Method ok_if_blink_ready

battlecode-engine/src/world.rs:1617–1622  ·  view source on GitHub ↗
(&self, mage_id: UnitID)

Source from the content-addressed store, hash-verified

1615 }
1616
1617 fn ok_if_blink_ready(&self, mage_id: UnitID) -> Result<(), GameError> {
1618 let mage = self.my_unit(mage_id)?;
1619 mage.ok_if_blink_unlocked()?;
1620 mage.ok_if_ability_ready()?;
1621 Ok(())
1622 }
1623
1624 /// Whether the mage is ready to blink. Tests whether the mage's ability
1625 /// heat is sufficiently low.

Callers 2

is_blink_readyMethod · 0.80
blinkMethod · 0.80

Calls 3

my_unitMethod · 0.80
ok_if_blink_unlockedMethod · 0.80
ok_if_ability_readyMethod · 0.80

Tested by

no test coverage detected