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

Method is_move_ready

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

Whether the robot is ready to move. Tests whether the robot's attack heat is sufficiently low.

(&self, robot_id: UnitID)

Source from the content-addressed store, hash-verified

1022 /// Whether the robot is ready to move. Tests whether the robot's attack
1023 /// heat is sufficiently low.
1024 pub fn is_move_ready(&self, robot_id: UnitID) -> bool {
1025 self.ok_if_move_ready(robot_id).is_ok()
1026 }
1027
1028 /// Moves the robot in the given direction.
1029 ///

Callers 3

run.pyFile · 0.45
run.pyFile · 0.45
examplefuncsplayerFunction · 0.45

Calls 1

ok_if_move_readyMethod · 0.45

Tested by

no test coverage detected