#include <menu.h>
Public Member Functions | |
Menu (Screen &scr, Sound *snd) | |
~Menu () | |
void | load_menu_data () |
int | run () |
void | play_menu_music () |
Private Attributes | |
SDL_Event | event |
SDL_Thread * | thread |
Screen | screen |
Sound * | sound |
int | current_selection |
int | current_alpha |
int | alpha_direction |
SDL_Rect | choice_rects [num_menu_choices] |
SDL_Surface * | menu_choices [num_menu_choices][2] |
SDL_Surface * | title |
SDL_Surface * | char_image |
SDL_Rect | menu_rects [num_menu_choices] |
string | sfx |
string | bgm |
Friends | |
class | Sound |
Definition at line 52 of file menu.h.
Definition at line 36 of file menu.cpp.
References alpha_direction, bgm, char_image, current_alpha, current_selection, menu_choices, num_menu_choices, screen, sfx, sound, and title.
void Menu::load_menu_data | ( | ) |
Definition at line 57 of file menu.cpp.
References bgm, char_image, choice_rects, Sound::load_bgm(), makerect(), menu_choices, MENU_DEBUG, sound, and title.
Referenced by run().
int Menu::run | ( | ) |
Definition at line 104 of file menu.cpp.
References alpha_direction, Screen::blank(), Screen::blankblit(), char_image, choice_rects, current_alpha, current_selection, event, Screen::get_height(), Screen::get_width(), load_menu_data(), makerect(), menu_choices, MENU_DEBUG, num_menu_choices, Sound::play_bgm(), Sound::play_sample_name(), screen, sfx, sound, Sound::stop_all(), title, Screen::update_rect(), Screen::update_screen(), and Screen::write().
SDL_Event Menu::event [private] |
SDL_Thread* Menu::thread [private] |
Screen Menu::screen [private] |
Sound* Menu::sound [private] |
int Menu::current_selection [private] |
int Menu::current_alpha [private] |
int Menu::alpha_direction [private] |
SDL_Rect Menu::choice_rects[num_menu_choices] [private] |
SDL_Surface* Menu::menu_choices[num_menu_choices][2] [private] |
SDL_Surface* Menu::title [private] |
SDL_Surface* Menu::char_image [private] |
SDL_Rect Menu::menu_rects[num_menu_choices] [private] |
string Menu::bgm [private] |