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

Method isDead

source/game/StarPlayer.cpp:463–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463bool Player::isDead() const {
464 return !m_statusController->resourcePositive("health");
465}
466
467void Player::kill() {
468 m_statusController->setResource("health", 0);

Callers 5

updateMethod · 0.80
initWorldMethod · 0.80
canBeamUpMethod · 0.80
canBeamDownMethod · 0.80
updateMethod · 0.80

Calls 1

resourcePositiveMethod · 0.45

Tested by

no test coverage detected