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

Method mainPlayerDead

source/game/StarWorldClient.cpp:127–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127bool WorldClient::mainPlayerDead() const {
128 if (inWorld())
129 return !m_entityMap->get<Player>(m_mainPlayer->entityId());
130 else
131 return false;
132}
133
134void WorldClient::reviveMainPlayer() {
135 if (inWorld() && mainPlayerDead()) {

Callers 1

updateMethod · 0.80

Calls 1

entityIdMethod · 0.80

Tested by

no test coverage detected