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

Method notifyVision

source/entities/Tile.cpp:727–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725}
726
727void Tile::notifyVision(Seat* seat)
728{
729 if(std::find(mSeatsWithVision.begin(), mSeatsWithVision.end(), seat) != mSeatsWithVision.end())
730 return;
731
732 seat->notifyVisionOnTile(this);
733 mSeatsWithVision.push_back(seat);
734
735 // We also notify vision for allied seats
736 for(Seat* alliedSeat : seat->getAlliedSeats())
737 notifyVision(alliedSeat);
738}
739
740void Tile::setSeats(const std::vector<Seat*>& seats)
741{

Callers 4

computeVisibleTilesMethod · 0.80
serverThreadMethod · 0.80
computeVisibleTilesMethod · 0.80
computeVisibleTilesMethod · 0.80

Calls 1

notifyVisionOnTileMethod · 0.80

Tested by

no test coverage detected