| 184 | } |
| 185 | |
| 186 | void Spell::fireSpellSound(Tile& tile, const std::string& soundFamily) |
| 187 | { |
| 188 | std::string sound = "Spells/" + soundFamily; |
| 189 | for(Seat* seat : tile.getSeatsWithVision()) |
| 190 | { |
| 191 | if(seat->getPlayer() == nullptr) |
| 192 | continue; |
| 193 | if(!seat->getPlayer()->getIsHuman()) |
| 194 | continue; |
| 195 | |
| 196 | ServerNotification *serverNotification = new ServerNotification( |
| 197 | ServerNotificationType::playSpatialSound, seat->getPlayer()); |
| 198 | serverNotification->mPacket << sound << tile.getX() << tile.getY(); |
| 199 | ODServer::getSingleton().queueServerNotification(serverNotification); |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | void Spell::exportHeadersToStream(std::ostream& os) const |
| 204 | { |
nothing calls this directly
no test coverage detected