* The new time must be a multiple of 30 minutes, and more than 0. * Calling this on a finished mission has no effect. * @param minutes The minutes until the next UFO wave will spawn. */
| 552 | * @param minutes The minutes until the next UFO wave will spawn. |
| 553 | */ |
| 554 | void AlienMission::setWaveCountdown(size_t minutes) |
| 555 | { |
| 556 | assert(minutes != 0 && minutes % 30 == 0); |
| 557 | if (isOver()) |
| 558 | { |
| 559 | return; |
| 560 | } |
| 561 | _spawnCountdown = minutes; |
| 562 | } |
| 563 | |
| 564 | /** |
| 565 | * Assigns a unique ID to this mission. |