MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / setHP

Method setHP

source/entities/Creature.cpp:649–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647}
648
649void Creature::setHP(double nHP)
650{
651 if (nHP > mMaxHP)
652 mHp = mMaxHP;
653 else
654 mHp = nHP;
655
656 computeCreatureOverlayHealthValue();
657}
658
659void Creature::heal(double hp)
660{

Callers 3

handleSleepMethod · 0.80
handleEatChickenMethod · 0.80
spawnWaveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected