* Returns the data for the specified ufo trajectory. * @param id Ufo trajectory id. * @return A pointer to the data for the specified ufo trajectory. */
| 1061 | * @return A pointer to the data for the specified ufo trajectory. |
| 1062 | */ |
| 1063 | const 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. |