| 2789 | } |
| 2790 | |
| 2791 | Creature* 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 | |
| 2804 | void GameMap::updateVisibleEntities() |
| 2805 | { |
no test coverage detected