| 31 | } |
| 32 | |
| 33 | bool AIManager::assignAI(Player& player, KeeperAIType type) |
| 34 | { |
| 35 | BaseAI* ai = AIFactory::createAI(mGameMap, player, type); |
| 36 | if(ai == nullptr) |
| 37 | return false; |
| 38 | |
| 39 | mAiList.push_back(ai); |
| 40 | return true; |
| 41 | } |
| 42 | |
| 43 | bool AIManager::doTurn(double timeSinceLastTurn) |
| 44 | { |
no test coverage detected