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

Method hasOpenCreatureSpot

source/rooms/RoomTrainingHall.cpp:267–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267bool RoomTrainingHall::hasOpenCreatureSpot(Creature* c)
268{
269 if (c->getLevel() >= ConfigManager::getSingleton().getRoomConfigUInt32("TrainHallMaxTrainingLevel"))
270 return false;
271
272 // We accept all creatures as soon as there are free dummies
273 return mUnusedDummies.size() > 0;
274}
275
276bool RoomTrainingHall::addCreatureUsingRoom(Creature* creature)
277{

Callers

nothing calls this directly

Calls 2

getLevelMethod · 0.80
getRoomConfigUInt32Method · 0.80

Tested by

no test coverage detected