#include <replaylist.h>
Inherits PlaybackList< Replay >.

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) |
| PlaybackType & | AddPlayback (const size_t index) |
| loads replays between two indices | |
| void | AddPlayback (PlaybackType *replay) |
| void | RemovePlayback (playback_id_t const &id) |
| PlaybackType & | GetPlaybackById (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_t & | GetPlaybacksMap () 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 §ionname, 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 |
Definition at line 40 of file replaylist.h.
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.
| typedef Replay ReplayList::PlaybackType |
Reimplemented from PlaybackList< Replay >.
Definition at line 45 of file replaylist.h.
| ReplayList::ReplayList | ( | ) | [protected] |
Definition at line 17 of file replaylist.cpp.
| 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] |
saves relevant infos from header into replay struct
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] |
Definition at line 38 of file replaylist.cpp.
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] |
friend class GlobalObjectHolder [friend] |
Definition at line 53 of file replaylist.h.
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.
1.6.3