#include <stdarg.h>
#include "replay.h"
#include "typen.h"
#include "buildingtype.h"
#include "vehicletype.h"
#include "spfst.h"
#include "controls.h"
#include "dialog.h"
#include "gameoptions.h"
#include "viewcalculation.h"
#include "itemrepository.h"
#include "containercontrols.h"
#include "resourcenet.h"
#include "guiiconhandler.h"
#include "guifunctions.h"
#include "cannedmessages.h"
#include "spfst-legacy.h"
#include "replaymapdisplay.h"
#include "asc-mainscreen.h"
#include "loaders.h"
#include "turncontrol.h"
#include "widgets/textrenderer.h"
#include "actions/jumpdrivecommand.h"
#include "reactionfire.h"
#include "gameeventsystem.h"
#include "sdl/graphicsqueue.h"
#include "video/videorecorder.h"
#include "iconrepository.h"
#include "dialogs/replayrecorder.h"
#include "sg.h"
#include "actions/action.h"
#include "actions/cargomovecommand.h"
#include "actions/constructbuildingcommand.h"
#include "actions/destructbuildingcommand.h"
#include "actions/destructunitcommand.h"
#include "actions/recycleunitcommand.h"
#include "actions/trainunitcommand.h"
#include "actions/moveunitcommand.h"
#include "actions/consumeammo.h"
#include "actions/consumeresource.h"
#include "actions/buildproductionlinecommand.h"
#include "actions/removeproductionlinecommand.h"
#include "actions/cancelresearchcommand.h"
#include "researchexecution.h"
Include dependency graph for replay.cpp:

Go to the source code of this file.
Replays being the moves of other players or the AI, which can be viewed later (especially useful in email games)
Definition in file replay.cpp.
| enum trpl_actions |
Definition at line 75 of file replay.cpp.
| void checkforreplay | ( | void | ) |
checks if there is replay information and -if there is any- runs the replay
Definition at line 641 of file replay.cpp.
References actmap, GameMap::actplayer, choice_dlg(), Player::human, mainScreenWidget, MainScreenWidget::LockOptions::Menu, GameMap::player, GameMap::replayinfo, runSpecificReplay(), Player::stat, and Player::supervisor.
Referenced by hookGuiToMap().
Definition at line 725 of file replay.cpp.
References ContainerBase::getCargo(), and Vehicle::getTank().
Referenced by trunreplay::execnextreplaymove().
| void hookReplayToSystem | ( | ) |
initialized the replay system at program startup
Definition at line 2289 of file replay.cpp.
References ActionContainer::commitCommand, and logActionToReplay().
Referenced by loaddata().
| void initReplayLogging | ( | Player & | player | ) |
Initialized the replay logging at the beginning of a players or the ai's turn.
Definition at line 687 of file replay.cpp.
References fatalError(), Player::getParentMap(), Player::getPosition(), Player::off, GameMap::replayinfo, savereplay(), startreplaylate, Player::stat, and tnstream::writing.
Referenced by deployMapPlayingHooks().
Definition at line 768 of file replay.cpp.
References LogActionIntoReplayInfo::saveCommand().
Referenced by hookReplayToSystem().
| void registerReplayGuiFunctions | ( | GuiIconHandler & | handler | ) |
Definition at line 552 of file replay.cpp.
References GuiIconHandler::registerUserFunction().
Referenced by ReplayGuiIconHandleHandler::ReplayGuiIconHandleHandler().
| void runSpecificReplay | ( | int | player, | |
| int | viewingplayer, | |||
| bool | performEndTurnOperations | |||
| ) |
runs the replay for the given player
Definition at line 600 of file replay.cpp.
References actmap, errorMessage(), GameMap::replayinfo, trunreplay::run(), and runreplay.
Referenced by checkforreplay(), and viewOwnReplay().
| void viewOwnReplay | ( | Player & | player | ) |
runs the replay of the current player. This is used primarily for debugging the replay system
Definition at line 630 of file replay.cpp.
References choice_dlg(), Player::getParentMap(), Player::getPosition(), Player::human, CGameOptions::Instance(), GameMap::replayinfo, runSpecificReplay(), Player::stat, and Player::supervisor.
Referenced by hookGuiToMap().
| ReplayRecorder* replayRecorder = NULL |
Definition at line 239 of file replay.cpp.
Referenced by ReplayGuiFunctions::ReplayRecordExit::available(), trunreplay::execnextreplaymove(), ReplayGuiFunctions::ReplayRecordExit::execute(), ReplayGuiFunctions::ReplayRecord::execute(), and trunreplay::run().
Referenced by ReplayRecorder::ReplayRecorder().
Definition at line 70 of file replay.cpp.
Referenced by ReplayGuiFunctions::ReplayRecordExit::available(), ReplayGuiFunctions::ReplayRecord::available(), ReplayGuiFunctions::ReplayExit::available(), ReplayGuiFunctions::ReplayRewind::available(), ReplayGuiFunctions::ReplaySlower::available(), ReplayGuiFunctions::ReplayFaster::available(), ReplayGuiFunctions::ReplayPause::available(), ReplayGuiFunctions::ReplayPlay::available(), ReplayGuiFunctions::ReplayRecordExit::execute(), ReplayGuiFunctions::ReplayRecord::execute(), ReplayGuiFunctions::ReplayExit::execute(), ReplayGuiFunctions::ReplayRewind::execute(), ReplayGuiFunctions::ReplayPause::execute(), ReplayGuiFunctions::ReplayPlay::execute(), and runSpecificReplay().
| int startreplaylate = 0 |
a hack to enable the replay in a game that was started without replays
Definition at line 72 of file replay.cpp.
Referenced by initReplayLogging().
1.5.1