Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ setPosition
Method
setPosition
source/game/StarNpc.cpp:522–524 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
520
}
521
522
void Npc::setPosition(Vec2F const& pos) {
523
m_movementController->setPosition(pos);
524
}
525
526
float Npc::maxHealth() const {
527
return *m_statusController->resourceMax(
"health"
);
Callers
15
spawnInCell
Method · 0.45
move
Method · 0.45
placeVehicle
Method · 0.45
spawnNpc
Method · 0.45
spawnStagehand
Method · 0.45
soundsFromDefinition
Function · 0.45
render
Method · 0.45
render
Method · 0.45
init
Method · 0.45
hitOther
Method · 0.45
render
Method · 0.45
setInitialPosition
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected