MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getAlienMission

Method getAlienMission

src/Savegame/SavedGame.cpp:1451–1457  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

1449 * @return A pointer to the mission, or 0 if no mission matched.
1450 */
1451AlienMission *SavedGame::getAlienMission(const std::string &region, 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

Callers 1

loadMethod · 0.45

Calls 1

matchRegionAndTypeClass · 0.85

Tested by

no test coverage detected