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

Method isHurt

source/entities/Creature.cpp:2963–2971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2961}
2962
2963bool Creature::isHurt() const
2964{
2965 //On server side, we test HP
2966 if(getIsOnServerMap())
2967 return getHP() < getMaxHp();
2968
2969 // On client side, we test overlay value. 0 represents full health
2970 return mOverlayHealthValue > 0;
2971}
2972
2973bool Creature::isKo() const
2974{

Callers 4

castSpellMethod · 0.80
fillWithEntitiesMethod · 0.80
tryUseSupportMethod · 0.80
applyEffectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected