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

Method is_javelin_ready

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

Whether the knight is ready to javelin. Tests whether the knight's ability heat is sufficiently low.

(&self, knight_id: UnitID)

Source from the content-addressed store, hash-verified

1495 /// Whether the knight is ready to javelin. Tests whether the knight's
1496 /// ability heat is sufficiently low.
1497 pub fn is_javelin_ready(&self, knight_id: UnitID) -> bool {
1498 self.ok_if_javelin_ready(knight_id).is_ok()
1499 }
1500
1501 /// Javelins the robot, dealing the knight's standard damage.
1502 ///

Callers

nothing calls this directly

Calls 1

ok_if_javelin_readyMethod · 0.80

Tested by

no test coverage detected