Alchemy
Loading...
Searching...
No Matches

ShopRuntime Struct Reference

A shop's work: its windows, the party members' icons, the stock, the cursor and its icons, and the particle effects. More...

#include <shop.h>

Data Fields

u8 unk000 [0x0c]
 not named by TBS code
struct UiWindow * moneyWindow
 the coins window
u8 unk010 [0x10]
 not named by TBS code
struct UiWindow * itemWindow
u8 unk024 [0xf0]
 not named by TBS code
struct AnimationObject * partyMemberIcons [8]
 the party row's sprites
s16 partyMemberX [8]
 pixels
s16 partyMemberY [8]
 pixels
s32 partyMemberScale [8]
 16.16 fixed point, 0x10000 full size
u8 unk174 [0xf8]
 not named by TBS code
s16 stockItemIds [129]
 the items on sale, ended by 0
s16 partyMemberIds [9]
 the party in order (Party_ListActiveOwners)
struct ShopCursor cursor
 the hand cursor
u16 unk39c
 not named by TBS code
u16 selectedItem
 the item being bought, sold or repaired
u8 unk3a0 [4]
 not named by TBS code
u16 keeperResource
 the shopkeeper's animation; picks the portrait
s8 stockCount
s8 partyMemberCount
u8 mode
 passed on as the hand cursor's kind; set to 12 at first
u8 shopType
 the stock row's type: 0 items, 2 armor, else weapons
s8 partyAction
 the counter chosen (enum ShopAction)
s8 burstMember
 the sanctum's member whose pose is randomized; -1 none
u8 warriorShop
 1 for stock rows 16 to 18, which greet as warriors'
u8 unk3ad [3]
 not named by TBS code
struct EffectSlot effects [24]
 the sanctum service's particles
u16 cursorIcon
 VRAM cache slots of the six cursor icons, loaded when the work is set up and freed with it.
u16 previousPageIcon
u16 nextPageIcon
u16 gemIcon
u16 statUpIcon
u16 statDownIcon

Detailed Description

A shop's work: its windows, the party members' icons, the stock, the cursor and its icons, and the particle effects.

Definition at line 18 of file shop.h.

Field Documentation

◆ unk000

u8 ShopRuntime::unk000[0x0c]

not named by TBS code

Definition at line 19 of file shop.h.

◆ moneyWindow

struct UiWindow* ShopRuntime::moneyWindow

the coins window

Definition at line 20 of file shop.h.

Referenced by Shop_ConfirmAct(), Shop_DrawMoney(), Shop_PickUnit(), and Shop_SelectBuy().

◆ unk010

u8 ShopRuntime::unk010[0x10]

not named by TBS code

Definition at line 21 of file shop.h.

◆ itemWindow

◆ unk024

u8 ShopRuntime::unk024[0xf0]

not named by TBS code

Definition at line 23 of file shop.h.

◆ partyMemberIcons

struct AnimationObject* ShopRuntime::partyMemberIcons[8]

◆ partyMemberX

s16 ShopRuntime::partyMemberX[8]

pixels

Definition at line 25 of file shop.h.

Referenced by SaveMenu_PlacePartySprites(), SaveMenu_ShowPartySprites(), and Shop_RunPartyMemberIconBurst().

◆ partyMemberY

s16 ShopRuntime::partyMemberY[8]

pixels

Definition at line 26 of file shop.h.

Referenced by SaveMenu_PlacePartySprites(), SaveMenu_ShowPartySprites(), and Shop_RunPartyMemberIconBurst().

◆ partyMemberScale

s32 ShopRuntime::partyMemberScale[8]

16.16 fixed point, 0x10000 full size

Definition at line 27 of file shop.h.

Referenced by SaveMenu_PlacePartySprites(), SaveMenu_ShowPartySprites(), Shop_DrawParty(), and Shop_HiliteUnit().

◆ unk174

u8 ShopRuntime::unk174[0xf8]

not named by TBS code

Definition at line 28 of file shop.h.

