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

Method fireRemoveEntityToSeatsWithVision

source/entities/GameEntity.cpp:330–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void GameEntity::fireRemoveEntityToSeatsWithVision()
331{
332 for(Seat* seat : mSeatsWithVisionNotified)
333 {
334 if(seat->getPlayer() == nullptr)
335 continue;
336 if(!seat->getPlayer()->getIsHuman())
337 continue;
338
339 fireRemoveEntity(seat);
340 }
341
342 mSeatsWithVisionNotified.clear();
343}
344
345std::string GameEntity::getGameEntityStreamFormat()
346{

Callers 1

carryEntityMethod · 0.45

Calls 3

getIsHumanMethod · 0.80
clearMethod · 0.80
getPlayerMethod · 0.45

Tested by

no test coverage detected