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

Method getWorkerForPathFinding

source/gamemap/GameMap.cpp:2791–2802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2789}
2790
2791Creature* GameMap::getWorkerForPathFinding(Seat* seat)
2792{
2793 for (Creature* creature : mCreatures)
2794 {
2795 if(creature->getSeat() != seat)
2796 continue;
2797
2798 if (creature->getDefinition()->isWorker())
2799 return creature;
2800 }
2801 return nullptr;
2802}
2803
2804void GameMap::updateVisibleEntities()
2805{

Callers 4

doUpkeepMethod · 0.80
handleDiggingMethod · 0.80
checkTreasuryMethod · 0.80
digWayToTileMethod · 0.80

Calls 3

isWorkerMethod · 0.80
getDefinitionMethod · 0.80
getSeatMethod · 0.45

Tested by

no test coverage detected