struct SHOP_STATE
A shop's state: its windows, the party members' icons, the stock, the cursor and its icons, and the field effect sprites. More…
Declared in shop.h.
Fields
| Name | Description | |
|---|---|---|
Uint8 | unused [8] | No view of the menu state names it (see menu/README.md). |
Sint32 | selectedMember | The menu screens' chosen party member; not named here. |
struct WINDOW * | moneyWindow | The coins window. |
Uint8 | menuSides [16] | The menu screens' first window and |
struct WINDOW * | itemWindow | their two sides; not named here. |
Uint8 | menuWindows [240] | The menu screens' windows, icons and cursor grid; not named here. |
SPR * | partyMemberIcons [8] | The party row's sprites. |
Sint16 | partyMemberX [8] | Pixels. |
Sint16 | partyMemberY [8] | Pixels. |
FIXED | partyMemberScale [8] | 16.16 fixed point, toFIXED(1) full size. |
Uint8 | menuLists [248] | The menu screens' choices, entries and party and the row of four figures; not named here. |
Sint16 | stockItemIds [129] | The items on sale, ended by 0. |
Sint16 | partyMemberIds [9] | The party in order (gmPartyListMembers). |
MENU_CURSOR | cursor | The hand cursor. |
Uint16 | cursorIcon | cursorIcon: the hand. |
Uint16 | prevPageIcon | |
Uint16 | nextPageIcon | |
Uint16 | gemIcon | |
Uint16 | statUpIcon | |
Uint16 | statDownIcon | |
Uint16 | unusedBeforeSelection | No view of the menu state names it. |
Uint16 | selectedItem | The item being bought, sold or repaired. |
Uint8 | unusedAfterSelection [4] | No view of the menu state names it. |
Uint16 | keeperGraphics | The shopkeeper's animation; picks the portrait. |
Sint8 | stockCount | |
Sint8 | partyMemberCount | |
Uint8 | cursorMoveTicks | The ticks the hand cursor's next move takes (mnCursorPlace): SHOP_CURSOR_ENTER_TICKS into a new list, then a few a step. |
Uint8 | shopType | The stock row's type (SHOP_TYPE), which picks the keeper's lines; an inn takes a weapon shop's, whose lines are given as they are. |
Sint8 | action | The counter chosen (SHOP_ACTION), or at a sanctum the service (enum SANCTUM_SERVICE). |
Sint8 | burstMember | The party member whose icon flickers through colours in the sanctum's burst, or -1 for none. |
Uint8 | warriorShop | 1 at Xian's shops and inn, whose keepers have lines of their own. |
Uint8 | padding [3] | Up to the word effects starts on. |
FIELD_PARTICLE | effects [SANCTUM_PARTICLE_COUNT] | The sanctum service's particles. |
Description
A shop's state: its windows, the party members' icons, the stock, the cursor and its icons, and the field effect sprites.
It is the HEAP_SLOT_MENU block, the same 2,672 bytes as the field menu's
state: mnShopInitState takes and clears it as a shop, the inn, the sanctum or
the item picker opens, and mnShopReleaseState frees it.
struct SHOP_STATE
Referenced by mnCursorPlace(), mnCursorStep(), mnFileListHidePartySprites(), mnFileListPlacePartySprites(), mnFileListSelectFile(), mnFileListShowPartySprites(), mnInnCheckIn(), mnInnRoomPrice(), mnItemPickerRun(), mnItemPickerSelectItem(), mnSanctumAskYesNo(), mnSanctumCountMembersInNeed(), mnSanctumDrawFee(), mnSanctumGetServiceMessage(), mnSanctumHighlightMembers(), mnSanctumRun(), mnSanctumRunMemberIconBurst(), mnSanctumRunPartyService(), mnSanctumShowKeeperMessage(), mnSanctumShowKeeperMessageHidingCursor(), mnSanctumUpdateBurst(), mnShopAskYesNo(), mnShopChooseMember(), mnShopConfirmEquip(), mnShopDrawEquipComparison(), mnShopDrawMoney(), mnShopDrawParty(), mnShopDrawStock(), mnShopGiveGameTicket(), mnShopInitState(), mnShopListAvailableArtifacts(), mnShopReleaseState(), mnShopRepairItem(), mnShopRun(), mnShopSelectBuy(), mnShopSelectBuyCount(), mnShopSelectRepair(), mnShopSelectSell(), mnShopSelectSellCount(), mnShopSellItem(), mnShopShowKeeperMessage() and mnShopShowKeeperMessageHidingCursor().
Definition at line 31 of file shop.h.
Fields in detail
unused
Uint8 unused[8]
No view of the menu state names it (see menu/README.md).
selectedMember
Sint32 selectedMember
The menu screens' chosen party member; not named here.
moneyWindow
struct WINDOW *moneyWindow
The coins window.
menuSides
Uint8 menuSides[16]
The menu screens' first window and
itemWindow
struct WINDOW *itemWindow
their two sides; not named here.
menuWindows
Uint8 menuWindows[240]
The menu screens' windows, icons and cursor grid; not named here.
partyMemberIcons
SPR *partyMemberIcons[8]
The party row's sprites.
partyMemberX
Sint16 partyMemberX[8]
Pixels.
partyMemberY
Sint16 partyMemberY[8]
Pixels.
partyMemberScale
FIXED partyMemberScale[8]
16.16 fixed point, toFIXED(1) full
size.
menuLists
Uint8 menuLists[248]
The menu screens' choices, entries and party and the row of four figures; not named here.
stockItemIds
Sint16 stockItemIds[129]
The items on sale, ended by 0.
partyMemberIds
Sint16 partyMemberIds[9]
The party in order
(gmPartyListMembers).
cursor
MENU_CURSOR cursor
The hand cursor.
cursorIcon
Uint16 cursorIcon
cursorIcon: the hand.
prevPageIcon
Uint16 prevPageIcon
nextPageIcon
Uint16 nextPageIcon
gemIcon
Uint16 gemIcon
statUpIcon
Uint16 statUpIcon
statDownIcon
Uint16 statDownIcon
unusedBeforeSelection
Uint16 unusedBeforeSelection
No view of the menu state names it.
selectedItem
Uint16 selectedItem
The item being bought, sold or repaired.
unusedAfterSelection
Uint8 unusedAfterSelection[4]
No view of the menu state names it.
keeperGraphics
Uint16 keeperGraphics
The shopkeeper's animation; picks the portrait.
stockCount
Sint8 stockCount
partyMemberCount
Sint8 partyMemberCount
cursorMoveTicks
Uint8 cursorMoveTicks
The ticks the hand
cursor's next move takes
(mnCursorPlace):
SHOP_CURSOR_ENTER_TICKS
into a new list, then a
few a step.
shopType
Uint8 shopType
The stock row's type
(SHOP_TYPE), which picks
the keeper's lines; an
inn takes a weapon
shop's, whose lines are
given as they are.
action
Sint8 action
The counter chosen
(SHOP_ACTION), or at a
sanctum the service (enum
SANCTUM_SERVICE).
burstMember
Sint8 burstMember
The party member whose icon flickers through colours in the sanctum's burst, or -1 for none.
warriorShop
Uint8 warriorShop
1 at Xian's shops and inn, whose keepers have lines of their own.
padding
Uint8 padding[3]
Up to the word effects starts on.
effects
FIELD_PARTICLE effects[SANCTUM_PARTICLE_COUNT]
The sanctum service's particles.