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

Class SetRetaliationTarget

src/Geoscape/GeoscapeState.cpp:1015–1019  ·  view source on GitHub ↗

* Functor that marks an XCOM base for retaliation. * This is required because of the iterator type. */

Source from the content-addressed store, hash-verified

1013 * This is required because of the iterator type.
1014 */
1015struct SetRetaliationTarget: public std::unary_function<std::map<const Region *, Base *>::value_type, void>
1016{
1017 /// Mark as a valid retaliation target.
1018 void operator()(const argument_type &iter) const { iter.second->setRetaliationTarget(true); }
1019};
1020
1021/**
1022 * Takes care of any game logic that has to

Callers 1

time10MinutesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected