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

Method getSeatById

source/gamemap/GameMap.cpp:2094–2103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2092}
2093
2094Seat* GameMap::getSeatById(int id) const
2095{
2096 for (Seat* seat : mSeats)
2097 {
2098 if (seat->getId() == id)
2099 return seat;
2100 }
2101
2102 return nullptr;
2103}
2104
2105void GameMap::addWinningSeat(Seat *s)
2106{

Callers 15

processMessageMethod · 0.80
checkBuildTrapEditorMethod · 0.80
buildTrapEditorMethod · 0.80
checkBuildRoomEditorMethod · 0.80
buildRoomEditorMethod · 0.80
checkBuildRoomEditorMethod · 0.80

Calls 1

getIdMethod · 0.45

Tested by

no test coverage detected