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

Method minimizedDogfightsCount

src/Geoscape/GeoscapeState.cpp:2057–2068  ·  view source on GitHub ↗

* Gets the number of minimized dogfights. * @return Number of minimized dogfights. */

Source from the content-addressed store, hash-verified

2055 * @return Number of minimized dogfights.
2056 */
2057int GeoscapeState::minimizedDogfightsCount()
2058{
2059 int minimizedDogfights = 0;
2060 for(std::list<DogfightState*>::iterator d = _dogfights.begin(); d != _dogfights.end(); ++d)
2061 {
2062 if ((*d)->isMinimized())
2063 {
2064 ++minimizedDogfights;
2065 }
2066 }
2067 return minimizedDogfights;
2068}
2069
2070/**
2071 * Starts a new dogfight.

Callers

nothing calls this directly

Calls 1

isMinimizedMethod · 0.80

Tested by

no test coverage detected