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

Class FindMarkedXCOMBase

src/Savegame/AlienMission.cpp:144–151  ·  view source on GitHub ↗

* Find an XCOM base in this region that is marked for retaliation. */

Source from the content-addressed store, hash-verified

142 * Find an XCOM base in this region that is marked for retaliation.
143 */
144class FindMarkedXCOMBase: public std::unary_function<const Base *, bool>
145{
146public:
147 FindMarkedXCOMBase(const RuleRegion &region) : _region(region) { /* Empty by design. */ }
148 bool operator()(const Base *base) const { return (_region.insideRegion(base->getLongitude(), base->getLatitude()) && base->getRetaliationTarget()); }
149private:
150 const RuleRegion &_region;
151};
152
153void AlienMission::think(Game &engine, const Globe &globe)
154{

Callers 1

spawnUfoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected