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

Method fireRelativeSound

source/gamemap/GameMap.cpp:3269–3283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3267}
3268
3269void GameMap::fireRelativeSound(const std::vector<Seat*>& seats, const std::string& soundFamily)
3270{
3271 for(Seat* seat : seats)
3272 {
3273 if(seat->getPlayer() == nullptr)
3274 continue;
3275 if(!seat->getPlayer()->getIsHuman())
3276 continue;
3277
3278 ServerNotification *serverNotification = new ServerNotification(
3279 ServerNotificationType::playRelativeSound, seat->getPlayer());
3280 serverNotification->mPacket << soundFamily;
3281 ODServer::getSingleton().queueServerNotification(serverNotification);
3282 }
3283}

Callers 7

checkAllGoalsMethod · 0.80
notifyTeamFightingMethod · 0.80

Calls 3

getIsHumanMethod · 0.80
getPlayerMethod · 0.45

Tested by

no test coverage detected