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

Method removeCreatureUsingRoom

source/rooms/Room.cpp:165–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void Room::removeCreatureUsingRoom(Creature *c)
166{
167 for (unsigned int i = 0; i < mCreaturesUsingRoom.size(); ++i)
168 {
169 if (mCreaturesUsingRoom[i] == c)
170 {
171 mCreaturesUsingRoom.erase(mCreaturesUsingRoom.begin() + i);
172 break;
173 }
174 }
175}
176
177Creature* Room::getCreatureUsingRoom(unsigned index)
178{

Callers 3

notifyDeadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected