MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / onUpdateForPlayer

Method onUpdateForPlayer

src/logic/PlayerController.cpp:1669–1680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1667}
1668
1669void PlayerController::onUpdateForPlayer(float deltaTime)
1670{
1671 // Nofity hud about current stats
1672 UI::Hud& hud = m_World.getEngine()->getHud();
1673 auto& stats = getScriptInstance();
1674
1675 hud.setHealth(stats.attribute[Daedalus::GEngineClasses::C_Npc::EATR_HITPOINTS],
1676 stats.attribute[Daedalus::GEngineClasses::C_Npc::EATR_HITPOINTSMAX]);
1677
1678 hud.setMana(stats.attribute[Daedalus::GEngineClasses::C_Npc::EATR_MANA],
1679 stats.attribute[Daedalus::GEngineClasses::C_Npc::EATR_MANAMAX]);
1680}
1681
1682std::string PlayerController::getGuildName()
1683{

Callers

nothing calls this directly

Calls 3

getEngineMethod · 0.80
setHealthMethod · 0.80
setManaMethod · 0.80

Tested by

no test coverage detected