|
Digimon World 3 decomp
The European version, SLES_039.36
|
CARDGAME's third object's data, which the second object's functions use too. More...
#include "cardgame/card_battle.h"Go to the source code of this file.
Variables | |
| RECT | CARDGAME_screenRect = {0, 0, 320 , 240 } |
| The data: the rest of the overlay's, this object's tables and the variables, which the second object shares. | |
| CardOffset | CARDGAME_deckCountOffsets [] |
| where the deck window's six counts are | |
| s32 | CARDGAME_slotRowPositions [2][4] |
| sprite positions, by SHIFT_PAL_SCREEN | |
| CardOffset | CARDGAME_gaugePositions [] |
| where the three CardGauge gauges are | |
| CardWindowLayout | CARDGAME_windowLayouts [] |
| u16 | CARDGAME_windowTextOffsets [] |
| a window's text x, by CARDGAME_drawWindowText's index | |
| s32 | CARDGAME_messageWindowPositions [][2] = {{0, 138}, {0, 96}, {0, 50}, {0, 96}} |
| the message window's places (x, y), by CardScreen.message.place | |
| CardPanelLayout | CARDGAME_panelLayouts [2] |
| the panels' layouts, by side | |
| u8 | CARDGAME_panelLightCluts [8] = {0, 1, 2, 3, 2, 1, 0, 0} |
| the clut rows of the panel's blinking lights: 0, 1, 2, 3, 2, 1 | |
| u8 | CARDGAME_panelBarSprites [8][2] |
| the sprites of the panel's two bars, by LANGUAGE (USA: 1) | |
| u8 | CARDGAME_flag7Frames [] |
| the frames of the panel's sprites for flags 7, 6 and 5 and its five flag icons (CARDGAME_flagIconSprites), when the flag is set: 0, 1, 2, 1, 0 | |
| u8 | CARDGAME_flag6Frames [] |
| u8 | CARDGAME_boxFrames [] |
| u8 | CARDGAME_flagIconSprites [] |
| the sprites of the panel's five flag icons | |
| u8 | CARDGAME_flagIconFrames [] |
| CardOffset | CARDGAME_panelIconPositions [2][2][2] |
| CARDGAME_drawPanelIcon's icon and label positions, by SHIFT_PAL_SCREEN and side (EU) | |
| s16 | CARDGAME_shakeOffsets [] |
| CARDGAME_shakeSprite's x offsets, by time. | |
| s16 | CARDGAME_jitterOffsets [] |
| CARDGAME_jitterSprite's x and y offsets. | |
| s32 | CARDGAME_pictureSheet [] |
| the sprite sheet CARDGAME_drawCardPicture draws a card's picture with | |
| u8 | CARDGAME_loopFrames [] |
| the frames of a sprite's effect 1, which loops | |
| u8 | CARDGAME_onceFrames [] |
| the frames of its effect 2, which plays once | |
| u8 | CARDGAME_highlightCluts [] |
| a palette cycle: 0, 1, 2, 3, 2, 1 | |
| s16 | CARDGAME_otherCards [] |
| the 100 cards whose images CARDGAME_loadCardImages loads after the decks (CARDGAME_getOtherCard) | |
| s16 | CARDGAME_commonCards [] |
| the cards everyone has, after the two decks in the card list | |
| CardFileEntry | CARDGAME_preloadFiles [] |
| s16 | CARDGAME_countingCards [] |
| five card ids, minus one | |
| s16 | CARDGAME_prizeItems [] |
| the item an opponent gives for a win (CardBattle.prize), by its CardOpponent.prize | |
| u16 | CARDGAME_defaultDeck [] |
| the deck used when the chosen one is empty: its first 40 cards, as card ids - 1 (CardBattle.playerDeck); nothing reads the 40 after them | |
| CardFadeColor | CARDGAME_fadeColors [] |
| CARDGAME_startStepFade's fade colours and blends, by fade - 1. | |
| s16 | CARDGAME_animPiles [7][2] = {{0, 0}, {1, 1}, {1, 2}, {1, 0}, {0, 1}, {0, 2}, {0, 0}} |
| the side and pile CARDGAME_updateCardAnims passes to CARDGAME_layOutPile | |
| CardOffset | CARDGAME_deckWindowPos [3] = {{0x17, 0x50}, {0x17, 0x7D}, {0x17, 0xAA}} |
| the three deck windows | |
| u8 | CARDGAME_turnStates [] |
| the next record.turnState state, by step and side | |
| CardBattleMessage | CARDGAME_battleMessages [] |
| the step and nextPhase of CARDGAME_startBattleMessage, by prevPhase | |
| CardOffset | CARDGAME_playedCardPos [2][2] = {{{0x82, 0xBF}, {0x82, 0x1D}}, {{0x82, 0xCB}, {0x82, 0x11}}} |
| then the same moved for SHIFT_PAL_SCREEN | |
| RECT | CARDGAME_fadeRect = {0, -15, 320, 260} |
| s32 | CARDGAME_promptText = 0 |
| the text of window 0 | |
| s16 | CARDGAME_savedPanelScales [2] = {0, 0} |
| the panels' scale states, kept by CARDGAME_viewTable | |
| s32 | CARDGAME_selectionText = 0 |
| the message of CARDGAME_chooseCard's selection | |
| u8 | CARDGAME_slotMoves [2][6][2] = {{{0}}} |
| per side, the slot moves (from, to) of CARDGAME_removeMarkedSlots | |
| u8 | CARDGAME_slotMoveCounts [8] = {0} |
| per side, the entries of CARDGAME_slotMoves; bytes 2 and 3 are CARDGAME_markedCounts, the marked slots (config/<version>/ undefined_syms_cardgame.txt), and the rest is not used. | |
| CardMessageWindow | CARDGAME_savedScreenState = {0} |
CARDGAME's third object's data, which the second object's functions use too.
Definition in file cardgame_3.c.
| RECT CARDGAME_screenRect = {0, 0, 320 , 240 } |
The data: the rest of the overlay's, this object's tables and the variables, which the second object shares.
The functions and data the overlay's files share.
Definition at line 8 of file cardgame_3.c.
Referenced by CARDGAME_updateScene().
| CardOffset CARDGAME_deckCountOffsets[] |
where the deck window's six counts are
The functions and data the overlay's files share.
Definition at line 10 of file cardgame_3.c.
Referenced by CARDGAME_updateDeckWindow().
| s32 CARDGAME_slotRowPositions[2][4] |
sprite positions, by SHIFT_PAL_SCREEN
Definition at line 14 of file cardgame_3.c.
Referenced by CARDGAME_dealHands(), CARDGAME_flipSlotCard(), CARDGAME_layOutSlots(), CARDGAME_moveSlotCard(), CARDGAME_removeMarkedSlots(), CARDGAME_stepAttack(), dealNextCards(), and showPlayedCard().
| CardOffset CARDGAME_gaugePositions[] |
where the three CardGauge gauges are
Definition at line 20 of file cardgame_3.c.
Referenced by CARDGAME_drawGauge().
| CardWindowLayout CARDGAME_windowLayouts[] |
Definition at line 23 of file cardgame_3.c.
Referenced by CARDGAME_drawWindowFrame(), and drawWindowCount().
| u16 CARDGAME_windowTextOffsets[] |
a window's text x, by CARDGAME_drawWindowText's index
Definition at line 27 of file cardgame_3.c.
Referenced by CARDGAME_drawWindowText().
| s32 CARDGAME_messageWindowPositions[][2] = {{0, 138}, {0, 96}, {0, 50}, {0, 96}} |
the message window's places (x, y), by CardScreen.message.place
Definition at line 30 of file cardgame_3.c.
Referenced by CARDGAME_updateMessageWindow(), showMessagePrompt(), and showMessageText().
| CardPanelLayout CARDGAME_panelLayouts[2] |
the panels' layouts, by side
Definition at line 31 of file cardgame_3.c.
Referenced by CARDGAME_drawPanel(), and drawPanelParts().
| u8 CARDGAME_panelLightCluts[8] = {0, 1, 2, 3, 2, 1, 0, 0} |
the clut rows of the panel's blinking lights: 0, 1, 2, 3, 2, 1
Definition at line 39 of file cardgame_3.c.
Referenced by CARDGAME_drawPanel().
| u8 CARDGAME_panelBarSprites[8][2] |
the sprites of the panel's two bars, by LANGUAGE (USA: 1)
Definition at line 40 of file cardgame_3.c.
Referenced by CARDGAME_drawPanel().
| u8 CARDGAME_flag7Frames[] |
the frames of the panel's sprites for flags 7, 6 and 5 and its five flag icons (CARDGAME_flagIconSprites), when the flag is set: 0, 1, 2, 1, 0
Definition at line 44 of file cardgame_3.c.
Referenced by drawPanelParts().
| u8 CARDGAME_flag6Frames[] |
Definition at line 47 of file cardgame_3.c.
Referenced by drawPanelParts().
| u8 CARDGAME_boxFrames[] |
Definition at line 50 of file cardgame_3.c.
Referenced by drawPanelParts().
| u8 CARDGAME_flagIconSprites[] |
the sprites of the panel's five flag icons
Definition at line 53 of file cardgame_3.c.
Referenced by drawPanelParts().
| u8 CARDGAME_flagIconFrames[] |
Definition at line 56 of file cardgame_3.c.
Referenced by drawPanelParts().
| CardOffset CARDGAME_panelIconPositions[2][2][2] |
CARDGAME_drawPanelIcon's icon and label positions, by SHIFT_PAL_SCREEN and side (EU)
Definition at line 60 of file cardgame_3.c.
Referenced by CARDGAME_drawPanelIcon().
| s16 CARDGAME_shakeOffsets[] |
CARDGAME_shakeSprite's x offsets, by time.
Definition at line 65 of file cardgame_3.c.
Referenced by CARDGAME_shakeSprite().
| s16 CARDGAME_jitterOffsets[] |
CARDGAME_jitterSprite's x and y offsets.
Definition at line 68 of file cardgame_3.c.
Referenced by CARDGAME_jitterSprite().
| s32 CARDGAME_pictureSheet[] |
the sprite sheet CARDGAME_drawCardPicture draws a card's picture with
Definition at line 71 of file cardgame_3.c.
Referenced by CARDGAME_drawCardPicture().
| u8 CARDGAME_loopFrames[] |
the frames of a sprite's effect 1, which loops
Definition at line 76 of file cardgame_3.c.
Referenced by CARDGAME_drawSpriteEffect().
| u8 CARDGAME_onceFrames[] |
the frames of its effect 2, which plays once
Definition at line 79 of file cardgame_3.c.
Referenced by CARDGAME_drawSpriteEffect().
| u8 CARDGAME_highlightCluts[] |
a palette cycle: 0, 1, 2, 3, 2, 1
Definition at line 82 of file cardgame_3.c.
Referenced by CARDGAME_drawSpriteHighlights().
| s16 CARDGAME_otherCards[] |
the 100 cards whose images CARDGAME_loadCardImages loads after the decks (CARDGAME_getOtherCard)
Definition at line 85 of file cardgame_3.c.
Referenced by CARDGAME_getOtherCard().
| s16 CARDGAME_commonCards[] |
the cards everyone has, after the two decks in the card list
the cards everyone has, loaded after the two decks
Definition at line 101 of file cardgame_3.c.
Referenced by CARDGAME_loadCardImages().
| CardFileEntry CARDGAME_preloadFiles[] |
Definition at line 112 of file cardgame_3.c.
Referenced by CARDGAME_tickPreloader().
| s16 CARDGAME_countingCards[] |
five card ids, minus one
Definition at line 134 of file cardgame_3.c.
Referenced by CARDGAME_setCountingCardValues(), and CARDGAME_showCardInfo().
| s16 CARDGAME_prizeItems[] |
the item an opponent gives for a win (CardBattle.prize), by its CardOpponent.prize
Definition at line 137 of file cardgame_3.c.
Referenced by CARDGAME_loadOpponent().
| u16 CARDGAME_defaultDeck[] |
the deck used when the chosen one is empty: its first 40 cards, as card ids - 1 (CardBattle.playerDeck); nothing reads the 40 after them
Definition at line 144 of file cardgame_3.c.
Referenced by loadChosenDeck().
| CardFadeColor CARDGAME_fadeColors[] |
CARDGAME_startStepFade's fade colours and blends, by fade - 1.
Definition at line 156 of file cardgame_3.c.
Referenced by CARDGAME_startStepFade().
| s16 CARDGAME_animPiles[7][2] = {{0, 0}, {1, 1}, {1, 2}, {1, 0}, {0, 1}, {0, 2}, {0, 0}} |
the side and pile CARDGAME_updateCardAnims passes to CARDGAME_layOutPile
Definition at line 160 of file cardgame_3.c.
Referenced by CARDGAME_updateCardAnims().
| CardOffset CARDGAME_deckWindowPos[3] = {{0x17, 0x50}, {0x17, 0x7D}, {0x17, 0xAA}} |
the three deck windows
Definition at line 161 of file cardgame_3.c.
Referenced by CARDGAME_chooseDeck(), moveDeckMarker(), and openDeckWindow().
| u8 CARDGAME_turnStates[] |
the next record.turnState state, by step and side
Definition at line 162 of file cardgame_3.c.
Referenced by CARDGAME_playRounds(), playPlayerTurn(), and takePickedCard().
| CardBattleMessage CARDGAME_battleMessages[] |
the step and nextPhase of CARDGAME_startBattleMessage, by prevPhase
Definition at line 165 of file cardgame_3.c.
Referenced by CARDGAME_startBattleMessage().
| CardOffset CARDGAME_playedCardPos[2][2] = {{{0x82, 0xBF}, {0x82, 0x1D}}, {{0x82, 0xCB}, {0x82, 0x11}}} |
then the same moved for SHIFT_PAL_SCREEN
Definition at line 177 of file cardgame_3.c.
Referenced by CARDGAME_showPlayedCard().
| RECT CARDGAME_fadeRect = {0, -15, 320, 260} |
Definition at line 178 of file cardgame_3.c.
Referenced by CARDGAME_tickFader().
| s32 CARDGAME_promptText = 0 |
the text of window 0
Definition at line 179 of file cardgame_3.c.
Referenced by backToChoosing(), CARDGAME_stepChooseCards(), hideHandForMenu(), showHandAfterMenu(), and startChooseState().
| s16 CARDGAME_savedPanelScales[2] = {0, 0} |
the panels' scale states, kept by CARDGAME_viewTable
Definition at line 180 of file cardgame_3.c.
Referenced by CARDGAME_viewTable(), and setUpViewState().
| s32 CARDGAME_selectionText = 0 |
the message of CARDGAME_chooseCard's selection
Definition at line 181 of file cardgame_3.c.
Referenced by CARDGAME_chooseCard().
| u8 CARDGAME_slotMoves[2][6][2] = {{{0}}} |
per side, the slot moves (from, to) of CARDGAME_removeMarkedSlots
Definition at line 182 of file cardgame_3.c.
Referenced by CARDGAME_removeMarkedSlots().
| u8 CARDGAME_slotMoveCounts[8] = {0} |
per side, the entries of CARDGAME_slotMoves; bytes 2 and 3 are CARDGAME_markedCounts, the marked slots (config/<version>/ undefined_syms_cardgame.txt), and the rest is not used.
per side, the entries of CARDGAME_slotMoves
Two symbols, not a struct or an array: CARDGAME_removeMarkedSlots loads each address with its own lui and addiu, and GCC 2.8.1 folds the members of one object into one base (CARDGAME_removeMarkedSlots no longer matches as either). The zero variables from CARDGAME_promptText on end the file, as an overlay's .bss would: two 2-byte variables 2 bytes apart fit commons that the linker laid out, not word-aligned C definitions.
Definition at line 192 of file cardgame_3.c.
Referenced by CARDGAME_removeMarkedSlots().
| CardMessageWindow CARDGAME_savedScreenState = {0} |
Definition at line 193 of file cardgame_3.c.
Referenced by CARDGAME_runBattleMenu().