MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / setDestination

Method setDestination

source/game/StarSystemWorld.cpp:538–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538void 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
548void SystemClientShip::setSpeed(float speed) {
549 m_speed = speed;

Callers 2

setClientDestinationMethod · 0.80
removeObjectMethod · 0.80

Calls 3

getMethod · 0.45
emptyMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected