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

Method chooseRandomMission

src/Savegame/AlienStrategy.cpp:136–141  ·  view source on GitHub ↗

* Choose one missions available for @a region. * @param region The region id. * @return The mission id. */

Source from the content-addressed store, hash-verified

134 * @return The mission id.
135 */
136const std::string AlienStrategy::chooseRandomMission(const std::string &region) 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.

Callers 1

Calls 1

chooseMethod · 0.80

Tested by

no test coverage detected