DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
randomitem.hpp
1#pragma once
2
3#include "common.h"
4
8// clang-format off
9enum RandomItemState {
10 RANDOM_ITEM_RISING = 0,
11 RANDOM_ITEM_WAITING = 1,
12 RANDOM_ITEM_TAKEN = 2,
13};
14
15// clang-format on
16
17class CTexture;
18
23public:
25 u8 unk_004[0xC];
26 float position[32][4];
27 float distance[32];
28 s32 id[32];
29 s32 amount[32];
30 s32 state[32];
31 float phase[32];
32 float bob_phase;
33 s32 pickup_event[32];
35 s32 item_no[32];
36 u8 unk_614[0xC];
37
45 void Draw();
46
54 void MapSymbolDraw();
55
63 int checkEvent();
64
72 int checkErr();
73
81 int CheckPosition();
82
90 void Set(float *drop_position, int slot_id, int gold, int item);
91
99 int CheckID();
100
108 int CheckItemNo(int item);
109
117 void Step();
118};
119
120STATIC_ASSERT(sizeof(CRandomItem) == 0x620);
int CheckPosition()
s32 item_no[32]
s32 state[32]
void MapSymbolDraw()
int checkEvent()
int CheckItemNo(int item)
float position[32][4]
CTexture * gold_texture
float bob_phase
s32 amount[32]
float phase[32]
void Set(float *drop_position, int slot_id, int gold, int item)
float distance[32]
s32 pickup_blocked[32]
s32 pickup_event[32]