Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
463
bool Player::isDead() const {
464
return !m_statusController->resourcePositive(
"health"
);
465
}
466
467
void Player::kill() {
468
m_statusController->setResource(
"health"
, 0);
Callers
5
update
Method · 0.80
initWorld
Method · 0.80
canBeamUp
Method · 0.80
canBeamDown
Method · 0.80
update
Method · 0.80
Calls
1
resourcePositive
Method · 0.45
Tested by
no test coverage detected