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

Method getUfoTrajectory

src/Ruleset/Ruleset.cpp:1063–1067  ·  view source on GitHub ↗

* Returns the data for the specified ufo trajectory. * @param id Ufo trajectory id. * @return A pointer to the data for the specified ufo trajectory. */

Source from the content-addressed store, hash-verified

1061 * @return A pointer to the data for the specified ufo trajectory.
1062 */
1063const UfoTrajectory *Ruleset::getUfoTrajectory(const std::string &id) const
1064{
1065 std::map<std::string, UfoTrajectory *>::const_iterator i = _ufoTrajectories.find(id);
1066 if (_ufoTrajectories.end() != i) return i->second; else return 0;
1067}
1068
1069/**
1070 * Returns the rules for the specified alien mission.

Callers 3

loadMethod · 0.80
thinkMethod · 0.80
spawnUfoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected