* Find a mission from the active alien missions. * @param region The region ID. * @param type The mission type ID. * @return A pointer to the mission, or 0 if no mission matched. */
| 1449 | * @return A pointer to the mission, or 0 if no mission matched. |
| 1450 | */ |
| 1451 | AlienMission *SavedGame::getAlienMission(const std::string ®ion, const std::string &type) const |
| 1452 | { |
| 1453 | std::vector<AlienMission*>::const_iterator ii = std::find_if(_activeMissions.begin(), _activeMissions.end(), matchRegionAndType(region, type)); |
| 1454 | if (ii == _activeMissions.end()) |
| 1455 | return 0; |
| 1456 | return *ii; |
| 1457 | } |
| 1458 | |
| 1459 | /** |
| 1460 | * return the list of monthly maintenance costs |