Emergency 20 Dokumentation  4.2.0
em5::multiplayer::DataPlayer Class Reference

EMERGENCY 5 multiplayer data player. Plays back any data recorded by the data recorder. More...

#include <DataPlayer.h>

Inheritance diagram for em5::multiplayer::DataPlayer:

Public Types

typedef boost::function< void(const qsf::game::BitStream &bitStream)> SendDataCallback
 

Public Member Functions

 DataPlayer (const uint32 updateJobId, const std::string &fileName, const SendDataCallback &sendDataCallback)
 Constructor. More...
 
virtual ~DataPlayer ()
 Destructor. More...
 
void startup ()
 Gets called, when the player should start its work. More...
 

Detailed Description

EMERGENCY 5 multiplayer data player. Plays back any data recorded by the data recorder.

Member Typedef Documentation

typedef boost::function<void(const qsf::game::BitStream& bitStream)> em5::multiplayer::DataPlayer::SendDataCallback

Constructor & Destructor Documentation

em5::multiplayer::DataPlayer::DataPlayer ( const uint32  updateJobId,
const std::string &  fileName,
const SendDataCallback sendDataCallback 
)
explicit

Constructor.

Parameters
[in]updateJobIdThe job id to use for the playback of the data
[in]fileNameThe filename where the player will read the recorded data from
[in]sendDataCallbackAn callback, which gets called, when the player wants to send some data to the client
virtual em5::multiplayer::DataPlayer::~DataPlayer ( )
virtual

Destructor.

Member Function Documentation

void em5::multiplayer::DataPlayer::startup ( )

Gets called, when the player should start its work.


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