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

Method getSpellsBySeatAndType

source/gamemap/GameMap.cpp:2873–2888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2871}
2872
2873std::vector<Spell*> GameMap::getSpellsBySeatAndType(Seat* seat, SpellType type) const
2874{
2875 std::vector<Spell*> ret;
2876 for (Spell* spell : mSpells)
2877 {
2878 if(spell->getSeat() != seat)
2879 continue;
2880
2881 if(spell->getSpellType() != type)
2882 continue;
2883
2884 ret.push_back(spell);
2885 }
2886
2887 return ret;
2888}
2889
2890const std::string& GameMap::getMeshForDefaultTile() const
2891{

Callers 1

handleIdleActionMethod · 0.80

Calls 2

getSeatMethod · 0.45
getSpellTypeMethod · 0.45

Tested by

no test coverage detected