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

Method warpToOrbitedWorld

source/frontend/StarMainInterface.cpp:933–942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

931}
932
933void MainInterface::warpToOrbitedWorld(bool deploy) {
934 if (m_client->canBeamDown(deploy)) {
935 if (deploy)
936 m_client->warpPlayer(WarpAlias::OrbitedWorld, true, "deploy", true);
937 else
938 m_client->warpPlayer(WarpAlias::OrbitedWorld, true, "beam");
939 return;
940 }
941 m_guiContext->playAudio("/sfx/interface/clickon_error.ogg");
942}
943
944void MainInterface::warpToOwnShip() {
945 if (m_client->canBeamUp()) {

Callers

nothing calls this directly

Calls 3

canBeamDownMethod · 0.80
playAudioMethod · 0.80
warpPlayerMethod · 0.45

Tested by

no test coverage detected