|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#include <weaponeffect.hpp>
Public Member Functions | |
| void | InitSet (CFrame *frame, char *root_name, char *tip_name) |
| void | Set (int hold, float fade, float fade_out) |
| void | Step () |
| void | Draw () |
Public Attributes | |
| CFrame * | root |
| CFrame * | tip |
| u8 | unk_008 [8] |
| sceVu0FVECTOR | edge [WEAPON_EFFECT_STEP_MAX *2] |
| float | alpha [WEAPON_EFFECT_STEP_MAX] |
| s32 | used [WEAPON_EFFECT_STEP_MAX] |
| spRGBA | colour [4] |
| s32 | cursor |
| s32 | timer |
| s32 | hold |
| float | strength |
| float | fade_out |
| float | fade |
| u8 | unk_538 [8] |
Draws the ribbon a swung weapon leaves behind it, by remembering where the two ends of the blade stood on each of the last few steps and filling the gap between one step and the next.
Definition at line 24 of file weaponeffect.hpp.
| void CWeaponEffect::InitSet | ( | CFrame * | frame, |
| char * | root_name, | ||
| char * | tip_name | ||
| ) |
Points the trail at the two ends of one weapon's blade.
Definition at line 10 of file weaponeffect.cpp.
| void CWeaponEffect::Set | ( | int | hold, |
| float | fade, | ||
| float | fade_out | ||
| ) |
Starts a swing, and lays down its first step.
Definition at line 20 of file weaponeffect.cpp.
| void CWeaponEffect::Step | ( | ) |
Lays down one more step of the swing and fades the ones behind it.
Definition at line 47 of file weaponeffect.cpp.
| void CWeaponEffect::Draw | ( | ) |
Fills the gap between each pair of steps the swing still holds.
Definition at line 93 of file weaponeffect.cpp.
| CFrame* CWeaponEffect::root |
Node at the end of the blade nearer the hand.
Definition at line 26 of file weaponeffect.hpp.
| CFrame* CWeaponEffect::tip |
Node at the far end of the blade.
Definition at line 27 of file weaponeffect.hpp.
| u8 CWeaponEffect::unk_008[8] |
Definition at line 28 of file weaponeffect.hpp.
| sceVu0FVECTOR CWeaponEffect::edge[WEAPON_EFFECT_STEP_MAX *2] |
Where the two ends of the blade stood on each step of the swing: the near end of a step at twice its number, the far end just after it.
Definition at line 34 of file weaponeffect.hpp.
| float CWeaponEffect::alpha[WEAPON_EFFECT_STEP_MAX] |
How brightly each step still draws.
Definition at line 35 of file weaponeffect.hpp.
| s32 CWeaponEffect::used[WEAPON_EFFECT_STEP_MAX] |
1 while the step of the slot still draws.
Definition at line 36 of file weaponeffect.hpp.
| spRGBA CWeaponEffect::colour[4] |
Colours of the four corners of one piece of the ribbon: the near and far ends of the step before, then of the step after.
Definition at line 42 of file weaponeffect.hpp.
| s32 CWeaponEffect::cursor |
Slot the next step is written to.
Definition at line 43 of file weaponeffect.hpp.
| s32 CWeaponEffect::timer |
Steps the swing has run for.
Definition at line 44 of file weaponeffect.hpp.
| s32 CWeaponEffect::hold |
Steps the trail is laid down at full strength for.
Definition at line 45 of file weaponeffect.hpp.
| float CWeaponEffect::strength |
Brightness a new step is laid down at.
Definition at line 46 of file weaponeffect.hpp.
| float CWeaponEffect::fade_out |
Brightness the trail stops laying down each step, once held.
Definition at line 47 of file weaponeffect.hpp.
| float CWeaponEffect::fade |
Brightness every step already laid down loses each step.
Definition at line 48 of file weaponeffect.hpp.
| u8 CWeaponEffect::unk_538[8] |
Definition at line 49 of file weaponeffect.hpp.