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

Method canBeUsedBy

source/creatureskill/CreatureSkillWeak.cpp:62–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62bool CreatureSkillWeak::canBeUsedBy(const Creature* creature) const
63{
64 if(creature->getLevel() < mCreatureLevelMin)
65 return false;
66
67 return true;
68}
69
70bool CreatureSkillWeak::tryUseFight(GameMap& gameMap, Creature* creature, float range,
71 GameEntity* attackedObject, Tile* attackedTile, bool ko, bool notifyPlayerIfHit) const

Callers 2

doUpkeepMethod · 0.45

Calls 1

getLevelMethod · 0.80

Tested by

no test coverage detected