MCPcopy Create free account
hub / github.com/battlecode/battlecode-2018 / ok_if_begin_snipe_ready

Method ok_if_begin_snipe_ready

battlecode-engine/src/world.rs:1540–1545  ·  view source on GitHub ↗
(&self, ranger_id: UnitID)

Source from the content-addressed store, hash-verified

1538 }
1539
1540 fn ok_if_begin_snipe_ready(&self, ranger_id: UnitID) -> Result<(), GameError> {
1541 let ranger = self.my_unit(ranger_id)?;
1542 ranger.ok_if_snipe_unlocked()?;
1543 ranger.ok_if_ability_ready()?;
1544 Ok(())
1545 }
1546
1547 /// Whether the ranger is ready to begin snipe. Tests whether the ranger's
1548 /// ability heat is sufficiently low.

Callers 2

is_begin_snipe_readyMethod · 0.80
begin_snipeMethod · 0.80

Calls 3

my_unitMethod · 0.80
ok_if_snipe_unlockedMethod · 0.80
ok_if_ability_readyMethod · 0.80

Tested by

no test coverage detected