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

Method handleCreatureUsingAbsorbedRoom

source/rooms/Room.cpp:139–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void Room::handleCreatureUsingAbsorbedRoom(Creature& creature)
140{
141 // If the job room is absorbed, we force the creatures working in the old rooms to search
142 // a job. If there is space in the new one, they will use it. If not, they
143 // will do something else
144 creature.clearDestinations(EntityAnimation::idle_anim, true, true);
145 creature.clearActionQueue();
146 creature.pushAction(Utils::make_unique<CreatureActionSearchJob>(creature, true));
147}
148
149void Room::reorderRoomTiles(std::vector<Tile*>& tiles)
150{

Callers

nothing calls this directly

Calls 3

clearDestinationsMethod · 0.80
clearActionQueueMethod · 0.80
pushActionMethod · 0.80

Tested by

no test coverage detected