DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
ShopIconMove Class Reference

#include <shop.hpp>

Public Member Functions

void IconMoveTarSet (int slot_no, int icon_no, int item_no, MENU_ITEMDATA *item_data, float start_x, float start_y, int to_stock)
 
int IconAutoMove (int item_shop, int force_arrive)
 
void IconAutoMoveDraw ()
 

Public Attributes

s16 to_stock
 
s16 spare
 
s16 slot_no
 
s16 icon_no
 
float pos_x
 
float pos_y
 
s16 item_no
 
u8 unk_12 [2]
 
MENU_ITEMDATA data
 

Detailed Description

Tracks one shop icon flying from its shelf to the slot it was bought or sold into.

Definition at line 193 of file shop.hpp.

Member Function Documentation

◆ IconMoveTarSet()

void ShopIconMove::IconMoveTarSet ( int  slot_no,
int  icon_no,
int  item_no,
MENU_ITEMDATA *  item_data,
float  start_x,
float  start_y,
int  to_stock 
)

Aims a shop icon at the slot it is to fly to.

Mangled name:
IconMoveTarSet__12ShopIconMoveFiiiP13MENU_ITEMDATAffi
Address:
0x1E6930
Size:
0x68

Definition at line 512 of file shop.cpp.

◆ IconAutoMove()

int ShopIconMove::IconAutoMove ( int  item_shop,
int  force_arrive 
)

Advances a flying shop icon and reports when it has arrived.

Mangled name:
IconAutoMove__12ShopIconMoveFii
Address:
0x1E69A0
Size:
0x460

Definition at line 522 of file shop.cpp.

◆ IconAutoMoveDraw()

void ShopIconMove::IconAutoMoveDraw ( )

Draws a shop icon part-way through its flight.

Mangled name:
IconAutoMoveDraw__12ShopIconMoveFv
Address:
0x1E6E00
Size:
0xE8

Definition at line 620 of file shop.cpp.

Member Data Documentation

◆ to_stock

s16 ShopIconMove::to_stock

Nonzero routes the icon into the shop's stock; zero writes it straight into the player's status.

Definition at line 195 of file shop.hpp.

◆ spare

s16 ShopIconMove::spare

Reset to -1 whenever the flight is cleared.

Definition at line 196 of file shop.hpp.

◆ slot_no

s16 ShopIconMove::slot_no

Indexes the board slot, and the matching CStockItem/CUserStatus entry, the icon is bound for.

Definition at line 197 of file shop.hpp.

◆ icon_no

s16 ShopIconMove::icon_no

Indexes the icon's position on the board; divided and taken modulo five gives its row and column.

Definition at line 198 of file shop.hpp.

◆ pos_x

float ShopIconMove::pos_x

Current horizontal screen position of the flying icon.

Definition at line 199 of file shop.hpp.

◆ pos_y

float ShopIconMove::pos_y

Current vertical screen position of the flying icon.

Definition at line 200 of file shop.hpp.

◆ item_no

s16 ShopIconMove::item_no

The item, weapon or attachment identifier the icon is carrying.

Definition at line 201 of file shop.hpp.

◆ unk_12

u8 ShopIconMove::unk_12[2]

Definition at line 202 of file shop.hpp.

◆ data

MENU_ITEMDATA ShopIconMove::data

A copy of the item, weapon or attachment record.

Definition at line 203 of file shop.hpp.