0ad/source/ps/GameRecord.h
janwas c817566222 # housekeeping
replaced all (*) CStr / CStrW by-value params with const reference. hoo
boy.

please always perform this optimization (actually standard idiom) when
writing the code - it takes little work, tells the next guy that the
string won't be modified, and makes a large performance difference.

(* where possible.. a few require other changes and will follow later)

This was SVN commit r4151.
2006-07-20 14:37:58 +00:00

30 lines
474 B
C++

#ifndef _ps_GameRecord_H
#define _ps_GameRecord_H
#include "CStr.h"
class CNetMessage;
class CTurnManager;
class CGameRecord
{
bool m_IsRecording;
CTurnManager *m_pTurnManager;
public:
void Load(const CStr& filename);
void Record(const CStr& filename);
bool IsRecording();
/*
NOTE: The message will not be deleted by this method. Ownership remains
the caller's.
*/
void WriteMessage(CNetMessage *pMsg);
CTurnManager *GetPlaybackTurnManager();
};
#endif