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

Class matchMissionID

src/Savegame/Ufo.cpp:88–97  ·  view source on GitHub ↗

* Match AlienMission based on the unique ID. */

Source from the content-addressed store, hash-verified

86 * Match AlienMission based on the unique ID.
87 */
88class matchMissionID: public std::unary_function<const AlienMission *, bool>
89{
90public:
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; }
95private:
96 int _id;
97};
98
99/**
100 * Loads the UFO from a YAML file.

Callers 1

loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected