1#ifndef COCKATRICE_REPLAY_MANAGER_H
2#define COCKATRICE_REPLAY_MANAGER_H
9#include <qtmetamacros.h>
44 void skipToTime(
int newTime,
bool doRewindBuffering);
Definition remote_connection_controller.h:20
bool skipEmptySections
Definition replay_manager.h:37
void processNewEvents(PlaybackMode playbackMode)
Processes all unprocessed events up to the current time.
Definition replay_manager.cpp:137
PlaybackMode
Definition replay_manager.h:23
@ BACKWARD_SKIP
Definition replay_manager.h:26
@ NORMAL_PLAYBACK
Definition replay_manager.h:24
@ FORWARD_SKIP
Definition replay_manager.h:25
GameReplay * replay
Definition replay_manager.h:29
static constexpr int SMALL_SKIP_MS
Definition replay_manager.h:54
QTimer * rewindBufferingTimer
Definition replay_manager.h:34
void handleSkipEmptySection()
Definition replay_manager.cpp:181
const QList< int > & getReplayTimeline() const
Definition replay_manager.h:65
void timeChanged(int time)
int maxTime
Definition replay_manager.h:31
qreal timeScaleFactor
Definition replay_manager.h:36
void skipToTime(int newTime, bool doRewindBuffering)
Definition replay_manager.cpp:68
static constexpr int BIG_SKIP_MS
Definition replay_manager.h:55
int currentEvent
current event's index
Definition replay_manager.h:42
void skipByAmount(int amount)
Definition replay_manager.cpp:239
QTimer * replayTimer
Definition replay_manager.h:33
void handleBackwardsSkip(bool doRewindBuffering)
Handles a backwards skip in the replay timeline.
Definition replay_manager.cpp:98
void processRewind()
Definition replay_manager.cpp:112
void setSkipEmptySections(bool value)
Definition replay_manager.cpp:218
void setTimeScaleFactor(qreal _timeScaleFactor)
Definition replay_manager.cpp:211
void setTime(int time)
Definition replay_manager.cpp:233
int currentProcessedTime
Definition replay_manager.h:40
void replayTimerTimeout()
Definition replay_manager.cpp:123
int currentVisualTime
time currently displayed by the timeline
Definition replay_manager.h:39
void startReplay()
Definition replay_manager.cpp:223
void stopReplay()
Definition replay_manager.cpp:228
void eventReplayed(const GameEventContainer &cont, EventProcessingOptions options)
ReplayManager(QObject *parent, GameReplay *replay)
Definition replay_manager.cpp:49
QList< int > replayTimeline
timestamp of each event, with the indexes corresponding
Definition replay_manager.h:30
Definition game_event_container.proto:4
Definition game_replay.proto:4