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

Method isAllSkillsDoneForSeat

source/game/SkillManager.cpp:585–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585bool SkillManager::isAllSkillsDoneForSeat(const Seat* seat)
586{
587 if(seat->isSkilling())
588 return false;
589
590 for(const SkillDef* skill : getSkillManager().mSkills)
591 {
592 if(skill == nullptr)
593 continue;
594 if(seat->isSkillDone(skill->mSkill->getType()))
595 continue;
596 if(!skill->mSkill->canBeSkilled(seat->getSkillDone()))
597 continue;
598 return false;
599 }
600 return true;
601}
602
603const Skill* SkillManager::getSkill(SkillType resType)
604{

Callers

nothing calls this directly

Calls 4

isSkillingMethod · 0.80
isSkillDoneMethod · 0.80
canBeSkilledMethod · 0.80
getTypeMethod · 0.45

Tested by

no test coverage detected