◆ stockItemIds

s16 ShopRuntime::stockItemIds[129]

the items on sale, ended by 0

Definition at line 29 of file shop.h.

Referenced by Shop_DrawStock(), Shop_ListAvailableArtifacts(), Shop_Run(), and Shop_SelectBuy().

◆ partyMemberIds

s16 ShopRuntime::partyMemberIds[9]

◆ cursor

◆ cursorIcon

u16 ShopRuntime::cursorIcon

VRAM cache slots of the six cursor icons, loaded when the work is set up and freed with it.

the hand

Definition at line 35 of file shop.h.

Referenced by Shop_ConfirmAct(), Shop_InitializeCursorWork(), Shop_PickUnitItem(), Shop_ReleaseCursorWork(), and Shop_Run().

◆ previousPageIcon

u16 ShopRuntime::previousPageIcon

Definition at line 36 of file shop.h.

Referenced by Shop_DrawStock(), Shop_InitializeCursorWork(), and Shop_ReleaseCursorWork().

◆ nextPageIcon

u16 ShopRuntime::nextPageIcon

Definition at line 37 of file shop.h.

Referenced by Shop_DrawStock(), Shop_InitializeCursorWork(), and Shop_ReleaseCursorWork().

◆ gemIcon

u16 ShopRuntime::gemIcon

Definition at line 38 of file shop.h.

Referenced by Shop_InitializeCursorWork(), and Shop_ReleaseCursorWork().

◆ statUpIcon

u16 ShopRuntime::statUpIcon

◆ statDownIcon

u16 ShopRuntime::statDownIcon

◆ unk39c

u16 ShopRuntime::unk39c

not named by TBS code

Definition at line 42 of file shop.h.

◆ selectedItem

u16 ShopRuntime::selectedItem

the item being bought, sold or repaired

Definition at line 43 of file shop.h.

Referenced by Shop_BuySpecialItem(), and Shop_SelectBuy().

◆ unk3a0

u8 ShopRuntime::unk3a0[4]

not named by TBS code

Definition at line 44 of file shop.h.

◆ keeperResource

u16 ShopRuntime::keeperResource

the shopkeeper's animation; picks the portrait

Definition at line 45 of file shop.h.

Referenced by Shop_ConfirmAct(), Shop_Run(), UiMessage_ShowAndRestoreState(), UiMessage_ShowAndWait(), UiMessage_ShowResolvedAndRestoreState(), and UiMessage_ShowResolvedAndWait().

◆ stockCount

s8 ShopRuntime::stockCount

Definition at line 46 of file shop.h.

Referenced by Shop_DrawStock(), Shop_ListAvailableArtifacts(), Shop_Run(), and Shop_SelectBuy().

◆ partyMemberCount

◆ mode

◆ shopType

u8 ShopRuntime::shopType

the stock row's type: 0 items, 2 armor, else weapons

Definition at line 49 of file shop.h.

Referenced by Shop_ListAvailableArtifacts(), Shop_Run(), UiMessage_ShowAndRestoreState(), and UiMessage_ShowAndWait().

◆ partyAction

◆ burstMember

s8 ShopRuntime::burstMember

the sanctum's member whose pose is randomized; -1 none

Definition at line 51 of file shop.h.

Referenced by Shop_ResetEffects(), and Shop_RunPartyMemberIconBurst().

◆ warriorShop

u8 ShopRuntime::warriorShop

1 for stock rows 16 to 18, which greet as warriors'

Definition at line 52 of file shop.h.

Referenced by Shop_Run(), UiMessage_ShowAndRestoreState(), and UiMessage_ShowAndWait().

◆ unk3ad

u8 ShopRuntime::unk3ad[3]

not named by TBS code

Definition at line 53 of file shop.h.

◆ effects

struct EffectSlot ShopRuntime::effects[24]

the sanctum service's particles

Definition at line 54 of file shop.h.

Referenced by Shop_ResetEffects(), and Shop_RunPartyMemberIconBurst().