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

Method is_begin_snipe_ready

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

Whether the ranger is ready to begin snipe. Tests whether the ranger's ability heat is sufficiently low.

(&self, ranger_id: UnitID)

Source from the content-addressed store, hash-verified

1547 /// Whether the ranger is ready to begin snipe. Tests whether the ranger's
1548 /// ability heat is sufficiently low.
1549 pub fn is_begin_snipe_ready(&self, ranger_id: UnitID) -> bool {
1550 self.ok_if_begin_snipe_ready(ranger_id).is_ok()
1551 }
1552
1553 /// Begins the countdown to snipe a given location. Maximizes the units
1554 /// attack and movement heats until the ranger has sniped. The ranger may

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected