Whether the worker can build a blueprint with the given ID. The worker and the blueprint must be adjacent to each other. The worker cannot already have performed an action this round.
(&self, worker_id: UnitID, blueprint_id: UnitID)
| 1347 | /// and the blueprint must be adjacent to each other. The worker cannot |
| 1348 | /// already have performed an action this round. |
| 1349 | pub fn can_build(&self, worker_id: UnitID, blueprint_id: UnitID) -> bool { |
| 1350 | self.ok_if_can_build(worker_id, blueprint_id).is_ok() |
| 1351 | } |
| 1352 | |
| 1353 | /// Builds a given blueprint, increasing its health by the worker's build |
| 1354 | /// amount. If raised to maximum health, the blueprint becomes a completed |
no test coverage detected