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

Method getRangeMax

source/creatureskill/CreatureSkillWeak.cpp:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53double CreatureSkillWeak::getRangeMax(const Creature* creature, GameEntity* entityAttack) const
54{
55 // Weak can be cast on creatures only
56 if(entityAttack->getObjectType() != GameEntityType::creature)
57 return 0.0;
58
59 return mMaxRange;
60}
61
62bool CreatureSkillWeak::canBeUsedBy(const Creature* creature) const
63{

Callers 1

Calls 1

getObjectTypeMethod · 0.45

Tested by

no test coverage detected