src/subscreenhandler.cpp File Reference

Handler for the subscreen. More...

#include <nds.h>
#include "definitions.h"
#include "card.h"
#include "textbox.h"
#include "textboxhandler.h"
#include "screenshandler.h"
#include "subscreenhandler.h"
#include "graphics.h"

Include dependency graph for subscreenhandler.cpp:

Go to the source code of this file.

Functions

int x_position (int position)
 Returns the position for the tick or cross on the kanji number 'position'.
int y_position (int position)
int randomize_positions (int card_index, int package_records, int &card0, int &card1, int &card2, int &card3)


Detailed Description

Handler for the subscreen.

Definition in file subscreenhandler.cpp.


Function Documentation

int randomize_positions ( int  card_index,
int  package_records,
int &  card0,
int &  card1,
int &  card2,
int &  card3 
)

Calculates 4 random cards including the correct one given by card_index.

Returns:
The correct card position

Definition at line 538 of file subscreenhandler.cpp.

Referenced by DSMemorizer::KanjiQuizMode(), and DSMemorizer::VocabularyQuizMode().

int y_position ( int  position  )  [inline]

Returns the position for the tick or cross on the kanji word number 'position'

Definition at line 51 of file subscreenhandler.cpp.

Referenced by SubScreenHandler::PrintCross(), and SubScreenHandler::PrintTick().


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