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

Method mapSkill

source/game/SkillManager.cpp:169–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167 }
168
169 void mapSkill(std::vector<std::vector<SkillType>>& skillsFamily) const
170 {
171 uint32_t index = static_cast<uint32_t>(SkillFamily::traps);
172 std::vector<SkillType>& family = skillsFamily[index];
173 index = static_cast<uint32_t>(mTrapType);
174 if(index >= family.size())
175 {
176 OD_LOG_ERR("wrong index=" + Helper::toString(index) + ", size=" + Helper::toString(family.size()));
177 return;
178 }
179 family[index] = mSkill->getType();
180 }
181
182 TrapType mTrapType;
183};

Callers

nothing calls this directly

Calls 2

toStringFunction · 0.70
getTypeMethod · 0.45

Tested by

no test coverage detected