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