#include <mainscreenhandler.h>

Public Member Functions | |
| MainScreenHandler () | |
| Constructor. | |
| void | Init (Types::MainScreenMode::mode screen_mode, GameMode::mode game_mode, ScreensHandler *screens_handler, int boxes_number=0) |
| Set the screen mode. | |
| void | SwitchMode (Types::MainScreenMode::mode screen_mode, GameMode::mode game_mode, int boxes_number=0) |
| Switch mode. | |
| void | Captions (std::string box1, std::string box2, std::string box3) |
| Set the boxes captions. | |
| void | PrintCard (const Card &card, bool convert_to_romaji=false) |
| Print a card. | |
| void | Scroll (int sx, int sy) |
| Scrolls the screen. | |
| bool | ViewNext () |
| void | DrawBgImage () |
| Shows the background image of the screen in the current mode. | |
| void | Fill (unsigned short color) |
| Fill the screen with a color. | |
| ~MainScreenHandler () | |
| Destructor. | |
Private Member Functions | |
| void | SetMode (Types::MainScreenMode::mode screen_mode, GameMode::mode game_mode, ScreensHandler *screens_handler, int boxes_number) |
| Set the mode. | |
| void | ResetTextBoxesPositions () |
| Reset all the textboxes positions. | |
| void | ClearMembers () |
| Delete all members. | |
Private Attributes | |
| ScreensHandler * | screens_handler_ |
| Base screens handler. | |
| Types::MainScreenMode::mode | screen_mode_ |
| Mode of the screen. | |
| TextBox * | kanji_ |
| Kanji. | |
| TextBox * | on_reading_ |
| On reading. | |
| TextBox * | kun_reading_ |
| Kun reading. | |
| TextBox * | translation_ |
| Translation. | |
| TextBox * | example_kanji_ |
| Example in kanjis. | |
| TextBox * | example_reading_ |
| Reading of the example. | |
| TextBox * | example_translation_ |
| Translation of the example. | |
| TextBox * | caption_kanji_ |
| Kanji caption. | |
| TextBox * | caption_on_reading_ |
| On reading caption. | |
| TextBox * | caption_kun_reading_ |
| Kun reading caption. | |
| TextBox * | caption_translation_ |
| Translation caption. | |
| TextBox * | caption_example_ |
| Example caption. | |
| TextBox * | box1_ |
| Box 1 text. | |
| TextBox * | box2_ |
| Box 2 text. | |
| TextBox * | box3_ |
| Box 3 text. | |
| TextBox * | caption_box1_ |
| Box 1 caption text. | |
| TextBox * | caption_box2_ |
| Box 2 caption text. | |
| TextBox * | caption_box3_ |
| Box 3 caption text. | |
| int | scroll_y_ |
| Vertical scroll. | |
| int | boxes_number_ |
| number of boxes [0-3] | |
| GameMode::mode | game_mode_ |
| Game mode. | |
| int | bgid_ |
| Background id. | |
Definition at line 30 of file mainscreenhandler.h.
| void MainScreenHandler::Init | ( | Types::MainScreenMode::mode | screen_mode, | |
| GameMode::mode | game_mode, | |||
| ScreensHandler * | screens_handler, | |||
| int | boxes_number = 0 | |||
| ) |
Set the screen mode.
| screen_mode | Mode of the screen | |
| game_mode | Game mode | |
| screens_handler | Already created and initialized screens handler | |
| boxes_number | Number of text boxes to be used [0-3]. |
Definition at line 48 of file mainscreenhandler.cpp.
Referenced by DSMemorizer::Init().
| void MainScreenHandler::SetMode | ( | Types::MainScreenMode::mode | screen_mode, | |
| GameMode::mode | game_mode, | |||
| ScreensHandler * | screens_handler, | |||
| int | boxes_number | |||
| ) | [private] |
Set the mode.
| screen_mode | Mode of the screen | |
| game_mode | Game mode | |
| screens_handler | Already created and initialized screens handler | |
| boxes_number | Number of text boxes to be used [0-3]. |
Definition at line 75 of file mainscreenhandler.cpp.
Referenced by Init(), and SwitchMode().
| void MainScreenHandler::SwitchMode | ( | Types::MainScreenMode::mode | screen_mode, | |
| GameMode::mode | game_mode, | |||
| int | boxes_number = 0 | |||
| ) |
Switch mode.
| screen_mode | Mode of the screen | |
| game_mode | Game mode | |
| boxes_number | Number of text boxes to be used [0-3]. |
Definition at line 61 of file mainscreenhandler.cpp.
Referenced by DSMemorizer::Init(), DSMemorizer::KanjiMode(), DSMemorizer::KanjiQuizMode(), DSMemorizer::VocabularyMode(), and DSMemorizer::VocabularyQuizMode().
| bool MainScreenHandler::ViewNext | ( | ) |
Shows the next invisible box
Definition at line 307 of file mainscreenhandler.cpp.
Referenced by DSMemorizer::KanjiMode(), and DSMemorizer::VocabularyMode().
1.5.8