#include <subscreenhandler.h>

Public Member Functions | |
| SubScreenHandler () | |
| Constructor. | |
| void | Init (Types::SubScreenMode::mode screen_mode, GameMode::mode game_mode, ScreensHandler *screens_handler) |
| Set the screen mode. | |
| void | SwitchMode (Types::SubScreenMode::mode screen_mode, GameMode::mode game_mode) |
| Switch mode. | |
| void | PrintCard (const Card &card) |
| Print a card. | |
| void | PrintBoards (int score, int accuracy) |
| Print the score and accuracy. | |
| void | PrintTick (int position) |
| Print a tick. | |
| void | PrintCross (int position) |
| Print a cross. | |
| void | PrintScreen (std::string kanji1, std::string kanji2, std::string kanji3, std::string kanji4, int score, int answers) |
| Kanjis text. | |
| void | PrintOptions (unsigned grade_min, unsigned grade_max, unsigned strokes_min, unsigned strokes_max, bool romaji_conversion) |
| Print the number of grades, strokes and romaji conversion. | |
| void | PrintOptions (bool romaji_conversion) |
| Print the romaji conversion. | |
| void | DrawBgImage () |
| Shows the background image of the screen in the current mode. | |
| void | Fill (unsigned short color) |
| Fill the screen with a color. | |
| ~SubScreenHandler () | |
| Destructor. | |
Private Member Functions | |
| void | SetMode (Types::SubScreenMode::mode screen_mode, GameMode::mode game_mode, ScreensHandler *screens_handler) |
| Set the mode. | |
| const unsigned int * | GetBitmapPtr () |
| Get actual mode bitmap image pointer. | |
| const unsigned short * | GetPalPtr () |
| Get actual mode palette image pointer. | |
| void | ClearMembers () |
| Delete all members. | |
Private Attributes | |
| ScreensHandler * | screens_handler_ |
| Base screens handler. | |
| Types::SubScreenMode::mode | screen_mode_ |
| Screen mode. | |
| TextBox * | card_number_ |
| Card number. | |
| TextBox * | scoreboard_ |
| Scoreboard. | |
| TextBox * | accuracy_ |
| Right answer percentage. | |
| TextBox * | box1_ |
| Box 1. | |
| TextBox * | box2_ |
| Box 2. | |
| TextBox * | box3_ |
| Box 3. | |
| TextBox * | box4_ |
| Box 4. | |
| TextBox * | mode_title_ |
| Mode title. | |
| TextBox * | caption_grade_ |
| Options grade text. | |
| TextBox * | caption_strokes_ |
| Options strokes text. | |
| TextBox * | caption_romaji_ |
| Options romaji conversion text. | |
| TextBox * | grade_min_ |
| Options minimum grade box. | |
| TextBox * | grade_max_ |
| Options maximum grade box. | |
| TextBox * | strokes_min_ |
| Options minimum strokes box. | |
| TextBox * | strokes_max_ |
| Options maximum strokes box. | |
| TextBox * | romaji_checkbox_ |
| Options romaji conversion checkbox. | |
| unsigned | prev_grade_min_ |
| Previous grade minimum. | |
| unsigned | prev_grade_max_ |
| Previous grade maximum. | |
| unsigned | prev_strokes_min_ |
| Previous strokes minimum. | |
| unsigned | prev_strokes_max_ |
| Previous strokes maximum. | |
| bool | romaji_conversion_ |
| Romaji conversion. | |
| GameMode::mode | game_mode_ |
| Game mode. | |
| int | bgid_ |
| Background id. | |
Definition at line 30 of file subscreenhandler.h.
| void SubScreenHandler::Init | ( | Types::SubScreenMode::mode | screen_mode, | |
| GameMode::mode | game_mode, | |||
| ScreensHandler * | screens_handler | |||
| ) |
Set the screen mode.
| screen_mode | Mode of the screen | |
| game_mode | Game mode | |
| screens_handler | Already created and initialized screens handler |
Definition at line 83 of file subscreenhandler.cpp.
Referenced by DSMemorizer::Init().
| void SubScreenHandler::SetMode | ( | Types::SubScreenMode::mode | screen_mode, | |
| GameMode::mode | game_mode, | |||
| ScreensHandler * | screens_handler | |||
| ) | [private] |
Set the mode.
| screen_mode | Mode of the screen | |
| game_mode | Game mode | |
| screens_handler | Already created and initialized screens handler |
Definition at line 104 of file subscreenhandler.cpp.
Referenced by Init(), and SwitchMode().
| void SubScreenHandler::SwitchMode | ( | Types::SubScreenMode::mode | screen_mode, | |
| GameMode::mode | game_mode | |||
| ) |
Switch mode.
| screen_mode | Mode of the screen | |
| game_mode | Game mode |
Definition at line 92 of file subscreenhandler.cpp.
Referenced by DSMemorizer::Init(), DSMemorizer::KanjiMode(), DSMemorizer::KanjiQuizMode(), DSMemorizer::SetOptions(), DSMemorizer::VocabularyMode(), and DSMemorizer::VocabularyQuizMode().
1.5.8