* Check if a mission is over and can be safely removed from the game. * A mission is over if it will spawn no more UFOs and it has no UFOs still in * the game. * @return If the mission can be safely removed from game. */
| 125 | * @return If the mission can be safely removed from game. |
| 126 | */ |
| 127 | bool AlienMission::isOver() const |
| 128 | { |
| 129 | if (_rule.getType() == "STR_ALIEN_INFILTRATION") |
| 130 | { |
| 131 | //Infiltrations continue for ever. |
| 132 | return false; |
| 133 | } |
| 134 | if (_nextWave == _rule.getWaveCount() && !_liveUfos) |
| 135 | { |
| 136 | return true; |
| 137 | } |
| 138 | return false; |
| 139 | } |
| 140 | |
| 141 | /** |
| 142 | * Find an XCOM base in this region that is marked for retaliation. |
no test coverage detected