NoSuchUnit - the unit does not exist (inside the vision range). TeamNotAllowed - the unit is not on the current player's team. Overheated - the robot is not ready to move again.
(&self, robot_id: UnitID)
| 1015 | /// * TeamNotAllowed - the unit is not on the current player's team. |
| 1016 | /// * Overheated - the robot is not ready to move again. |
| 1017 | fn ok_if_move_ready(&self, robot_id: UnitID) -> Result<(), GameError> { |
| 1018 | self.my_unit(robot_id)?.ok_if_move_ready()?; |
| 1019 | Ok(()) |
| 1020 | } |
| 1021 | |
| 1022 | /// Whether the robot is ready to move. Tests whether the robot's attack |
| 1023 | /// heat is sufficiently low. |
no test coverage detected