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

Method notifyDead

source/creatureaction/CreatureActionUseRoom.cpp:170–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170bool CreatureActionUseRoom::notifyDead(GameEntity* entity)
171{
172 if(entity == mRoom)
173 {
174 OD_LOG_INF("creature=" + mCreature.getName() + " removed from dead room=" + mRoom->getName());
175 mRoom->removeCreatureUsingRoom(&mCreature);
176 mRoom = nullptr;
177 return false;
178 }
179 return true;
180}
181
182bool CreatureActionUseRoom::notifyRemovedFromGameMap(GameEntity* entity)
183{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected