The maximum number of rounds left to produce a robot in this factory. InappropriateUnitType - the unit is not a factory.
(&self)
| 1047 | /// |
| 1048 | /// * InappropriateUnitType - the unit is not a factory. |
| 1049 | pub fn factory_max_rounds_left(&self) -> Result<Rounds, GameError> { |
| 1050 | self.ok_if_unit_type(Factory)?; |
| 1051 | Ok(self.factory_max_rounds_left) |
| 1052 | } |
| 1053 | |
| 1054 | /// Returns OK if the factory can produce a robot of this type. |
| 1055 | /// |