#include <bggame.h>
Inheritance diagram for BG_Game:
Public Member Functions | |
BG_Game () | |
~BG_Game () | |
virtual void | play_intro () |
virtual void | end_game (bool success) |
virtual void | top_menu () |
virtual void | show_quotes () |
virtual void | show_credits () |
virtual bool | new_game (Vga_file &shapes) |
virtual int | get_start_tile_x () |
virtual int | get_start_tile_y () |
virtual void | show_journey_failed () |
Static Public Member Functions | |
static bool | is_installed () |
Private Member Functions | |
void | scene_lord_british () |
void | scene_butterfly () |
void | scene_guardian () |
void | scene_desk () |
void | scene_moongate () |
Private Attributes | |
Vga_file | shapes |
Definition at line 25 of file bggame.h.
BG_Game::BG_Game | ( | ) |
Definition at line 77 of file bggame.cc.
References FontManager::add_font(), Game::add_resource(), Game::add_shape(), ENDGAME, fontManager, FONTS_VGA, MAINSHP_FLX, and PALETTES_FLX.
Here is the call graph for this function:
void BG_Game::play_intro | ( | ) | [virtual] |
Implements Game.
Definition at line 216 of file bggame.cc.
References c_fade_out_time, Audio::cancel_streams(), Game_window::clear_screen(), Palette::fade_out(), FORGET_OBJECT, Audio::get_ptr(), Game::gwin, Game_singletons::pal, scene_butterfly(), scene_desk(), scene_guardian(), scene_lord_british(), scene_moongate(), and Audio::stop_music().
Here is the call graph for this function:
void BG_Game::end_game | ( | bool | success | ) | [virtual] |
Implements Game.
Definition at line 937 of file bggame.cc.
References Palette::apply(), c_fade_in_time, c_fade_out_time, Font::center_text(), Game::centerx, Game::centery, Game_window::clear_screen(), Font::draw_text(), ENDGAME, ENDSCORE_XMI, Palette::fade(), Palette::fade_in(), Palette::fade_out(), Image_window8::fill8(), fontManager, FORGET_ARRAY, playfli::fliinfo::frames, TextScroller::get_count(), FontManager::get_font(), Game_window::get_height(), Game_window::get_instance(), Audio::get_midi(), playfli::get_palette(), Audio::get_ptr(), Font::get_text_height(), Font::get_text_width(), Game_window::get_width(), Game::gwin, height, Game::ibuf, playfli::info(), MyMidiPlayer::is_fm_synth(), Palette::load(), MyMidiPlayer::load_patches(), MAINSHP_FLX, Game_singletons::pal, Audio::play(), playfli::play(), U7object::retrieve(), Palette::set_brightness(), Image_window::show(), TextScroller::show_line(), size, Audio::start_music(), Audio::stop_music(), Game::topx, Game::topy, wait_delay(), width, and Game::win.
Here is the call graph for this function:
void BG_Game::top_menu | ( | ) | [virtual] |
Implements Game.
Definition at line 921 of file bggame.cc.
References Palette::fade_in(), Vga_file::get_shape(), Palette::load(), menu_midi, Game::menushapes, Shape_manager::paint_shape(), Game_singletons::pal, Game::play_midi(), Game_singletons::sman, Game::topx, and Game::topy.
Here is the call graph for this function:
void BG_Game::show_quotes | ( | ) | [virtual] |
Implements Game.
Definition at line 1361 of file bggame.cc.
References Vga_file::extract_shape(), fontManager, FontManager::get_font(), Game_window::get_pal(), Game::gwin, Palette::load(), MAINSHP_FLX, Game::menushapes, Game::play_midi(), and quotes_midi.
Here is the call graph for this function:
void BG_Game::show_credits | ( | ) | [virtual] |
Implements Game.
Definition at line 1373 of file bggame.cc.
References credits_midi, Vga_file::extract_shape(), fontManager, FontManager::get_font(), Game_window::get_pal(), Game::gwin, Palette::load(), MAINSHP_FLX, Game::menushapes, Game::play_midi(), and U7open().
Here is the call graph for this function:
bool BG_Game::new_game | ( | Vga_file & | shapes | ) | [virtual] |
Implements Game.
Definition at line 1391 of file bggame.cc.
References Palette::apply(), c_fade_out_time, Game::centerx, Game_window::clear_screen(), Font::draw_text(), EXULT_BG_FLX_MR_INTRO_SHP, Palette::fade_out(), Image_window8::fill8(), fontManager, FORGET_ARRAY, FontManager::get_font(), Shape::get_frame(), Game_window::get_pal(), Vga_file::get_shape(), Shape_frame::get_width(), Game_window::get_width(), Game::gwin, Game::ibuf, Game_window::init_gamedat(), SI_Game::is_installed(), len, Palette::load(), Shape_manager::paint_shape(), U7object::retrieve(), Game::set_avname(), Game::set_avsex(), Game::set_avskin(), shapes, Game_singletons::sman, snprintf, Game::topx, Game::topy, and Game::win.
Here is the call graph for this function:
virtual int BG_Game::get_start_tile_x | ( | ) | [inline, virtual] |
virtual int BG_Game::get_start_tile_y | ( | ) | [inline, virtual] |
void BG_Game::show_journey_failed | ( | ) | [virtual] |
Implements Game.
Definition at line 930 of file bggame.cc.
References Palette::fade_out(), Vga_file::get_shape(), Game::journey_failed_text(), Game::menushapes, Shape_manager::paint_shape(), Game_singletons::pal, Game_singletons::sman, Game::topx, and Game::topy.
Here is the call graph for this function:
bool BG_Game::is_installed | ( | ) | [static] |
Definition at line 1605 of file bggame.cc.
References get_system_path(), and U7exists().
Referenced by ExultMenu::run().
Here is the call graph for this function:
void BG_Game::scene_lord_british | ( | ) | [private] |
Definition at line 285 of file bggame.cc.
References c_fade_in_time, c_fade_out_time, Font::center_text(), Game::centerx, Game::centery, Game_window::clear_screen(), Palette::fade_in(), Palette::fade_out(), fontManager, FontManager::get_font(), Vga_file::get_shape(), Game::gwin, Game::ibuf, Palette::load(), lord_british_shp, Shape_manager::paint_shape(), Game_singletons::pal, shapes, Game_singletons::sman, Game::topx, Game::topy, and wait_delay().
Referenced by play_intro().
Here is the call graph for this function:
void BG_Game::scene_butterfly | ( | ) | [private] |
Definition at line 365 of file bggame.cc.
References bird_song_midi, BUTTERFLY, BUTTERFLY_FLAP, BUTTERFLY_FRAME_DURATION, butterfly_num_coords, butterfly_shp, BUTTERFLY_SUB_FRAMES, butterfly_x, butterfly_y, c_fade_in_time, Font::center_text(), Game::centerx, Game::centery, Image_window::create_buffer(), Palette::fade_in(), fontManager, Ucscript::frame, FontManager::get_font(), Shape_frame::get_height(), Audio::get_ptr(), Vga_file::get_shape(), Shape_frame::get_width(), Game::ibuf, Palette::load(), Shape_manager::paint_shape(), Game_singletons::pal, Game::play_midi(), shapes, Image_window::show(), Game_singletons::sman, Game::ticks, Game::topx, Game::topy, trees_shp, ultima_text_shp, WAITDELAY, and Game::win.
Referenced by play_intro().
Here is the call graph for this function:
void BG_Game::scene_guardian | ( | ) | [private] |
Definition at line 477 of file bggame.cc.
References Palette::apply(), Font::center_text(), Game::centerx, Game::centery, Image_window::create_buffer(), EYES_DIST, Image_buffer::fill_static(), FLASH_SHAPE, fontManager, FORGET_ARRAY, FORGET_OBJECT, FORHEAD_DIST, Image_window::get(), FontManager::get_font(), Shape_frame::get_height(), Game_window::get_height(), Image_window8::get_ib8(), Image_window::get_ibuf(), Audio::get_ptr(), Vga_file::get_shape(), Font::get_text_height(), Shape_frame::get_width(), Game_window::get_width(), Shape_frame::get_xleft(), Shape_frame::get_yabove(), guardian_eyes_shp, guardian_forehead_shp, guardian_midi, guardian_mouth_shp, Game::gwin, INTROSND, Palette::load(), MAINSHP_FLX, Shape_manager::paint_shape(), Game_singletons::pal, Game_window::plasma(), Game::play_midi(), Audio::play_sound_effect(), Audio::playfile(), Image_window::put(), U7object::retrieve(), s, Palette::set_color(), shapes, Image_window::show(), Game_singletons::sman, Audio::stop_music(), Game::ticks, WAITDELAY, WAITDELAYCYCLE, and Game::win.
Referenced by play_intro().
Here is the call graph for this function:
void BG_Game::scene_desk | ( | ) | [private] |
Definition at line 751 of file bggame.cc.
References Palette::apply(), Game::centerx, Game::centery, Game_window::clear_screen(), Image_window::create_buffer(), FORGET_OBJECT, Image_window::get(), Vga_file::get_shape(), Game::gwin, home_song_midi, Palette::load(), Shape_manager::paint_shape(), Game_singletons::pal, Game::play_midi(), Image_window::put(), s, shapes, Image_window::show(), Game_singletons::sman, Game::topx, Game::topy, WAITDELAY, WAITDELAYCYCLE2, and Game::win.
Referenced by play_intro().
Here is the call graph for this function:
void BG_Game::scene_moongate | ( | ) | [private] |
Definition at line 864 of file bggame.cc.
References Palette::apply(), Game::centerx, Game::centery, Game_window::clear_screen(), Audio::get_ptr(), Vga_file::get_shape(), Game::gwin, home_song_midi, Palette::load(), Shape_manager::paint_shape(), Game_singletons::pal, shapes, Image_window::show(), Game_singletons::sman, Game::topy, WAITDELAY, WAITDELAYCYCLE3, and Game::win.
Referenced by play_intro().
Here is the call graph for this function:
Vga_file BG_Game::shapes [private] |
Reimplemented from Game.
Definition at line 44 of file bggame.h.
Referenced by new_game(), scene_butterfly(), scene_desk(), scene_guardian(), scene_lord_british(), and scene_moongate().