|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#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] |
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.
| void CStealItem::Initialize | ( | CFrameVu1 * | model | ) |
Frees every slot and gives them the model they draw with.
Definition at line 15 of file stealitem.cpp.
| 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.
Definition at line 24 of file stealitem.cpp.
| void CStealItem::Step | ( | ) |
Moves every taken slot one step towards the player.
Definition at line 47 of file stealitem.cpp.
| void CStealItem::Draw | ( | ) |
Draws every taken slot.
Definition at line 112 of file stealitem.cpp.
| int CStealItem::checkEvent | ( | ) |
Frees the first slot that has reached the player and returns the item it carried, or -1 while none has.
Definition at line 124 of file stealitem.cpp.
| CFrame* CStealItem::frame |
Model that every slot draws with.
Definition at line 35 of file stealitem.hpp.
| u8 CStealItem::unk_004[0xC] |
Definition at line 36 of file stealitem.hpp.
| sceVu0FVECTOR CStealItem::pos[STEAL_ITEM_MAX] |
Where each slot is.
Definition at line 37 of file stealitem.hpp.
| float CStealItem::base_height[STEAL_ITEM_MAX] |
Height each slot bobs about.
Definition at line 38 of file stealitem.hpp.
| float CStealItem::speed[STEAL_ITEM_MAX] |
How far each slot travels a step.
Definition at line 39 of file stealitem.hpp.
| s32 CStealItem::state[STEAL_ITEM_MAX] |
-1 free, 0 rising, 1 closing, 2 arrived.
Definition at line 40 of file stealitem.hpp.
| 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.
| float CStealItem::angle |
Angle every slot spins at.
Definition at line 42 of file stealitem.hpp.
| float CStealItem::phase[STEAL_ITEM_MAX] |
How far through its bob each slot is.
Definition at line 43 of file stealitem.hpp.
| s32 CStealItem::item[STEAL_ITEM_MAX] |
Item each slot carries.
Definition at line 44 of file stealitem.hpp.
| u8 CStealItem::unk_154[0xC] |
Definition at line 45 of file stealitem.hpp.