The damage inflicted by the robot during a normal attack. InappropriateUnitType - the unit is not a robot.
(&self)
| 427 | /// |
| 428 | /// * InappropriateUnitType - the unit is not a robot. |
| 429 | pub fn damage(&self) -> Result<i32, GameError> { |
| 430 | self.ok_if_robot()?; |
| 431 | Ok(self.damage) |
| 432 | } |
| 433 | |
| 434 | /// The attack range. |
| 435 | /// |
no test coverage detected