_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <string>
Go to the source code of this file.
replay.h - The replay header file. | |
enum | ReplayType { ReplayNone, ReplaySinglePlayer, ReplayMultiPlayer } |
bool | CommandLogDisabled |
ReplayType | ReplayGameType |
True, if command log is off. More... | |
void | CommandLog (const char *action, const CUnit *unit, int flush, int x, int y, const CUnit *dest, const char *value, int num) |
Replay game type. More... | |
void | SinglePlayerReplayEachCycle () |
Replay user commands from log each cycle, single player games. More... | |
void | MultiPlayerReplayEachCycle () |
Replay user commands from log each cycle, multiplayer games. More... | |
int | LoadReplay (const std::string &name) |
Load replay. More... | |
void | EndReplayLog () |
End logging. More... | |
void | CleanReplayLog () |
Clean replay. More... | |
void | SaveReplayList (CFile &file) |
Save the replay list to file. More... | |
void | ReplayCclRegister () |
Register ccl functions related to network. More... | |
bool | IsReplayGame () |
enum ReplayType |
void CleanReplayLog | ( | ) |
Clean replay.
Clean replay log
void CommandLog | ( | const char * | action, |
const CUnit * | unit, | ||
int | flush, | ||
int | x, | ||
int | y, | ||
const CUnit * | dest, | ||
const char * | value, | ||
int | num | ||
) |
Replay game type.
Log commands into file
Log commands into file.
This could later be used to recover, crashed games.
action | Command name (move,attack,...). |
unit | Unit that receive the command. |
flush | Append command or flush old commands. |
x | optional X map position. |
y | optional y map position. |
dest | optional destination unit. |
value | optional command argument (unit-type,...). |
num | optional number argument |
void EndReplayLog | ( | ) |
End logging.
End logging
bool IsReplayGame | ( | ) |
Check if we're replaying a game
int LoadReplay | ( | const std::string & | name | ) |
Load replay.
Load a log file to replay a game
name | name of file to load. |
void MultiPlayerReplayEachCycle | ( | ) |
Replay user commands from log each cycle, multiplayer games.
Replay user commands from log each cycle, multiplayer games
void ReplayCclRegister | ( | ) |
Register ccl functions related to network.
Register Ccl functions with lua
Save the replay list to file.
Save generated replay
file | file to save to. |
void SinglePlayerReplayEachCycle | ( | ) |
Replay user commands from log each cycle, single player games.
Replay user commands from log each cycle, single player games
bool CommandLogDisabled |
ReplayType ReplayGameType |
True, if command log is off.
True, if command log is off.