* Choose one missions available for @a region. * @param region The region id. * @return The mission id. */
| 134 | * @return The mission id. |
| 135 | */ |
| 136 | const std::string AlienStrategy::chooseRandomMission(const std::string ®ion) const |
| 137 | { |
| 138 | MissionsByRegion::const_iterator found = _regionMissions.find(region); |
| 139 | assert(found != _regionMissions.end()); |
| 140 | return found->second->choose(); |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * Remove @a mission from the list of possible missions for @a region. |
no test coverage detected