|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#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] |
Stores dungeon items, weapons, and attachments.
Definition at line 29 of file stockitem.hpp.
| void CStockItem::Initialize | ( | ) |
Sets all stock inventory slots to zero.
Definition at line 38 of file stockitem.cpp.
| 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.
Definition at line 45 of file stockitem.cpp.
| void CStockItem::SetItemToPos | ( | int | slot_index, |
| s16 * | item_no, | ||
| s16 * | volume | ||
| ) |
Exchanges an item identifier and volume with a dungeon-item slot.
Definition at line 78 of file stockitem.cpp.
| void CStockItem::GetItemInfo | ( | int | slot_index, |
| s16 * | item_no, | ||
| s16 * | volume | ||
| ) |
Copies an item identifier and volume from a dungeon-item slot.
Definition at line 90 of file stockitem.cpp.
| void CStockItem::SetWepToPos | ( | int | slot_index, |
| WEAPON_HAVE * | weapon | ||
| ) |
Exchanges weapon data with a weapon slot.
Definition at line 95 of file stockitem.cpp.
| void CStockItem::GetWeaponInfo | ( | int | slot_index, |
| WEAPON_HAVE * | weapon | ||
| ) |
Copies weapon data from a weapon slot.
Definition at line 103 of file stockitem.cpp.
| void CStockItem::SetAttachToPos | ( | int | slot_index, |
| ATTACH_LIST * | attachment | ||
| ) |
Exchanges attachment data with an attachment slot.
Definition at line 107 of file stockitem.cpp.
| void CStockItem::GetAttachInfo | ( | int | slot_index, |
| ATTACH_LIST * | attachment | ||
| ) |
Copies attachment data from an attachment slot.
Definition at line 115 of file stockitem.cpp.
| int CStockItem::SearchItem | ( | int | item_no | ) |
Searches the stock inventory for an item identifier and prints the result.
Definition at line 119 of file stockitem.cpp.
| int CStockItem::SeitonChargeItemBoardSub | ( | ) |
Sorts dungeon-item slots with the current priority and returns 1 if it moves a slot.
Definition at line 202 of file stockitem.cpp.
| void CStockItem::SeitonItem | ( | ) |
Tries item priorities until a sort operation moves a dungeon-item slot.
Definition at line 234 of file stockitem.cpp.
| void CStockItem::SeitonAttach | ( | ) |
Tries attachment priorities until a sort operation moves an attachment slot.
Definition at line 321 of file stockitem.cpp.
| int CStockItem::GetNowModeSpace | ( | int | search_space | ) |
Returns the first empty slot in an inventory section or minus one if the section is full.
Definition at line 335 of file stockitem.cpp.
| s16 CStockItem::dungeon_items[60] |
Contains the dungeon-item identifiers.
Definition at line 31 of file stockitem.hpp.
| s16 CStockItem::dungeon_item_vols[60] |
Contains the volume for each dungeon-item slot.
Definition at line 32 of file stockitem.hpp.
| WEAPON_HAVE CStockItem::weapons[30] |
Contains the weapon data.
Definition at line 33 of file stockitem.hpp.
| ATTACH_LIST CStockItem::attachments[30] |
Contains the attachment data.
Definition at line 34 of file stockitem.hpp.