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