| 365 | } |
| 366 | |
| 367 | bool Unit::isDoing(String name) { |
| 368 | return _currentAction && _currentAction->getName() == name && _currentAction->isDoing(); |
| 369 | } |
| 370 | |
| 371 | bool Unit::isOnSurface() const { |
| 372 | return _groundSensor && _groundSensor->isSensed(); |
no test coverage detected