The cost to replicate the unit. InappropriateUnitType - the unit type is not a worker.
(self)
| 188 | /// |
| 189 | /// * InappropriateUnitType - the unit type is not a worker. |
| 190 | pub fn replicate_cost(self) -> Result<u32, GameError> { |
| 191 | match self { |
| 192 | UnitType::Worker => Ok(REPLICATE_WORKER_COST), |
| 193 | _ => Err(GameError::InappropriateUnitType)?, |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | /// The value of a unit, as relevant to tiebreakers. |
| 198 | pub fn value(self) -> u32 { |
no outgoing calls
no test coverage detected