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

Method handleCreatureUsingAbsorbedRoom

source/rooms/RoomHatchery.cpp:228–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void RoomHatchery::handleCreatureUsingAbsorbedRoom(Creature& creature)
229{
230 creature.clearDestinations(EntityAnimation::idle_anim, true, true);
231 creature.clearActionQueue();
232 creature.pushAction(Utils::make_unique<CreatureActionSearchFood>(creature, true));
233}
234
235void RoomHatchery::creatureDropped(Creature& creature)
236{

Callers

nothing calls this directly

Calls 3

clearDestinationsMethod · 0.80
clearActionQueueMethod · 0.80
pushActionMethod · 0.80

Tested by

no test coverage detected