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

CARDGAME's deck choice: the decks' windows and the marker on the one selected. More...

Include dependency graph for deck_choice.c:

Go to the source code of this file.

Functions

void CARDGAME_drawMarker (CardMarker *marker)
 Draws the deck marker at its size, cycling its palettes (or running through them once when fast)
 
void CARDGAME_updateMarker (CardMarker *marker)
 The deck marker's task: opens by growing over 10 frames, stays until closed, then shrinks and is drawn every frame.
 
void CARDGAME_setMarkerPos (CardMarker *marker, s16 x, s16 y)
 CardMarker.setPos: moves the marker to x, y.
 
void CARDGAME_setMarkerFast (CardMarker *marker)
 CardMarker.setFast: runs its palettes once from the start (the deck was picked)
 
void CARDGAME_closeMarker (CardMarker *marker)
 CardMarker.close: shrinks it over 5 frames.
 
CardMarker * CARDGAME_createMarker (s16 x, s16 y)
 Creates the deck marker at x, y, which shows the selected deck window.
 
void CARDGAME_drawDeckWindow (CardDeckWindow *window)
 Draws a deck window's frame and icon at its size, the icon running through its palettes once when it blinks.
 
void CARDGAME_updateDeckWindow (CardDeckWindow *window, TextWindow **texts)
 A deck window's task: makes its name and colour counts, opens by widening over 12 frames, shows them while open, and closes by narrowing.
 
void CARDGAME_setDeckWindowBlink (CardDeckWindow *window)
 CardDeckWindow.setBlink: blinks its icon (the deck was picked)
 
void CARDGAME_closeDeckWindow (CardDeckWindow *window)
 CardDeckWindow.close: narrows it over 6 frames.
 
CardDeckWindow * CARDGAME_createDeckWindow (s32 deck, s32 x, s32 y)
 Creates the window of deck deck at x, y, with how many cards of each colour it has.
 

Detailed Description

CARDGAME's deck choice: the decks' windows and the marker on the one selected.

Definition in file deck_choice.c.

Function Documentation

◆ CARDGAME_drawMarker()

void CARDGAME_drawMarker ( CardMarker *  marker)

Draws the deck marker at its size, cycling its palettes (or running through them once when fast)

Definition at line 8 of file deck_choice.c.

Referenced by CARDGAME_updateMarker().

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

◆ CARDGAME_updateMarker()

void CARDGAME_updateMarker ( CardMarker *  marker)

The deck marker's task: opens by growing over 10 frames, stays until closed, then shrinks and is drawn every frame.

Definition at line 34 of file deck_choice.c.

Referenced by CARDGAME_createMarker().

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

◆ CARDGAME_setMarkerPos()

void CARDGAME_setMarkerPos ( CardMarker *  marker,
s16  x,
s16  y 
)

CardMarker.setPos: moves the marker to x, y.

Definition at line 77 of file deck_choice.c.

Referenced by CARDGAME_createMarker().

Here is the caller graph for this function:

◆ CARDGAME_setMarkerFast()

void CARDGAME_setMarkerFast ( CardMarker *  marker)

CardMarker.setFast: runs its palettes once from the start (the deck was picked)

Definition at line 84 of file deck_choice.c.

Referenced by CARDGAME_createMarker().

Here is the caller graph for this function:

◆ CARDGAME_closeMarker()

void CARDGAME_closeMarker ( CardMarker *  marker)

CardMarker.close: shrinks it over 5 frames.

Definition at line 90 of file deck_choice.c.

Referenced by CARDGAME_createMarker().

Here is the caller graph for this function:

◆ CARDGAME_createMarker()

CardMarker * CARDGAME_createMarker ( s16  x,
s16  y 
)

Creates the deck marker at x, y, which shows the selected deck window.

Definition at line 98 of file deck_choice.c.

Referenced by CARDGAME_chooseDeck().

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

◆ CARDGAME_drawDeckWindow()

void CARDGAME_drawDeckWindow ( CardDeckWindow *  window)

Draws a deck window's frame and icon at its size, the icon running through its palettes once when it blinks.

Definition at line 112 of file deck_choice.c.

Referenced by CARDGAME_updateDeckWindow().

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

◆ CARDGAME_updateDeckWindow()

void CARDGAME_updateDeckWindow ( CardDeckWindow *  window,
TextWindow **  texts 
)

A deck window's task: makes its name and colour counts, opens by widening over 12 frames, shows them while open, and closes by narrowing.

Definition at line 144 of file deck_choice.c.

Referenced by CARDGAME_createDeckWindow().

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

◆ CARDGAME_setDeckWindowBlink()

void CARDGAME_setDeckWindowBlink ( CardDeckWindow *  window)

CardDeckWindow.setBlink: blinks its icon (the deck was picked)

Definition at line 211 of file deck_choice.c.

Referenced by CARDGAME_createDeckWindow().

Here is the caller graph for this function:

◆ CARDGAME_closeDeckWindow()

void CARDGAME_closeDeckWindow ( CardDeckWindow *  window)

CardDeckWindow.close: narrows it over 6 frames.

Definition at line 217 of file deck_choice.c.

Referenced by CARDGAME_createDeckWindow().

Here is the caller graph for this function:

◆ CARDGAME_createDeckWindow()

CardDeckWindow * CARDGAME_createDeckWindow ( s32  deck,
s32  x,
s32  y 
)

Creates the window of deck deck at x, y, with how many cards of each colour it has.

Definition at line 226 of file deck_choice.c.

Referenced by CARDGAME_chooseDeck(), and openDeckWindow().

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