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

#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]
 

Detailed Description

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.

Member Function Documentation

◆ InitSet()

void CWeaponEffect::InitSet ( CFrame *  frame,
char *  root_name,
char *  tip_name 
)

Points the trail at the two ends of one weapon's blade.

Mangled name:
InitSet__13CWeaponEffectFP6CFramePcPc
Address:
0x1D65C0
Size:
0x74

Definition at line 10 of file weaponeffect.cpp.

◆ Set()

void CWeaponEffect::Set ( int  hold,
float  fade,
float  fade_out 
)

Starts a swing, and lays down its first step.

Mangled name:
Set__13CWeaponEffectFiff
Address:
0x1D6640
Size:
0x120

Definition at line 20 of file weaponeffect.cpp.

◆ Step()

void CWeaponEffect::Step ( )

Lays down one more step of the swing and fades the ones behind it.

Mangled name:
Step__13CWeaponEffectFv
Address:
0x1D6760
Size:
0x1D8

Definition at line 47 of file weaponeffect.cpp.

◆ Draw()

void CWeaponEffect::Draw ( )

Fills the gap between each pair of steps the swing still holds.

Mangled name:
Draw__13CWeaponEffectFv
Address:
0x1D6940
Size:
0x298

Definition at line 93 of file weaponeffect.cpp.

Member Data Documentation

◆ root

CFrame* CWeaponEffect::root

Node at the end of the blade nearer the hand.

Definition at line 26 of file weaponeffect.hpp.

◆ tip

CFrame* CWeaponEffect::tip

Node at the far end of the blade.

Definition at line 27 of file weaponeffect.hpp.

◆ unk_008

u8 CWeaponEffect::unk_008[8]

Definition at line 28 of file weaponeffect.hpp.

◆ edge

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.

◆ alpha

float CWeaponEffect::alpha[WEAPON_EFFECT_STEP_MAX]

How brightly each step still draws.

Definition at line 35 of file weaponeffect.hpp.

◆ used

s32 CWeaponEffect::used[WEAPON_EFFECT_STEP_MAX]

1 while the step of the slot still draws.

Definition at line 36 of file weaponeffect.hpp.

◆ colour

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.

◆ cursor

s32 CWeaponEffect::cursor

Slot the next step is written to.

Definition at line 43 of file weaponeffect.hpp.

◆ timer

s32 CWeaponEffect::timer

Steps the swing has run for.

Definition at line 44 of file weaponeffect.hpp.

◆ hold

s32 CWeaponEffect::hold

Steps the trail is laid down at full strength for.

Definition at line 45 of file weaponeffect.hpp.

◆ strength

float CWeaponEffect::strength

Brightness a new step is laid down at.

Definition at line 46 of file weaponeffect.hpp.

◆ fade_out

float CWeaponEffect::fade_out

Brightness the trail stops laying down each step, once held.

Definition at line 47 of file weaponeffect.hpp.

◆ fade

float CWeaponEffect::fade

Brightness every step already laid down loses each step.

Definition at line 48 of file weaponeffect.hpp.

◆ unk_538

u8 CWeaponEffect::unk_538[8]

Definition at line 49 of file weaponeffect.hpp.