This class handles all logic to do with playing back replays.
More...
#include <replay_manager.h>
This class handles all logic to do with playing back replays.
◆ PlaybackMode
| Enumerator |
|---|
| NORMAL_PLAYBACK | |
| FORWARD_SKIP | |
| BACKWARD_SKIP | |
◆ ReplayManager()
| ReplayManager::ReplayManager |
( |
QObject * | parent, |
|
|
GameReplay * | replay ) |
|
explicit |
- Parameters
-
| parent | The parent QObject |
| replay | Cannot be null. Takes ownership of the object. |
◆ ~ReplayManager()
| ReplayManager::~ReplayManager |
( |
| ) |
|
|
override |
◆ eventReplayed
| void ReplayManager::eventReplayed |
( |
const GameEventContainer & | cont, |
|
|
EventProcessingOptions | options ) |
|
signal |
◆ getReplayTimeline()
| const QList< int > & ReplayManager::getReplayTimeline |
( |
| ) |
const |
|
inline |
◆ handleBackwardsSkip()
| void ReplayManager::handleBackwardsSkip |
( |
bool | doRewindBuffering | ) |
|
|
private |
Handles a backwards skip in the replay timeline.
- Parameters
-
| doRewindBuffering | When true, if multiple backward skips are made in quick succession, only a single rewind is processed at the end. When false, the backwards skip will always cause an immediate rewind. |
◆ handleSkipEmptySection()
| void ReplayManager::handleSkipEmptySection |
( |
| ) |
|
|
private |
◆ processNewEvents()
| void ReplayManager::processNewEvents |
( |
PlaybackMode | playbackMode | ) |
|
|
private |
Processes all unprocessed events up to the current time.
◆ processRewind()
| void ReplayManager::processRewind |
( |
| ) |
|
|
private |
◆ replayFinished
| void ReplayManager::replayFinished |
( |
| ) |
|
|
signal |
◆ replayTimerTimeout
| void ReplayManager::replayTimerTimeout |
( |
| ) |
|
|
privateslot |
◆ rewound
| void ReplayManager::rewound |
( |
| ) |
|
|
signal |
◆ setSkipEmptySections()
| void ReplayManager::setSkipEmptySections |
( |
bool | value | ) |
|
◆ setTime
| void ReplayManager::setTime |
( |
int | time | ) |
|
|
slot |
◆ setTimeScaleFactor()
| void ReplayManager::setTimeScaleFactor |
( |
qreal | _timeScaleFactor | ) |
|
◆ skipByAmount
| void ReplayManager::skipByAmount |
( |
int | amount | ) |
|
|
slot |
◆ skipToTime()
| void ReplayManager::skipToTime |
( |
int | newTime, |
|
|
bool | doRewindBuffering ) |
|
private |
◆ startReplay
| void ReplayManager::startReplay |
( |
| ) |
|
|
slot |
◆ stopReplay
| void ReplayManager::stopReplay |
( |
| ) |
|
|
slot |
◆ timeChanged
| void ReplayManager::timeChanged |
( |
int | time | ) |
|
|
signal |
◆ BIG_SKIP_MS
| int ReplayManager::BIG_SKIP_MS = 10000 |
|
staticconstexpr |
◆ currentEvent
| int ReplayManager::currentEvent = 0 |
|
private |
◆ currentProcessedTime
| int ReplayManager::currentProcessedTime = 0 |
|
private |
time that events are currently processed up to. Could differ from visual time due to rewind buffering
◆ currentVisualTime
| int ReplayManager::currentVisualTime = 0 |
|
private |
time currently displayed by the timeline
◆ maxTime
| int ReplayManager::maxTime |
|
private |
◆ replay
◆ replayTimeline
| QList<int> ReplayManager::replayTimeline |
|
private |
timestamp of each event, with the indexes corresponding
◆ replayTimer
| QTimer* ReplayManager::replayTimer |
|
private |
◆ rewindBufferingTimer
| QTimer* ReplayManager::rewindBufferingTimer |
|
private |
◆ skipEmptySections
| bool ReplayManager::skipEmptySections = false |
|
private |
◆ SMALL_SKIP_MS
| int ReplayManager::SMALL_SKIP_MS = 1000 |
|
staticconstexpr |
◆ timeScaleFactor
| qreal ReplayManager::timeScaleFactor = 1.0 |
|
private |
The documentation for this class was generated from the following files: