SubScreenHandler Class Reference

Handler for the subscreen. More...

#include <subscreenhandler.h>

Collaboration diagram for SubScreenHandler:

Collaboration graph
[legend]

List of all members.

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

ScreensHandlerscreens_handler_
 Base screens handler.
Types::SubScreenMode::mode screen_mode_
 Screen mode.
TextBoxcard_number_
 Card number.
TextBoxscoreboard_
 Scoreboard.
TextBoxaccuracy_
 Right answer percentage.
TextBoxbox1_
 Box 1.
TextBoxbox2_
 Box 2.
TextBoxbox3_
 Box 3.
TextBoxbox4_
 Box 4.
TextBoxmode_title_
 Mode title.
TextBoxcaption_grade_
 Options grade text.
TextBoxcaption_strokes_
 Options strokes text.
TextBoxcaption_romaji_
 Options romaji conversion text.
TextBoxgrade_min_
 Options minimum grade box.
TextBoxgrade_max_
 Options maximum grade box.
TextBoxstrokes_min_
 Options minimum strokes box.
TextBoxstrokes_max_
 Options maximum strokes box.
TextBoxromaji_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.


Detailed Description

Handler for the subscreen.

Definition at line 30 of file subscreenhandler.h.


Member Function Documentation

void SubScreenHandler::Init ( Types::SubScreenMode::mode  screen_mode,
GameMode::mode  game_mode,
ScreensHandler screens_handler 
)

Set the screen mode.

Parameters:
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.

Parameters:
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.

Parameters:
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().


The documentation for this class was generated from the following files:

Generated on Fri Oct 2 10:25:29 2009 for DSMemorizer by  doxygen 1.5.8