LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg::ReplayRecorder Class Reference

Class that writes a replay to a file.

#include <nrg_replay.h>

Public Member Functions

 ReplayRecorder ()
 Default constructor.
 
bool startRecording (const char *filename, int sid, const std::vector< Entity * > &initial_entities)
 Starts recording a replay !CURRENTLY BROKEN!
 
bool isRecording () const
 Returns true if a replay is being recorded.
 
void stopRecording ()
 Stops recording a replay.
 
void addPacket (Packet &p)
 Adds a packet that will be serialised into the replay file.
 

The documentation for this class was generated from the following file: