|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#include <hitmark.hpp>
Public Member Functions | |
| virtual void | Step () |
| void | Set (float *position, float *direction, int kind, float spread, float shrink, float gravity, float speed, int count, float floor_y) |
| void | Draw () |
| void | Initialize () |
Public Member Functions inherited from CObject | |
| CObject & | operator= (const CObject &source) |
| float | GetDistance (CObject &other) |
| void | GetDir (CObject &other, float *out_direction) |
| virtual void | SetMass (float mass) |
| virtual void | SetPosition (CVector3_f_ position) |
| virtual void | SetPosition (float *position) |
| virtual void | SetPosition (float x, float y, float z) |
| virtual void | SetVelocity (CVector3_f_ velocity) |
| virtual void | SetAcceleration (CVector3_f_ acceleration) |
| virtual void | SetGravity (CVector3_f_ gravity) |
| virtual void | SetMoment (CVector3_f_ moment) |
| virtual void | SetRotation (CVector3_f_ rotation) |
| virtual void | SetRotation (float x, float y, float z) |
| virtual void | SetRotation (float *rotation) |
| virtual void | SetRotVelocity (CVector3_f_ rot_velocity) |
| virtual void | SetRotAcceleration (CVector3_f_ rot_acceleration) |
| virtual float | GetMass () |
| virtual void | GetPosition (CVector3_f_ *out_position) |
| virtual void | GetVelocity (CVector3_f_ *out_velocity) |
| virtual void | GetAcceleration (CVector3_f_ *out_acceleration) |
| virtual void | GetGravity (CVector3_f_ *out_gravity) |
| virtual void | GetMoment (CVector3_f_ *out_moment) |
| virtual void | GetRotation (float *out_rotation) |
| virtual void | GetRotation (CVector3_f_ *out_rotation) |
| virtual void | GetRotVelocity (CVector3_f_ *out_rot_velocity) |
| virtual void | GetRotAcceleration (CVector3_f_ *out_rot_acceleration) |
| virtual CVector3_f_ * | GetVelocity () |
| virtual CVector3_f_ * | GetAcceleration () |
| virtual CVector3_f_ * | GetGravity () |
| virtual CVector3_f_ * | GetMoment () |
| virtual CVector3_f_ * | GetRotation () |
| virtual CVector3_f_ * | GetRotVelocity () |
| virtual CVector3_f_ * | GetRotAcceleration () |
| virtual void | SetScale (float x, float y, float z) |
| virtual void | SetScale (float *scale) |
| virtual void | GetScale (float *out_scale) |
| CObject (float mass=1.0f) | |
| void | Initialize (float mass) |
Public Attributes | |
| sceVu0FVECTOR | offset [HIT_MARK_MAX] |
| sceVu0FVECTOR | velocity [HIT_MARK_MAX] |
| float | size [HIT_MARK_MAX] |
| u8 | unk_530 [144] |
| float | shrink |
| float | spread |
| float | gravity |
| float | speed |
| s32 | capacity |
| s32 | used [HIT_MARK_MAX] |
| s32 | count |
| s32 | kind |
| float | floor_y |
Public Attributes inherited from CObject | |
| float | mass |
| float | unk_004 [3] |
| float | pos [4] |
| CVector3_f_ | velocity |
| CVector3_f_ | acceleration |
| CVector3_f_ | gravity |
| CVector3_f_ | moment |
| CVector3_f_ | rotation |
| CVector3_f_ | rot_velocity |
| CVector3_f_ | rot_acceleration |
| float | scale [4] |
Throws a burst of sprites off the point of a hit and carries each one until it shrinks away.
Definition at line 35 of file hitmark.hpp.
|
virtual |
Moves every mark, and drops the ones that have shrunk away.
Reimplemented from CObject.
Definition at line 140 of file hitmark.cpp.
| void CHitMark::Set | ( | float * | position, |
| float * | direction, | ||
| int | kind, | ||
| float | spread, | ||
| float | shrink, | ||
| float | gravity, | ||
| float | speed, | ||
| int | count, | ||
| float | floor_y | ||
| ) |
Throws a burst of marks off a point, each one in its own direction.
Definition at line 16 of file hitmark.cpp.
| void CHitMark::Draw | ( | ) |
Draws every mark that the burst still holds.
Definition at line 50 of file hitmark.cpp.
| void CHitMark::Initialize | ( | ) |
Empties every slot, so that the burst throws nothing.
Definition at line 177 of file hitmark.cpp.
| sceVu0FVECTOR CHitMark::offset[HIT_MARK_MAX] |
Distance of each mark from the point of the hit.
Definition at line 37 of file hitmark.hpp.
| sceVu0FVECTOR CHitMark::velocity[HIT_MARK_MAX] |
Distance that each mark moves each step.
Definition at line 38 of file hitmark.hpp.
| float CHitMark::size[HIT_MARK_MAX] |
Width of each mark on the screen.
Definition at line 39 of file hitmark.hpp.
| u8 CHitMark::unk_530[144] |
Definition at line 40 of file hitmark.hpp.
| float CHitMark::shrink |
Size each mark loses each step.
Definition at line 41 of file hitmark.hpp.
| float CHitMark::spread |
Scatter added to each mark's launch direction; narrows each step.
Definition at line 42 of file hitmark.hpp.
| float CHitMark::gravity |
Downward speed that a mark gains each step.
Definition at line 43 of file hitmark.hpp.
| float CHitMark::speed |
Speed that the burst throws its marks at.
Definition at line 44 of file hitmark.hpp.
| s32 CHitMark::capacity |
Number of mark slots, set when the burst is emptied.
Definition at line 45 of file hitmark.hpp.
| s32 CHitMark::used[HIT_MARK_MAX] |
1 while the mark of the slot still draws.
Definition at line 46 of file hitmark.hpp.
| s32 CHitMark::count |
Number of marks that still draw.
Definition at line 47 of file hitmark.hpp.
| s32 CHitMark::kind |
Part of the texture that every mark draws.
Definition at line 48 of file hitmark.hpp.
| float CHitMark::floor_y |
Height that a mark bounces off.
Definition at line 49 of file hitmark.hpp.