ReplayList Class Reference

#include <replaylist.h>

Inherits PlaybackList< Replay >.

Collaboration diagram for ReplayList:
Collaboration graph
[legend]

Public Types

typedef Replay PlaybackType
typedef unsigned int playback_id_t
typedef std::map
< playback_id_t, PlaybackType
playback_map_t
 mapping from playback id number to playback object
typedef playback_map_t::iterator playback_iter_t
 iterator for playback map
typedef
playback_map_t::const_iterator 
playback_const_iter_t
 const iterator for playback map

Public Member Functions

virtual void LoadPlaybacks (const wxArrayString &filenames)
PlaybackTypeAddPlayback (const size_t index)
 loads replays between two indices
void AddPlayback (PlaybackType *replay)
void RemovePlayback (playback_id_t const &id)
PlaybackTypeGetPlaybackById (playback_id_t const &id)
bool PlaybackExists (playback_id_t const &id) const
 Playback& GetPlayback( int const index ) ;.
bool DeletePlayback (playback_id_t const &id)
playback_map_t::size_type GetNumPlaybacks () const
void RemoveAll ()
const playback_map_tGetPlaybacksMap () const

Protected Member Functions

 ReplayList ()
bool GetReplayInfos (const wxString &ReplayPath, Replay &ret) const
wxString GetScriptFromReplay (const wxString &ReplayPath) const
BattleOptions GetBattleOptsFromScript (const wxString &script_) const
void LoadMMOpts (const wxString &sectionname, IBattle &battle, const SL::PDataList &node)
 load mod/map options
void LoadMMOpts (IBattle &battle, const SL::PDataList &node)
 load engine options
void GetHeaderInfo (Replay &rep, const wxString &ReplayPath) const
 saves relevant infos from header into replay struct

Protected Attributes

playback_map_t m_replays
unsigned long m_fails

Friends

class GlobalObjectHolder

Detailed Description

Definition at line 40 of file replaylist.h.


Member Typedef Documentation

typedef playback_map_t::const_iterator PlaybackList< Replay >::playback_const_iter_t [inherited]

const iterator for playback map

Definition at line 23 of file playbacklist.h.

typedef unsigned int PlaybackList< Replay >::playback_id_t [inherited]

Definition at line 16 of file playbacklist.h.

typedef playback_map_t::iterator PlaybackList< Replay >::playback_iter_t [inherited]

iterator for playback map

Definition at line 21 of file playbacklist.h.

typedef std::map<playback_id_t, PlaybackType> PlaybackList< Replay >::playback_map_t [inherited]

mapping from playback id number to playback object

Definition at line 19 of file playbacklist.h.

Reimplemented from PlaybackList< Replay >.

Definition at line 45 of file replaylist.h.


Constructor & Destructor Documentation

ReplayList::ReplayList (  )  [protected]

Definition at line 17 of file replaylist.cpp.


Member Function Documentation

void PlaybackList< Replay >::AddPlayback ( PlaybackType replay  )  [inherited]
PlaybackType& PlaybackList< Replay >::AddPlayback ( const size_t  index  )  [inherited]

loads replays between two indices

bool PlaybackList< Replay >::DeletePlayback ( playback_id_t const &  id  )  [inherited]
BattleOptions ReplayList::GetBattleOptsFromScript ( const wxString script_  )  const [protected]
void ReplayList::GetHeaderInfo ( Replay rep,
const wxString ReplayPath 
) const [protected]

saves relevant infos from header into replay struct

Todo:
don't use long long? (pedantic)

Definition at line 102 of file replaylist.cpp.

playback_map_t::size_type PlaybackList< Replay >::GetNumPlaybacks (  )  const [inherited]
PlaybackType& PlaybackList< Replay >::GetPlaybackById ( playback_id_t const &  id  )  [inherited]
const playback_map_t& PlaybackList< Replay >::GetPlaybacksMap (  )  const [inherited]
bool ReplayList::GetReplayInfos ( const wxString ReplayPath,
Replay ret 
) const [protected]

Definition at line 38 of file replaylist.cpp.

wxString ReplayList::GetScriptFromReplay ( const wxString ReplayPath  )  const [protected]

Definition at line 73 of file replaylist.cpp.

void ReplayList::LoadMMOpts ( IBattle battle,
const SL::PDataList node 
) [protected]

load engine options

void ReplayList::LoadMMOpts ( const wxString sectionname,
IBattle battle,
const SL::PDataList node 
) [protected]

load mod/map options

void ReplayList::LoadPlaybacks ( const wxArrayString &  filenames  )  [virtual]

Implements PlaybackList< Replay >.

Definition at line 21 of file replaylist.cpp.

bool PlaybackList< Replay >::PlaybackExists ( playback_id_t const &  id  )  const [inherited]

Playback& GetPlayback( int const index ) ;.

void PlaybackList< Replay >::RemoveAll (  )  [inherited]
void PlaybackList< Replay >::RemovePlayback ( playback_id_t const &  id  )  [inherited]

Friends And Related Function Documentation

friend class GlobalObjectHolder [friend]

Definition at line 53 of file replaylist.h.


Field Documentation

unsigned long PlaybackList< Replay >::m_fails [protected, inherited]

Definition at line 51 of file playbacklist.h.

playback_map_t PlaybackList< Replay >::m_replays [protected, inherited]

Definition at line 49 of file playbacklist.h.


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

Generated on Thu Dec 29 00:11:48 2011 for SpringLobby by doxygen 1.6.3