DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
stockitem.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "common.h"
4
5// WEAPON_HAVE and ATTACH_LIST live with the definition tables they are copied
6// from; CStockItem stores both by value, so it needs the complete types.
7#include "itemdata.hpp"
8
17// clang-format off
23
24// clang-format on
25
30public:
31 s16 dungeon_items[60];
43 void Initialize();
44
52 int SearchSpace(int slot_index, int search_space);
53
61 void SetItemToPos(int slot_index, s16 *item_no, s16 *volume);
62
70 void GetItemInfo(int slot_index, s16 *item_no, s16 *volume);
71
79 void SetWepToPos(int slot_index, WEAPON_HAVE *weapon);
80
88 void GetWeaponInfo(int slot_index, WEAPON_HAVE *weapon);
89
97 void SetAttachToPos(int slot_index, ATTACH_LIST *attachment);
98
106 void GetAttachInfo(int slot_index, ATTACH_LIST *attachment);
107
115 int SearchItem(int item_no);
116
125
133 void SeitonItem();
134
142 void SeitonAttach();
143
151 int GetNowModeSpace(int search_space);
152};
153
154STATIC_ASSERT(sizeof(CStockItem) == 0x21C0);
155
163int CompChargeItem(int first_item_no, int second_item_no);
ATTACH_LIST attachments[30]
Definition stockitem.hpp:34
void SeitonItem()
int SearchItem(int item_no)
void GetAttachInfo(int slot_index, ATTACH_LIST *attachment)
void SeitonAttach()
void SetAttachToPos(int slot_index, ATTACH_LIST *attachment)
void SetWepToPos(int slot_index, WEAPON_HAVE *weapon)
Definition stockitem.cpp:95
int SeitonChargeItemBoardSub()
void Initialize()
Definition stockitem.cpp:38
WEAPON_HAVE weapons[30]
Definition stockitem.hpp:33
s16 dungeon_items[60]
Definition stockitem.hpp:31
int GetNowModeSpace(int search_space)
void GetItemInfo(int slot_index, s16 *item_no, s16 *volume)
Definition stockitem.cpp:90
s16 dungeon_item_vols[60]
Definition stockitem.hpp:32
void GetWeaponInfo(int slot_index, WEAPON_HAVE *weapon)
void SetItemToPos(int slot_index, s16 *item_no, s16 *volume)
Definition stockitem.cpp:78
int CompChargeItem(int first_item_no, int second_item_no)
SearchSpace
Definition stockitem.hpp:18
@ SEARCHSPACE_WEAPONS
Definition stockitem.hpp:20
@ SEARCHSPACE_DUNGEON_ITEMS
Definition stockitem.hpp:19
@ SEARCHSPACE_ATTACH
Definition stockitem.hpp:21