DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
stealitem.hpp
1#pragma once
2
3#include "common.h"
4
5#include <libvu0.h>
6
10// clang-format off
11enum StealItemState {
12 STEAL_ITEM_NONE = -1,
13 STEAL_ITEM_RISE = 0,
14 STEAL_ITEM_HOME = 1,
15 STEAL_ITEM_ARRIVED = 2,
16};
17
18// clang-format on
19
20// Forward declarations for the types these declarations name. The skeleton
21// headers are generated from the retail symbol table, which knows the type
22// names but not where they live.
23class CFrame;
24class CFrameVu1;
25
27#define STEAL_ITEM_MAX 8
28
34public:
36 u8 unk_004[0xC];
37 sceVu0FVECTOR pos[STEAL_ITEM_MAX];
38 float base_height[STEAL_ITEM_MAX];
39 float speed[STEAL_ITEM_MAX];
40 s32 state[STEAL_ITEM_MAX];
41 s32 aux_state[STEAL_ITEM_MAX];
42 float angle;
43 float phase[STEAL_ITEM_MAX];
44 s32 item[STEAL_ITEM_MAX];
45 u8 unk_154[0xC];
46
54 void Initialize(CFrameVu1 *model);
55
64 void Set(float *position, int item_no);
65
73 void Step();
74
82 void Draw();
83
92 int checkEvent();
93};
94
95STATIC_ASSERT(sizeof(CStealItem) == 0x160);
s32 item[STEAL_ITEM_MAX]
Definition stealitem.hpp:44
void Initialize(CFrameVu1 *model)
Definition stealitem.cpp:15
float base_height[STEAL_ITEM_MAX]
Definition stealitem.hpp:38
float phase[STEAL_ITEM_MAX]
Definition stealitem.hpp:43
int checkEvent()
CFrame * frame
Definition stealitem.hpp:35
s32 aux_state[STEAL_ITEM_MAX]
Definition stealitem.hpp:41
float speed[STEAL_ITEM_MAX]
Definition stealitem.hpp:39
void Draw()
sceVu0FVECTOR pos[STEAL_ITEM_MAX]
Definition stealitem.hpp:37
s32 state[STEAL_ITEM_MAX]
Definition stealitem.hpp:40
void Set(float *position, int item_no)
Definition stealitem.cpp:24
void Step()
Definition stealitem.cpp:47
float angle
Definition stealitem.hpp:42