Whether the unit type is a robot.
(self)
| 135 | |
| 136 | /// Whether the unit type is a robot. |
| 137 | pub fn is_robot(self) -> bool { |
| 138 | match self { |
| 139 | Worker => true, |
| 140 | Knight => true, |
| 141 | Ranger => true, |
| 142 | Mage => true, |
| 143 | Healer => true, |
| 144 | Factory => false, |
| 145 | Rocket => false, |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | /// Whether the unit type is a structure. |
| 150 | pub fn is_structure(self) -> bool { |
no outgoing calls
no test coverage detected