DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
mainitemmodel.hpp
1#pragma once
2
3#include "common.h"
4
5#include "frame.hpp"
6
10// clang-format off
11enum MainItemModelState {
12 ITEM_MODEL_FREE = -1,
13 ITEM_MODEL_LOADED = 0,
14 ITEM_MODEL_HAND = 1,
15 ITEM_MODEL_THROWN = 2,
16 ITEM_MODEL_UNK_3 = 3,
17};
18
19// clang-format on
20
24// clang-format off
25enum ActiveItemUseType {
26 ACTIVE_ITEM_NONE = 0,
27 ACTIVE_ITEM_ACTION = 1,
28 ACTIVE_ITEM_DRINK = 2,
29 ACTIVE_ITEM_FEATHER = 3,
30 ACTIVE_ITEM_EAT = 4,
31};
32
33// clang-format on
34
36public:
37 u_int *cash[6];
38 s32 cash_item[6];
39 s32 cash_lock[6];
40 s32 model[16];
41 s32 model_cash[16];
42 u8 unk_0C8[8];
44 float velocity[16][4];
45 s32 throw_time[16];
54 int GetFreeCashNo();
55
63 int GetFreeModelNo();
64
72 int SetCashModel(int item_no, unsigned int *model_data, unsigned int *texture_data, int texture_size);
73
81 void DeleteModel(int model_no);
82
90 int SetHandModel(int source_no);
91
99 void AllReleasItem();
100
108 int SetThrowModel(int source_no, float *position, float *heading);
109
117 void Draw();
118
126 void Step();
127
135 void Initialize();
136};
137
142public:
143 s32 now;
144 s32 item[4];
145 s32 model[9];
155 int CheckStatusType();
156};
157
158STATIC_ASSERT(sizeof(CActiveItemPack) == 0x3C);
159
160STATIC_ASSERT(sizeof(CMainItemModel) == 0x2810);
161
163extern "C" CMainItemModel mainItemModel;
164
168extern char MainItemRemoveMessage[];
169
173extern char MainItemHandMessage[];
CMainItemModel * models
void DeleteModel(int model_no)
float velocity[16][4]
int SetHandModel(int source_no)
int SetThrowModel(int source_no, float *position, float *heading)
int SetCashModel(int item_no, unsigned int *model_data, unsigned int *texture_data, int texture_size)