28
28
#include " Common/MessageStream.h"
29
29
#include " GameNetwork/GameInfo.h"
30
30
31
+ class File ;
32
+
31
33
/* *
32
34
* The ReplayGameInfo class holds information about the replay game and
33
35
* the contents of its slot list for reconstructing multiplayer games.
@@ -89,7 +91,7 @@ class RecorderClass : public SubsystemInterface {
89
91
CRCInfo *m_crcInfo;
90
92
public:
91
93
92
- // read in info relating to a replay, conditionally setting up m_file for playback
94
+ // read in info relating to a replay, conditionally setting up m_replayFile for playback
93
95
struct ReplayHeader
94
96
{
95
97
AsciiString filename;
@@ -139,8 +141,8 @@ class RecorderClass : public SubsystemInterface {
139
141
void logGameStart (AsciiString options);
140
142
void logGameEnd ( void );
141
143
142
- AsciiString readAsciiString (); // /< Read the next string from m_file using ascii characters.
143
- UnicodeString readUnicodeString (); // /< Read the next string from m_file using unicode characters.
144
+ AsciiString readAsciiString (); // /< Read the next string from m_replayFile using ascii characters.
145
+ UnicodeString readUnicodeString (); // /< Read the next string from m_replayFile using unicode characters.
144
146
void readNextFrame (); // /< Read the next frame number to execute a command on.
145
147
void appendNextCommand (); // /< Read the next GameMessage and append it to TheCommandList.
146
148
void writeArgument (GameMessageArgumentDataType type, const GameMessageArgumentType arg);
@@ -154,6 +156,7 @@ class RecorderClass : public SubsystemInterface {
154
156
155
157
CullBadCommandsResult cullBadCommands (); // /< prevent the user from giving mouse commands that he shouldn't be able to do during playback.
156
158
159
+ File* m_replayFile;
157
160
FILE *m_file;
158
161
AsciiString m_fileName;
159
162
Int m_currentFilePosition;
0 commit comments