#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 "unitctrl.h"
#include "replaymapdisplay.h"
#include "asc-mainscreen.h"
#include "loaders.h"
#include "turncontrol.h"
#include "widgets/textrenderer.h"
#include "actions/jumpdrive.h"
#include "actions/selfdestruct.h"
#include "reactionfire.h"
#include "gameeventsystem.h"
#include "sdl/graphicsqueue.h"
#include "video/videorecorder.h"
#include "iconrepository.h"
#include "dialogs/replayrecorder.h"
Include dependency graph for replay.cpp:

Go to the source code of this file.
Namespaces | |
| namespace | ReplayGuiFunctions |
Functions | |
| void | registerReplayGuiFunctions (GuiIconHandler &handler) |
| void | runSpecificReplay (int player, int viewingplayer, bool performEndTurnOperations) |
| runs the replay for the given player | |
| void | viewOwnReplay (Player &player) |
| runs the replay of the current player. This is used primarily for debugging the replay system | |
| void | checkforreplay (void) |
| checks if there is replay information and -if there is any- runs the replay | |
| void | initReplayLogging (Player &player) |
| Initialized the replay logging at the beginning of a players or the ai's turn. | |
| Resources | getUnitResourceCargo (Vehicle *veh) |
| void | logtoreplayinfo (trpl_actions _action,...) |
| void | logAllianceChanges (GameMap *map, int player1, int player2, DiplomaticStates s) |
| void | hookReplayToSystem () |
| initialized the replay system at program startup | |
Variables | |
| trunreplay | runreplay |
| int | startreplaylate = 0 |
| a hack to enable the replay in a game that was started without replays | |
| ReplayRecorderWatcherGlobal | replayRecorderWatcherGlobal |
| ReplayRecorder * | replayRecorder = NULL |
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.
|
|
checks if there is replay information and -if there is any- runs the replay
Definition at line 555 of file replay.cpp. References actmap, GameMap::actplayer, choice_dlg(), Player::human, mainScreenWidget, MainScreenWidget::LockOptions::Menu, GameMap::player, GameMap::replayinfo, runSpecificReplay(), and Player::supervisor. Referenced by hookGuiToMap(). |
|
|
Definition at line 639 of file replay.cpp. References ContainerBase::getCargo(), and Vehicle::getTank(). Referenced by trunreplay::execnextreplaymove(), and logtoreplayinfo(). |
|
|
initialized the replay system at program startup
Definition at line 2709 of file replay.cpp. References DiplomaticStateVector::anyStateChanged, and logAllianceChanges(). Referenced by loaddata(). |
|
|
Initialized the replay logging at the beginning of a players or the ai's turn.
Definition at line 601 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 2703 of file replay.cpp. References actmap, logtoreplayinfo(), and rpl_alliancechange2. Referenced by hookReplayToSystem(). |
|
||||||||||||
|
|
Definition at line 473 of file replay.cpp. References GuiIconHandler::registerUserFunction(). Referenced by ReplayGuiIconHandleHandler::ReplayGuiIconHandleHandler(). |
|
||||||||||||||||
|
runs the replay for the given player
Definition at line 521 of file replay.cpp. References actmap, errorMessage(), GameMap::replayinfo, and trunreplay::run(). Referenced by checkforreplay(), and viewOwnReplay(). |
|
|
runs the replay of the current player. This is used primarily for debugging the replay system
Definition at line 544 of file replay.cpp. References choice_dlg(), Player::getParentMap(), Player::getPosition(), Player::human, CGameOptions::Instance(), runSpecificReplay(), Player::stat, and Player::supervisor. Referenced by hookGuiToMap(). |
|
|
Definition at line 160 of file replay.cpp. |
|
|
Referenced by ReplayRecorder::ReplayRecorder(). |
|
|
Definition at line 56 of file replay.cpp. Referenced by treactionfirereplay::init(). |
|
|
a hack to enable the replay in a game that was started without replays
Definition at line 58 of file replay.cpp. Referenced by initReplayLogging(). |
1.4.2