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

Method hitCreature

source/entities/MissileOneHit.cpp:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53bool MissileOneHit::hitCreature(Tile* tile, GameEntity* entity)
54{
55 entity->takeDamage(this, 0.0, mPhysicalDamage, mMagicalDamage, mElementDamage, tile, getKoEnemyCreature());
56 if(mNotifyPlayerIfHit)
57 entity->notifyFightPlayer(tile);
58
59 return false;
60}
61
62void MissileOneHit::hitTargetEntity(Tile* tile, GameEntity* entityTarget)
63{

Callers

nothing calls this directly

Calls 2

notifyFightPlayerMethod · 0.80
takeDamageMethod · 0.45

Tested by

no test coverage detected