#include <player.h>
Collaboration diagram for player:
Public Methods | |
player (renderer *, bool wait=true, bool output_sound=true) throw () | |
virtual | ~player () throw () |
bool | play (const std::string &) throw (std::exception) |
void | update_palette (void) |
void | show (const std::string &p) |
void | hide (const std::string &p) |
Protected Methods | |
bool | read_string (const std::string &file) throw (std::exception) |
void | clean () throw () |
void | checkBlock (const chunck &, chunck::type, unsigned int=0) |
void | handleAnimHeader (chunck &) throw (std::exception) |
void | handleFrame (chunck &) throw (std::exception) |
void | handleNewPalette (chunck &) throw (std::exception) |
void | handleFrameObject (chunck &) throw (std::exception) |
void | handleSoundBuffer (int, int, int, int, int, int, chunck &, int) throw (std::exception) |
void | handleImuseBuffer (int, int, int, int, int, int, chunck &, int) throw (std::exception) |
void | handleSoundFrame (chunck &) throw (std::exception) |
void | handleSkip (chunck &) throw (std::exception) |
void | handleStore (chunck &) throw (std::exception) |
void | handleFetch (chunck &) throw (std::exception) |
void | handleImuseAction8 (chunck &, int flags, int unknown, int track_id) throw (std::exception) |
void | handleImuseAction (chunck &) throw (std::exception) |
void | handleTextResource (chunck &) throw (std::exception) |
void | handleDeltaPalette (chunck &) throw (std::exception) |
void | decodeCodec (chunck &, const rect &, decoder &) throw (std::exception) |
void | readPalette (palette &, chunck &) throw (std::exception) |
void | init_size (const rect &, bool, bool) throw (std::exception) |
Private Attributes | |
std::string | _fname |
the name of the animation file being played | |
int | _version |
the version of the animation file being played | |
int | _secondary_version |
the secondary version number of the animation file being played | |
int | _sound_frequency |
the sound frequency of the animation file being played | |
int | _nbframes |
the number of frames in the animation file | |
mixer | _mixer |
the sound mixer | |
palette | _pal |
the current palette | |
short | _delta_pal [768] |
the delta palette information set by an xpal | |
renderer * | _renderer |
pointer to the renderer | |
string_resource * | _strings |
pointer to the string resources associated with the animation | |
font_renderer * | _fr [4] |
pointers to the fonts for the animation | |
codec1_decoder | _codec1 |
the decoder for codec 1 and 3 | |
codec37_decoder | _codec37 |
the decoder for codec 37 | |
codec44_decoder | _codec44 |
the decoder for codec 21 and 44 | |
point | _frame_size |
the current frame size of the animation | |
int | _frame |
the current frame number of the animation | |
bool | _output_sound |
should we handle sound ? | |
bool | _wait |
should we synchronise the player ? | |
bool | _already_init |
has the player already been initialized for the current frame | |
bool | _codec37_called |
has the codec 37 already been called once for this animation | |
bool | _skipnext |
should the player skip the next frame object ? | |
bool | _subtitles |
should the player handle subtitles ? | |
bool | _bgmusic |
should the player output the background music ? | |
bool | _voices |
should the player output the voice ? | |
std::map< int, bool > | _skips |
mapping of frame object identifier to show or hide | |
char * | _cur_buffer |
pointer to the current frame |
This class is the player itself.
Definition at line 48 of file player.h.
|
Definition at line 136 of file player.cpp. |
|
Definition at line 158 of file player.cpp. |
|
Definition at line 174 of file player.cpp. References chunck::get_size(), chunck::get_type(), and chunck::type. |
|
Definition at line 166 of file player.cpp. |
|
Definition at line 438 of file player.cpp. |
|
Definition at line 584 of file player.cpp. References WAIT. |
|
Definition at line 388 of file player.cpp. |
|
Definition at line 254 of file player.cpp. |
|
Definition at line 527 of file player.cpp. References chunck::chunck_string(), chunck::get_size(), chunck::get_type(), and WAIT. |
|
Definition at line 473 of file player.cpp. |
|
Definition at line 294 of file player.cpp. |
|
Definition at line 280 of file player.cpp. |
|
Definition at line 267 of file player.cpp. References channel::append_data(), channel::check_parameters(), and channel::set_parameters(). |
|
Definition at line 429 of file player.cpp. |
|
Definition at line 227 of file player.cpp. |
|
Definition at line 190 of file player.cpp. References channel::append_data(), channel::check_parameters(), and channel::set_parameters(). |
|
Definition at line 205 of file player.cpp. |
|
Definition at line 240 of file player.cpp. |
|
Definition at line 328 of file player.cpp. References font_renderer::draw_string_absolute(), font_renderer::draw_string_centered(), and font_renderer::set_color(). |
|
Definition at line 119 of file player.cpp. References _bgmusic, _skips, _subtitles, and _voices. Referenced by main(). |
|
Definition at line 450 of file player.cpp. |
|
Definition at line 704 of file player.cpp. References file_chunck::eof(), chunck::get_size(), chunck::get_type(), load_font(), and file_chunck::sub_block(). |
|
Definition at line 671 of file player.cpp. References get_strings(). |
|
Definition at line 382 of file player.cpp. |
|
Definition at line 103 of file player.cpp. References _bgmusic, _skips, _subtitles, and _voices. Referenced by main(). |
|
Definition at line 162 of file player.cpp. References _pal, _renderer, and renderer::set_palette(). |
|
has the player already been initialized for the current frame
|
|
should the player output the background music ?
|
|
the decoder for codec 1 and 3
|
|
the decoder for codec 37
|
|
has the codec 37 already been called once for this animation
|
|
the decoder for codec 21 and 44
|
|
pointer to the current frame
|
|
the delta palette information set by an xpal
|
|
the name of the animation file being played
|
|
pointers to the fonts for the animation
|
|
the current frame number of the animation
|
|
the current frame size of the animation
|
|
the sound mixer
|
|
the number of frames in the animation file
|
|
should we handle sound ?
|
|
the current palette
Definition at line 56 of file player.h. Referenced by update_palette(). |
|
pointer to the renderer
Definition at line 58 of file player.h. Referenced by update_palette(). |
|
the secondary version number of the animation file being played
|
|
should the player skip the next frame object ?
|
|
mapping of frame object identifier to show or hide
|
|
the sound frequency of the animation file being played
|
|
pointer to the string resources associated with the animation
|
|
should the player handle subtitles ?
|
|
the version of the animation file being played
|
|
should the player output the voice ?
|
|
should we synchronise the player ?
|