MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / getMission

Method getMission

Source/Campaign.cpp:290–298  ·  view source on GitHub ↗

* Get the mission */

Source from the content-addressed store, hash-verified

288 * Get the mission
289 */
290std::shared_ptr<cMission> cCampaign::getMission(size_t pMissionNumber) {
291 if(!pMissionNumber)
292 pMissionNumber = 1;
293
294 if (!mMissions.size() || pMissionNumber > mMissions.size())
295 return 0;
296
297 return mMissions[pMissionNumber - 1];
298}
299
300void cCampaign::SetSingleMapCampaign() {
301 Clear("Single Map", false);

Callers 3

Phase_StartMethod · 0.45
Phase_NextMethod · 0.45
FromJsonMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected