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

Method mapSkill

source/game/SkillManager.cpp:124–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 }
123
124 void mapSkill(std::vector<std::vector<SkillType>>& skillsFamily) const
125 {
126 uint32_t index = static_cast<uint32_t>(SkillFamily::rooms);
127 std::vector<SkillType>& family = skillsFamily[index];
128 index = static_cast<uint32_t>(mRoomType);
129 if(index >= family.size())
130 {
131 OD_LOG_ERR("wrong index=" + Helper::toString(index) + ", size=" + Helper::toString(family.size()));
132 return;
133 }
134 family[index] = mSkill->getType();
135 }
136
137 RoomType mRoomType;
138};

Callers 1

SkillManagerMethod · 0.45

Calls 2

toStringFunction · 0.70
getTypeMethod · 0.45

Tested by

no test coverage detected