Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
questions.c File Reference

CARDGAME's step windows, the yes/no question and the card info. More...

Include dependency graph for questions.c:

Go to the source code of this file.

Functions

s16 CARDGAME_getStepWindowPos (s32 a, s32 b, s32 c)
 A position of CARDGAME_stepWindowPositions.
 
s32 CARDGAME_openStepWindows (CardBattle *battle, CardScreen *screen, s32 layout, s32 text, s32 time, s32 step)
 Opens the windows of the step CARDGAME_windowSteps[step] once its time is past; the next step.
 
void CARDGAME_startQuestion (CardBattle *battle, CardScreen *screen, s32 value)
 Opens the panels and asks message value; the European and Japanese versions start on the second choice when none of the player's hand can be played.
 
static void readYesNoInput (CardBattle *battle, CardScreen *screen)
 The yes/no window's buttons: cross answers, triangle answers the second choice, up and down change the choice, L1 or R1 moves the window and circle opens the battle menu.
 
static void hideForMenu (CardBattle *battle, CardScreen *screen)
 Closes the panels and opens the battle menu once they are closed.
 
static void showAfterMenu (CardBattle *battle, CardScreen *screen)
 Back from the battle menu: reopens the yes/no window once the panels are open again.
 
s32 CARDGAME_stepYesNo (CardBattle *battle, CardScreen *screen)
 Runs the yes/no window that CARDGAME_startQuestion sets up: 1 for the first choice, 2 for the second, 0 until then.
 
void CARDGAME_clearCardInfo (CardBattle *battle, CardScreen *screen)
 Empties the card information windows 1-4.
 
void CARDGAME_showCardInfo (CardBattle *battle, CardScreen *screen, s32 offset)
 Fills the information windows with the card of sprite offset + effectStep.cursor (the highlighted one): its colour, name, picture or values, and kind.
 
void CARDGAME_showTableCardInfo (CardBattle *battle, CardScreen *screen, s32 kind)
 CARDGAME_showCardInfo for the highlighted card of a row (kind 0, 1 or 2, as CARDGAME_moveTableHighlight)
 

Detailed Description

CARDGAME's step windows, the yes/no question and the card info.

Definition in file questions.c.

Function Documentation

◆ CARDGAME_getStepWindowPos()

s16 CARDGAME_getStepWindowPos ( s32  a,
s32  b,
s32  c 
)

A position of CARDGAME_stepWindowPositions.

Definition at line 6 of file questions.c.

Referenced by CARDGAME_openStepWindows().

Here is the caller graph for this function:

◆ CARDGAME_openStepWindows()

s32 CARDGAME_openStepWindows ( CardBattle *  battle,
CardScreen *  screen,
s32  layout,
s32  text,
s32  time,
s32  step 
)

Opens the windows of the step CARDGAME_windowSteps[step] once its time is past; the next step.

Definition at line 15 of file questions.c.

Referenced by CARDGAME_chooseCard(), CARDGAME_pickTableCard(), CARDGAME_stepChooseCards(), CARDGAME_stepPlayCard(), and CARDGAME_viewTable().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CARDGAME_startQuestion()

void CARDGAME_startQuestion ( CardBattle *  battle,
CardScreen *  screen,
s32  value 
)

Opens the panels and asks message value; the European and Japanese versions start on the second choice when none of the player's hand can be played.

Definition at line 44 of file questions.c.

Referenced by startEffectStep().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readYesNoInput()

static void readYesNoInput ( CardBattle *  battle,
CardScreen *  screen 
)
inlinestatic

The yes/no window's buttons: cross answers, triangle answers the second choice, up and down change the choice, L1 or R1 moves the window and circle opens the battle menu.

< SYSTEM02: a cursor moves

Definition at line 86 of file questions.c.

Referenced by CARDGAME_stepYesNo().

Here is the caller graph for this function:

◆ hideForMenu()

static void hideForMenu ( CardBattle *  battle,
CardScreen *  screen 
)
inlinestatic

Closes the panels and opens the battle menu once they are closed.

Definition at line 114 of file questions.c.

Referenced by CARDGAME_stepYesNo().

Here is the caller graph for this function:

◆ showAfterMenu()

static void showAfterMenu ( CardBattle *  battle,
CardScreen *  screen 
)
inlinestatic

Back from the battle menu: reopens the yes/no window once the panels are open again.

Definition at line 134 of file questions.c.

Referenced by CARDGAME_stepYesNo().

Here is the caller graph for this function:

◆ CARDGAME_stepYesNo()

s32 CARDGAME_stepYesNo ( CardBattle *  battle,
CardScreen *  screen 
)

Runs the yes/no window that CARDGAME_startQuestion sets up: 1 for the first choice, 2 for the second, 0 until then.

Definition at line 155 of file questions.c.

Referenced by answerYesNo().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CARDGAME_clearCardInfo()

void CARDGAME_clearCardInfo ( CardBattle *  battle,
CardScreen *  screen 
)

Empties the card information windows 1-4.

Definition at line 236 of file questions.c.

Referenced by CARDGAME_setupCardChoice(), CARDGAME_showCardInfo(), CARDGAME_startHandPick(), CARDGAME_startPick(), setUpPickState(), setUpViewState(), and startTableRow().

Here is the caller graph for this function:

◆ CARDGAME_showCardInfo()

void CARDGAME_showCardInfo ( CardBattle *  battle,
CardScreen *  screen,
s32  offset 
)

Fills the information windows with the card of sprite offset + effectStep.cursor (the highlighted one): its colour, name, picture or values, and kind.

Definition at line 246 of file questions.c.

Referenced by backToChoosing(), CARDGAME_chooseCard(), CARDGAME_pickTableCard(), CARDGAME_showTableCardInfo(), CARDGAME_stepChooseCards(), and CARDGAME_viewTable().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CARDGAME_showTableCardInfo()

void CARDGAME_showTableCardInfo ( CardBattle *  battle,
CardScreen *  screen,
s32  kind 
)

CARDGAME_showCardInfo for the highlighted card of a row (kind 0, 1 or 2, as CARDGAME_moveTableHighlight)

Definition at line 308 of file questions.c.

Referenced by browseOpponentRow(), browseOwnRow(), browsePlayedRow(), pickInOpponentRow(), and pickInOwnRow().

Here is the call graph for this function:
Here is the caller graph for this function: