Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
CardRecord Struct Reference

The turns of a round, in which the sides play cards one after the other (CARDGAME_playRounds), and the battle menu (CardBattle.record) More...

#include <cardgame/card_battle/battle.h>

Collaboration diagram for CardRecord:
[legend]

Data Fields

u8 menuState
 CARDGAME_runBattleMenu's state.
 
u8 menuCursor
 CARDGAME_runBattleMenu's cursor, 0-4.
 
u8 pad2 [0xA]
 never read or written
 
u8 turnState
 CARDGAME_playRounds' state.
 
s8 playCount
 the plays in use
 
u8 turns
 the turns of plays this round
 
u8 passes
 the turns with no card played: two end the plays
 
u8 starter
 the side that starts the round
 
u8 turnSide
 the side whose turn it is
 
s8 answer
 a step's result: -1 while waiting, then 0 or 1
 
s32 waitTime
 
CardPlay plays [3]
 the cards played this turn, up to three
 
u8 pad30 [4]
 never read or written: CardBattle.sides follows 0x34 bytes after the record
 

Detailed Description

The turns of a round, in which the sides play cards one after the other (CARDGAME_playRounds), and the battle menu (CardBattle.record)

Definition at line 125 of file battle.h.

Field Documentation

◆ menuState

u8 CardRecord::menuState

CARDGAME_runBattleMenu's state.

Definition at line 126 of file battle.h.

Referenced by answerQuitQuestion(), CARDGAME_runBattleMenu(), CARDGAME_stepChooseCards(), hideForMenu(), moveMenuCursor(), and openMenuChoice().

◆ menuCursor

u8 CardRecord::menuCursor

CARDGAME_runBattleMenu's cursor, 0-4.

Definition at line 127 of file battle.h.

Referenced by CARDGAME_runBattleMenu(), moveMenuCursor(), and openMenuChoice().

◆ pad2

u8 CardRecord::pad2[0xA]

never read or written

Definition at line 128 of file battle.h.

◆ turnState

u8 CardRecord::turnState

◆ playCount

◆ turns

u8 CardRecord::turns

the turns of plays this round

Definition at line 131 of file battle.h.

Referenced by startNextTurn().

◆ passes

u8 CardRecord::passes

the turns with no card played: two end the plays

Definition at line 132 of file battle.h.

Referenced by CARDGAME_playRounds(), playComputerTurn(), playPlayerTurn(), startNextTurn(), startPlay(), and startRounds().

◆ starter

u8 CardRecord::starter

the side that starts the round

Definition at line 133 of file battle.h.

Referenced by startNextTurn(), startPlay(), and startRounds().

◆ turnSide

◆ answer

s8 CardRecord::answer

a step's result: -1 while waiting, then 0 or 1

Definition at line 135 of file battle.h.

Referenced by answerHandCardPick(), answerOnceDone(), answerTableCardPick(), answerYesNo(), CARDGAME_playRounds(), playPlayerTurn(), startPlay(), and takePickedCard().

◆ waitTime

s32 CardRecord::waitTime

Definition at line 136 of file battle.h.

Referenced by CARDGAME_playRounds(), playComputerTurn(), and playPlayerTurn().

◆ plays

◆ pad30

u8 CardRecord::pad30[4]

never read or written: CardBattle.sides follows 0x34 bytes after the record

Definition at line 138 of file battle.h.


The documentation for this struct was generated from the following file: