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

Method ok_if_javelin_ready

battlecode-engine/src/world.rs:1488–1493  ·  view source on GitHub ↗
(&self, knight_id: UnitID)

Source from the content-addressed store, hash-verified

1486 }
1487
1488 fn ok_if_javelin_ready(&self, knight_id: UnitID) -> Result<(), GameError> {
1489 let knight = self.my_unit(knight_id)?;
1490 knight.ok_if_javelin_unlocked()?;
1491 knight.ok_if_ability_ready()?;
1492 Ok(())
1493 }
1494
1495 /// Whether the knight is ready to javelin. Tests whether the knight's
1496 /// ability heat is sufficiently low.

Callers 2

is_javelin_readyMethod · 0.80
javelinMethod · 0.80

Calls 3

my_unitMethod · 0.80
ok_if_ability_readyMethod · 0.80

Tested by

no test coverage detected