| 2871 | } |
| 2872 | |
| 2873 | std::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 | |
| 2890 | const std::string& GameMap::getMeshForDefaultTile() const |
| 2891 | { |
no test coverage detected