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

Method setWaveCountdown

src/Savegame/AlienMission.cpp:554–562  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

552 * @param minutes The minutes until the next UFO wave will spawn.
553 */
554void 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.

Callers 1

time5SecondsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected