DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
CStealItem Class Reference

#include <stealitem.hpp>

Public Member Functions

void Initialize (CFrameVu1 *model)
 
void Set (float *position, int item_no)
 
void Step ()
 
void Draw ()
 
int checkEvent ()
 

Public Attributes

CFrame * frame
 
u8 unk_004 [0xC]
 
sceVu0FVECTOR pos [STEAL_ITEM_MAX]
 
float base_height [STEAL_ITEM_MAX]
 
float speed [STEAL_ITEM_MAX]
 
s32 state [STEAL_ITEM_MAX]
 
s32 aux_state [STEAL_ITEM_MAX]
 
float angle
 
float phase [STEAL_ITEM_MAX]
 
s32 item [STEAL_ITEM_MAX]
 
u8 unk_154 [0xC]
 

Detailed Description

Carries away the items a monster stole. Each slot rises out of the player, turns towards them, and is taken back once it reaches them.

Definition at line 33 of file stealitem.hpp.

Member Function Documentation

◆ Initialize()

void CStealItem::Initialize ( CFrameVu1 *  model)

Frees every slot and gives them the model they draw with.

Mangled name:
Initialize__10CStealItemFP9CFrameVu1
Address:
0x1D74E0
Size:
0x3C

Definition at line 15 of file stealitem.cpp.

◆ Set()

void CStealItem::Set ( float *  position,
int  item_no 
)

Starts one item off at a position, in the first free slot. Nothing happens once every slot is taken.

Mangled name:
Set__10CStealItemFPfi
Address:
0x1D7520
Size:
0xD4

Definition at line 24 of file stealitem.cpp.

◆ Step()

void CStealItem::Step ( )

Moves every taken slot one step towards the player.

Mangled name:
Step__10CStealItemFv
Address:
0x1D7600
Size:
0x340

Definition at line 47 of file stealitem.cpp.

◆ Draw()

void CStealItem::Draw ( )

Draws every taken slot.

Mangled name:
Draw__10CStealItemFv
Address:
0x1D7940
Size:
0xA0

Definition at line 112 of file stealitem.cpp.

◆ checkEvent()

int CStealItem::checkEvent ( )

Frees the first slot that has reached the player and returns the item it carried, or -1 while none has.

Mangled name:
checkEvent__10CStealItemFv
Address:
0x1D79E0
Size:
0x60

Definition at line 124 of file stealitem.cpp.

Member Data Documentation

◆ frame

CFrame* CStealItem::frame

Model that every slot draws with.

Definition at line 35 of file stealitem.hpp.

◆ unk_004

u8 CStealItem::unk_004[0xC]

Definition at line 36 of file stealitem.hpp.

◆ pos

sceVu0FVECTOR CStealItem::pos[STEAL_ITEM_MAX]

Where each slot is.

Definition at line 37 of file stealitem.hpp.

◆ base_height

float CStealItem::base_height[STEAL_ITEM_MAX]

Height each slot bobs about.

Definition at line 38 of file stealitem.hpp.

◆ speed

float CStealItem::speed[STEAL_ITEM_MAX]

How far each slot travels a step.

Definition at line 39 of file stealitem.hpp.

◆ state

s32 CStealItem::state[STEAL_ITEM_MAX]

-1 free, 0 rising, 1 closing, 2 arrived.

Definition at line 40 of file stealitem.hpp.

◆ aux_state

s32 CStealItem::aux_state[STEAL_ITEM_MAX]

Second per-slot state, reset to -1 with state and otherwise unused.

Definition at line 41 of file stealitem.hpp.

◆ angle

float CStealItem::angle

Angle every slot spins at.

Definition at line 42 of file stealitem.hpp.

◆ phase

float CStealItem::phase[STEAL_ITEM_MAX]

How far through its bob each slot is.

Definition at line 43 of file stealitem.hpp.

◆ item

s32 CStealItem::item[STEAL_ITEM_MAX]

Item each slot carries.

Definition at line 44 of file stealitem.hpp.

◆ unk_154

u8 CStealItem::unk_154[0xC]

Definition at line 45 of file stealitem.hpp.