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

#include <stockitem.hpp>

Public Member Functions

void Initialize ()
 
int SearchSpace (int slot_index, int search_space)
 
void SetItemToPos (int slot_index, s16 *item_no, s16 *volume)
 
void GetItemInfo (int slot_index, s16 *item_no, s16 *volume)
 
void SetWepToPos (int slot_index, WEAPON_HAVE *weapon)
 
void GetWeaponInfo (int slot_index, WEAPON_HAVE *weapon)
 
void SetAttachToPos (int slot_index, ATTACH_LIST *attachment)
 
void GetAttachInfo (int slot_index, ATTACH_LIST *attachment)
 
int SearchItem (int item_no)
 
int SeitonChargeItemBoardSub ()
 
void SeitonItem ()
 
void SeitonAttach ()
 
int GetNowModeSpace (int search_space)
 

Public Attributes

s16 dungeon_items [60]
 
s16 dungeon_item_vols [60]
 
WEAPON_HAVE weapons [30]
 
ATTACH_LIST attachments [30]
 

Detailed Description

Stores dungeon items, weapons, and attachments.

Definition at line 29 of file stockitem.hpp.

Member Function Documentation

◆ Initialize()

void CStockItem::Initialize ( )

Sets all stock inventory slots to zero.

Mangled name:
Initialize__10CStockItemFv
Address:
0x23F590
Size:
0x70

Definition at line 38 of file stockitem.cpp.

◆ SearchSpace()

int CStockItem::SearchSpace ( int  slot_index,
int  search_space 
)

Returns an item identifier from a slot or zero if the identifier is not valid for the selected section.

Mangled name:
SearchSpace__10CStockItemFii
Address:
0x23F600
Size:
0xBC

Definition at line 45 of file stockitem.cpp.

◆ SetItemToPos()

void CStockItem::SetItemToPos ( int  slot_index,
s16 *  item_no,
s16 *  volume 
)

Exchanges an item identifier and volume with a dungeon-item slot.

Mangled name:
SetItemToPos__10CStockItemFiPsPs
Address:
0x23F6C0
Size:
0x30

Definition at line 78 of file stockitem.cpp.

◆ GetItemInfo()

void CStockItem::GetItemInfo ( int  slot_index,
s16 *  item_no,
s16 *  volume 
)

Copies an item identifier and volume from a dungeon-item slot.

Mangled name:
GetItemInfo__10CStockItemFiPsPs
Address:
0x23F6F0
Size:
0x20

Definition at line 90 of file stockitem.cpp.

◆ SetWepToPos()

void CStockItem::SetWepToPos ( int  slot_index,
WEAPON_HAVE *  weapon 
)

Exchanges weapon data with a weapon slot.

Mangled name:
SetWepToPos__10CStockItemFiP11WEAPON_HAVE
Address:
0x23F710
Size:
0x7C

Definition at line 95 of file stockitem.cpp.

◆ GetWeaponInfo()

void CStockItem::GetWeaponInfo ( int  slot_index,
WEAPON_HAVE *  weapon 
)

Copies weapon data from a weapon slot.

Mangled name:
GetWeaponInfo__10CStockItemFiP11WEAPON_HAVE
Address:
0x23F790
Size:
0x3C

Definition at line 103 of file stockitem.cpp.

◆ SetAttachToPos()

void CStockItem::SetAttachToPos ( int  slot_index,
ATTACH_LIST *  attachment 
)

Exchanges attachment data with an attachment slot.

Mangled name:
SetAttachToPos__10CStockItemFiP11ATTACH_LIST
Address:
0x23F7D0
Size:
0x74

Definition at line 107 of file stockitem.cpp.

◆ GetAttachInfo()

void CStockItem::GetAttachInfo ( int  slot_index,
ATTACH_LIST *  attachment 
)

Copies attachment data from an attachment slot.

Mangled name:
GetAttachInfo__10CStockItemFiP11ATTACH_LIST
Address:
0x23F850
Size:
0x34

Definition at line 115 of file stockitem.cpp.

◆ SearchItem()

int CStockItem::SearchItem ( int  item_no)

Searches the stock inventory for an item identifier and prints the result.

Mangled name:
SearchItem__10CStockItemFi
Address:
0x23F890
Size:
0x18C

Definition at line 119 of file stockitem.cpp.

◆ SeitonChargeItemBoardSub()

int CStockItem::SeitonChargeItemBoardSub ( )

Sorts dungeon-item slots with the current priority and returns 1 if it moves a slot.

Mangled name:
SeitonChargeItemBoardSub__10CStockItemFv
Address:
0x23FB40
Size:
0x12C

Definition at line 202 of file stockitem.cpp.

◆ SeitonItem()

void CStockItem::SeitonItem ( )

Tries item priorities until a sort operation moves a dungeon-item slot.

Mangled name:
SeitonItem__10CStockItemFv
Address:
0x23FC70
Size:
0x80

Definition at line 234 of file stockitem.cpp.

◆ SeitonAttach()

void CStockItem::SeitonAttach ( )

Tries attachment priorities until a sort operation moves an attachment slot.

Mangled name:
SeitonAttach__10CStockItemFv
Address:
0x23FF10
Size:
0x7C

Definition at line 321 of file stockitem.cpp.

◆ GetNowModeSpace()

int CStockItem::GetNowModeSpace ( int  search_space)

Returns the first empty slot in an inventory section or minus one if the section is full.

Mangled name:
GetNowModeSpace__10CStockItemFi
Address:
0x23FF90
Size:
0xB4

Definition at line 335 of file stockitem.cpp.

Member Data Documentation

◆ dungeon_items

s16 CStockItem::dungeon_items[60]

Contains the dungeon-item identifiers.

Definition at line 31 of file stockitem.hpp.

◆ dungeon_item_vols

s16 CStockItem::dungeon_item_vols[60]

Contains the volume for each dungeon-item slot.

Definition at line 32 of file stockitem.hpp.

◆ weapons

WEAPON_HAVE CStockItem::weapons[30]

Contains the weapon data.

Definition at line 33 of file stockitem.hpp.

◆ attachments

ATTACH_LIST CStockItem::attachments[30]

Contains the attachment data.

Definition at line 34 of file stockitem.hpp.