* Match AlienMission based on the unique ID. */
| 86 | * Match AlienMission based on the unique ID. |
| 87 | */ |
| 88 | class matchMissionID: public std::unary_function<const AlienMission *, bool> |
| 89 | { |
| 90 | public: |
| 91 | /// Store ID for later comparisons. |
| 92 | matchMissionID(int id) : _id(id) { /* Empty by design. */ } |
| 93 | /// Match with stored ID. |
| 94 | bool operator()(const AlienMission *am) const { return am->getId() == _id; } |
| 95 | private: |
| 96 | int _id; |
| 97 | }; |
| 98 | |
| 99 | /** |
| 100 | * Loads the UFO from a YAML file. |