|
Digimon World 3 decomp
The European version, SLES_039.36
|
Go to the source code of this file.
Functions | |
| void | bindCardDrawer (CardDrawer *obj) |
Makes obj the card drawer the methods work on. | |
| void | cardDrawerSetCard (s32 id) |
Card drawer method: picks the image of card id (0 or less: the first image of the first file) | |
| void | cardDrawerLoadImage (void) |
| Card drawer method: loads the card's image and CLUT into its cell of VRAM. | |
| void | cardDrawerSetLayer (s32 id, s32 depth) |
| Card drawer method: the layer and depth to draw to. | |
| void | cardDrawerSetImagePos (s32 x, s32 y) |
| Card drawer method: the VRAM area of the image cells. | |
| void | cardDrawerSetClutPos (s32 x, s32 y) |
| Card drawer method: the VRAM area of the CLUTs. | |
| void | cardDrawerSetCell (s32 x, s32 y) |
| Card drawer method: the cell a card is loaded to and drawn from. | |
| void | cardDrawerSetClutStride (s32 stride) |
| Card drawer method: the CLUT rows between two columns of cells. | |
| void | cardDrawerSetSemiTrans (s32 on) |
| Card drawer method: draws semi-transparent, or not. | |
| void | cardDrawerDraw (s32 x, s32 y) |
| Card drawer method: draws the card of the current cell at (x, y), a 32x32 sprite. | |
| s32 | cardDrawerGetKind (void) |
| Card drawer method: the kind of the current card (CARD_KINDS) | |
| void | initCardDrawer (CardDrawer *obj) |
| Clears a card drawer, gives it its methods and binds it. | |
Variables | |
| static CardDrawer * | CARD_DRAWER |
| Small variables, addressed through $gp (see the Makefile) | |
| s32 | CARD_IMAGE_FILES [] = { 2038, 2039, 2040, 2041, 2042 } |
| The card images, 64 cards to a file (cardDrawerSetCard), numbered in the Japanese disc as in the USA one. | |
| s32 | CARD_KINDS [] = { 0, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 2, 1, 1, 2, 0, 0 } |
| cardDrawerGetKind's kinds, by a card image's byte 3 | |
| void bindCardDrawer | ( | CardDrawer * | obj | ) |
Makes obj the card drawer the methods work on.
Definition at line 10 of file card_drawer.c.
Referenced by initCardDrawer().
| void cardDrawerSetCard | ( | s32 | id | ) |
Card drawer method: picks the image of card id (0 or less: the first image of the first file)
Definition at line 17 of file card_drawer.c.
Referenced by initCardDrawer().
| void cardDrawerLoadImage | ( | void | ) |
Card drawer method: loads the card's image and CLUT into its cell of VRAM.
Definition at line 32 of file card_drawer.c.
Referenced by initCardDrawer().
Card drawer method: the layer and depth to draw to.
Definition at line 42 of file card_drawer.c.
Referenced by initCardDrawer().
Card drawer method: the VRAM area of the image cells.
Definition at line 50 of file card_drawer.c.
Referenced by initCardDrawer().
Card drawer method: the VRAM area of the CLUTs.
Definition at line 56 of file card_drawer.c.
Referenced by initCardDrawer().
Card drawer method: the cell a card is loaded to and drawn from.
Definition at line 62 of file card_drawer.c.
Referenced by initCardDrawer().
| void cardDrawerSetClutStride | ( | s32 | stride | ) |
Card drawer method: the CLUT rows between two columns of cells.
Definition at line 68 of file card_drawer.c.
Referenced by initCardDrawer().
| void cardDrawerSetSemiTrans | ( | s32 | on | ) |
Card drawer method: draws semi-transparent, or not.
Definition at line 73 of file card_drawer.c.
Referenced by initCardDrawer().
Card drawer method: draws the card of the current cell at (x, y), a 32x32 sprite.
Definition at line 78 of file card_drawer.c.
Referenced by initCardDrawer().
| s32 cardDrawerGetKind | ( | void | ) |
Card drawer method: the kind of the current card (CARD_KINDS)
Definition at line 108 of file card_drawer.c.
Referenced by initCardDrawer().
| void initCardDrawer | ( | CardDrawer * | obj | ) |
Clears a card drawer, gives it its methods and binds it.
Definition at line 113 of file card_drawer.c.
Referenced by CARDGAME_addCardPoints(), CARDGAME_addColorCount(), CARDGAME_canPlayCard(), CARDGAME_canPlayCardKind(), CARDGAME_checkPlayCondition(), CARDGAME_createDeckWindow(), CARDGAME_drawFromDeck(), CARDGAME_drawNewCards(), CARDGAME_findCardSet(), CARDGAME_getCardColor(), CARDGAME_loadCardImages(), CARDGAME_markPileCardsByColor(), CARDGAME_markSlotsByColor(), CARDGAME_pickBestPileCard(), CARDGAME_pickComputerCard(), CARDGAME_pickLowestOpponentCard(), CARDGAME_pickLowestPlayerCard(), CARDGAME_putSlotCard(), CARDGAME_scoreHand(), CARDGAME_setSlot(), CARDGAME_setSpriteCard(), CARDGAME_showCardInfo(), CARDGAME_startPreviousCardChoice(), CARDGAME_targetColor3Slot(), CARDGAME_targetColor4Slot(), jumpBackForOtherColors(), lastPlayColor(), STCRDABM_drawAlbum(), STCRDABM_drawCards(), STCRDABM_loadIcons(), STCRDABM_showCardInfo(), STCRDDEK_countCardKinds(), STCRDDEK_drawDeckCards(), STCRDDEK_drawEditor(), STCRDDEK_loadNextCard(), STCRDDEK_showEditorWindows(), STCRDDEK_showListCard(), STCRDSHP_chooseBuyCard(), STCRDSHP_drawBuy(), STCRDSHP_drawCards(), STCRDSHP_drawPackOpen(), STCRDSHP_loadIcons(), STCRDSHP_showBuyCard(), and STCRDSHP_showPackCard().
|
static |
Small variables, addressed through $gp (see the Makefile)
Definition at line 7 of file card_drawer.c.
Referenced by bindCardDrawer(), cardDrawerDraw(), cardDrawerGetKind(), cardDrawerLoadImage(), cardDrawerSetCard(), cardDrawerSetCell(), cardDrawerSetClutPos(), cardDrawerSetClutStride(), cardDrawerSetImagePos(), cardDrawerSetLayer(), and cardDrawerSetSemiTrans().
| s32 CARD_IMAGE_FILES[] = { 2038, 2039, 2040, 2041, 2042 } |
The card images, 64 cards to a file (cardDrawerSetCard), numbered in the Japanese disc as in the USA one.
Definition at line 134 of file card_drawer.c.
Referenced by cardDrawerSetCard().
| s32 CARD_KINDS[] = { 0, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 2, 1, 1, 2, 0, 0 } |
cardDrawerGetKind's kinds, by a card image's byte 3
Definition at line 138 of file card_drawer.c.
Referenced by cardDrawerGetKind().