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

CARDGAME's second object's data. More...

Include dependency graph for cardgame_2.c:

Go to the source code of this file.

Variables

s16 CARDGAME_stepWindowPositions [2][3][4][2]
 three sets of four positions, then the same moved for SHIFT_PAL_SCREEN
 
s32 CARDGAME_rowSpriteOffsets []
 the sprite offset of each row of CARDGAME_viewTable
 
CardBattleStep CARDGAME_windowSteps [] = {{0, 0}, {4, 1}, {8, 2}, {-1, 3}}
 
u8 CARDGAME_stepMessages [][2]
 CARDGAME_startStepMessage's text for window 5 and what screen->openMessage shows, by message.
 
s32 CARDGAME_coinCardPositions [][2] = {{0x7400, 0x6100}, {0xA400, 0x6100}}
 the two cards' x, y (CARDGAME_startFirstPick)
 
s32 CARDGAME_rowSteps [] = {5, 6, 7, 0}
 the step of each row of CARDGAME_viewTable
 
s16 CARDGAME_colorFlags []
 a flag bit per card colour
 
s32 CARDGAME_discardPositions [][2] = {{0x11400, 28416}, {0x11400, 22016}}
 x, y per side
 
s32 CARDGAME_recordCardPositions [][2] = {{20736, 24832}, {33536, 24832}, {46336, 24832}}
 where card 15 goes, by CardRecord.playCount
 
s16 CARDGAME_cardWindowPositions [2][2][2] = {{{0x82, 0xBF}, {0x82, 0x1D}}, {{0x82, 0xCB}, {0x82, 0x11}}}
 two positions, then the same moved for SHIFT_PAL_SCREEN
 

Detailed Description

CARDGAME's second object's data.

Definition in file cardgame_2.c.

Variable Documentation

◆ CARDGAME_stepWindowPositions

s16 CARDGAME_stepWindowPositions[2][3][4][2]
Initial value:
= {
{
{{0x82, 0xD4}, {0x82, 0x67}, {0x82, 0xBF}, {0xFD, 0xBF}},
{{0x82, 0x1D}, {0x82, 0x61}, {0x82, 0x08}, {0xFD, 0x08}},
{{0x82, 0xA5}, {0x86, 0x31}, {0x82, 0x90}, {0xFD, 0x90}},
},
{
{{0x82, 0xE0}, {0x82, 0x73}, {0x82, 0xCB}, {0xFD, 0xCB}},
{{0x82, 0x11}, {0x82, 0x55}, {0x82, -4}, {0xFD, -4}},
{{0x82, 0xA5}, {0x86, 0x31}, {0x82, 0x90}, {0xFD, 0x90}},
},
}

three sets of four positions, then the same moved for SHIFT_PAL_SCREEN

CARDGAME_openStepWindows's window positions, by layout and window, then the same moved for SHIFT_PAL_SCREEN.

Definition at line 6 of file cardgame_2.c.

Referenced by CARDGAME_getStepWindowPos().

◆ CARDGAME_rowSpriteOffsets

s32 CARDGAME_rowSpriteOffsets[]
Initial value:
= {
0, 6, 12, 0,
}

the sprite offset of each row of CARDGAME_viewTable

Definition at line 18 of file cardgame_2.c.

Referenced by CARDGAME_pickTableCard(), and CARDGAME_viewTable().

◆ CARDGAME_windowSteps

CardBattleStep CARDGAME_windowSteps[] = {{0, 0}, {4, 1}, {8, 2}, {-1, 3}}

Definition at line 21 of file cardgame_2.c.

Referenced by CARDGAME_openStepWindows().

◆ CARDGAME_stepMessages

u8 CARDGAME_stepMessages[][2]
Initial value:
= {
{0x01, 0x02}, {0x03, 0x04}, {0x05, 0x06}, {0x07, 0x08},
{0x09, 0x0A}, {0x0B, 0x0C}, {0x1F, 0x3E}, {0x0B, 0x0C},
}

CARDGAME_startStepMessage's text for window 5 and what screen->openMessage shows, by message.

Definition at line 22 of file cardgame_2.c.

Referenced by CARDGAME_startStepMessage().

◆ CARDGAME_coinCardPositions

s32 CARDGAME_coinCardPositions[][2] = {{0x7400, 0x6100}, {0xA400, 0x6100}}

the two cards' x, y (CARDGAME_startFirstPick)

Definition at line 26 of file cardgame_2.c.

Referenced by CARDGAME_switchCoinCard().

◆ CARDGAME_rowSteps

s32 CARDGAME_rowSteps[] = {5, 6, 7, 0}

the step of each row of CARDGAME_viewTable

Definition at line 27 of file cardgame_2.c.

Referenced by CARDGAME_viewTable().

◆ CARDGAME_colorFlags

s16 CARDGAME_colorFlags[]
Initial value:
= {
0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080,
}

a flag bit per card colour

Definition at line 28 of file cardgame_2.c.

Referenced by CARDGAME_markPileCardsByColor(), and CARDGAME_markSlotsByColor().

◆ CARDGAME_discardPositions

s32 CARDGAME_discardPositions[][2] = {{0x11400, 28416}, {0x11400, 22016}}

x, y per side

Definition at line 31 of file cardgame_2.c.

Referenced by CARDGAME_discardPickedCard().

◆ CARDGAME_recordCardPositions

s32 CARDGAME_recordCardPositions[][2] = {{20736, 24832}, {33536, 24832}, {46336, 24832}}

where card 15 goes, by CardRecord.playCount

Definition at line 32 of file cardgame_2.c.

Referenced by CARDGAME_startPlayCard(), and CARDGAME_stepPlayCard().

◆ CARDGAME_cardWindowPositions

s16 CARDGAME_cardWindowPositions[2][2][2] = {{{0x82, 0xBF}, {0x82, 0x1D}}, {{0x82, 0xCB}, {0x82, 0x11}}}

two positions, then the same moved for SHIFT_PAL_SCREEN

Definition at line 33 of file cardgame_2.c.

Referenced by CARDGAME_stepSlotTotal().