| 536 | } |
| 537 | |
| 538 | void SystemClientShip::setDestination(SystemLocation const& destination) { |
| 539 | auto location = m_systemLocation.get(); |
| 540 | if (location.is<CelestialCoordinate>() || location.is<Uuid>()) |
| 541 | m_departTimer = m_config.departTime; |
| 542 | else if(m_destination.get().empty()) |
| 543 | m_departTimer = m_config.spaceDepartTime; |
| 544 | m_destination.set(destination); |
| 545 | m_systemLocation.set({}); |
| 546 | } |
| 547 | |
| 548 | void SystemClientShip::setSpeed(float speed) { |
| 549 | m_speed = speed; |
no test coverage detected