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 |
A shop's work: its windows, the party members' icons, the stock, the cursor and its icons, and the particle effects.
| 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().
| struct UiWindow* ShopRuntime::itemWindow |
Definition at line 22 of file shop.h.
Referenced by Shop_BuySpecialItem(), Shop_ConfirmEquip(), Shop_PickUnit(), Shop_PickUnitItem(), Shop_RepairItem(), Shop_SelectBuy(), Shop_SelectRepair(), Shop_SelectSell(), Shop_SelectUse(), and Shop_SellItem().
| struct AnimationObject* ShopRuntime::partyMemberIcons[8] |
the party row's sprites
Definition at line 24 of file shop.h.
Referenced by SaveMenu_HidePartySprites(), SaveMenu_PlacePartySprites(), SaveMenu_ShowPartySprites(), Shop_DrawParty(), Shop_HiliteUnit(), Shop_ResetEffects(), and Shop_RunPartyMemberIconBurst().
| s16 ShopRuntime::partyMemberX[8] |
pixels
Definition at line 25 of file shop.h.
Referenced by SaveMenu_PlacePartySprites(), SaveMenu_ShowPartySprites(), and Shop_RunPartyMemberIconBurst().
| s16 ShopRuntime::partyMemberY[8] |
pixels
Definition at line 26 of file shop.h.
Referenced by SaveMenu_PlacePartySprites(), SaveMenu_ShowPartySprites(), and Shop_RunPartyMemberIconBurst().
| 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().
| 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().
| s16 ShopRuntime::partyMemberIds[9] |
the party in order (Party_ListActiveOwners)
Definition at line 30 of file shop.h.
Referenced by Inn_RoomPrice(), Sanctum_RunPartyService(), Shop_BuySpecialItem(), Shop_CountUnits(), Shop_DrawParty(), Shop_HiliteUnit(), Shop_InitializeCursorWork(), Shop_PickUnit(), Shop_PickUnitItem(), and Shop_SelectBuy().
| struct ShopCursor ShopRuntime::cursor |
the hand cursor
Definition at line 31 of file shop.h.
Referenced by Sanctum_RunPartyService(), Shop_ConfirmAct(), Shop_PickUnit(), Shop_PickUnitItem(), Shop_PlaceCursor(), Shop_Run(), Shop_RunPartyMemberIconBurst(), Shop_SelectBuy(), Shop_SelectRepair(), Shop_SelectSell(), Shop_SelectSellNum(), Shop_SelectUse(), Shop_StepCursor(), UiMessage_ShowAndRestoreState(), UiMessage_ShowChoice(), UiMessage_ShowChoiceVariant(), and UiMessage_ShowResolvedAndRestoreState().
| 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().
| u16 ShopRuntime::previousPageIcon |
Definition at line 36 of file shop.h.
Referenced by Shop_DrawStock(), Shop_InitializeCursorWork(), and Shop_ReleaseCursorWork().
| u16 ShopRuntime::nextPageIcon |
Definition at line 37 of file shop.h.
Referenced by Shop_DrawStock(), Shop_InitializeCursorWork(), and Shop_ReleaseCursorWork().
| u16 ShopRuntime::gemIcon |
Definition at line 38 of file shop.h.
Referenced by Shop_InitializeCursorWork(), and Shop_ReleaseCursorWork().
| u16 ShopRuntime::statUpIcon |
Definition at line 39 of file shop.h.
Referenced by Shop_DrawEquipComparison(), Shop_InitializeCursorWork(), and Shop_ReleaseCursorWork().
| u16 ShopRuntime::statDownIcon |
Definition at line 40 of file shop.h.
Referenced by Shop_DrawEquipComparison(), Shop_InitializeCursorWork(), and Shop_ReleaseCursorWork().
| 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().
| 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().
| s8 ShopRuntime::stockCount |
Definition at line 46 of file shop.h.
Referenced by Shop_DrawStock(), Shop_ListAvailableArtifacts(), Shop_Run(), and Shop_SelectBuy().
| s8 ShopRuntime::partyMemberCount |
Definition at line 47 of file shop.h.
Referenced by Inn_RoomPrice(), Sanctum_RunPartyService(), Shop_BuySpecialItem(), Shop_CountUnits(), Shop_DrawParty(), Shop_HiliteUnit(), Shop_InitializeCursorWork(), Shop_PickUnit(), Shop_PickUnitItem(), and Shop_SelectBuy().
| u8 ShopRuntime::mode |
passed on as the hand cursor's kind; set to 12 at first
Definition at line 48 of file shop.h.
Referenced by Sanctum_RunPartyService(), Shop_BuySpecialItem(), Shop_InitializeCursorWork(), Shop_PickUnit(), Shop_PickUnitItem(), Shop_PlaceCursor(), Shop_SelectBuy(), Shop_SelectBuyNum(), Shop_SelectRepair(), Shop_SelectSell(), Shop_SelectSellNum(), and Shop_SelectUse().
| 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().
| s8 ShopRuntime::partyAction |
the counter chosen (enum ShopAction)
Definition at line 50 of file shop.h.
Referenced by Sanctum_RunPartyService(), Shop_ConfirmAct(), Shop_CountUnits(), Shop_DrawSelectMsg(), Shop_HiliteUnit(), Shop_MsgByMode(), Shop_PickUnit(), Shop_Run(), Shop_RunPartyMemberIconBurst(), Shop_SelectBuy(), and Shop_SelectBuyNum().
| 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().
| 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().
| 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().