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

Method clearSpells

source/gamemap/GameMap.cpp:2860–2871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2858}
2859
2860void GameMap::clearSpells()
2861{
2862 // We need to work on a copy of mSpells because removeFromGameMap will remove them from this vector
2863 std::vector<Spell*> spells = mSpells;
2864 for (Spell* spell : spells)
2865 {
2866 spell->removeFromGameMap();
2867 spell->deleteYourself();
2868 }
2869
2870 mSpells.clear();
2871}
2872
2873std::vector<Spell*> GameMap::getSpellsBySeatAndType(Seat* seat, SpellType type) const
2874{

Callers

nothing calls this directly

Calls 3

deleteYourselfMethod · 0.80
clearMethod · 0.80
removeFromGameMapMethod · 0.45

Tested by

no test coverage detected