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

#include <healeffect.hpp>

Public Member Functions

void Set (float *world)
 
void Step ()
 
void Draw ()
 

Public Attributes

float position [4]
 
float particle_offset [32][4]
 
float angle [32]
 
float angular_velocity [32]
 
float radius [32]
 
float alpha [32]
 
float phase [32]
 
float size [32]
 
s32 active
 
u8 unk_514 [0xC]
 

Detailed Description

Animates the ring of healing particles around the player character.

Definition at line 8 of file healeffect.hpp.

Member Function Documentation

◆ Set()

void CHealEffect::Set ( float *  world)

Starts a healing-particle effect at the supplied world position.

Mangled name:
Set__11CHealEffectFPf
Address:
0x1B2900
Size:
0x1F8

Definition at line 15 of file healeffect.cpp.

◆ Step()

void CHealEffect::Step ( )

Advances every active healing particle and ends the effect when all expire.

Mangled name:
Step__11CHealEffectFv
Address:
0x1B2B00
Size:
0x244

Definition at line 32 of file healeffect.cpp.

◆ Draw()

void CHealEffect::Draw ( )

Draws every live healing particle around the player character.

Mangled name:
Draw__11CHealEffectFv
Address:
0x1B2D50
Size:
0x13C

Definition at line 80 of file healeffect.cpp.

Member Data Documentation

◆ position

float CHealEffect::position[4]

World-space centre of the effect.

Definition at line 10 of file healeffect.hpp.

◆ particle_offset

float CHealEffect::particle_offset[32][4]

Rotated offset of each healing particle.

Definition at line 11 of file healeffect.hpp.

◆ angle

float CHealEffect::angle[32]

Rotation angle of each particle around the centre.

Definition at line 12 of file healeffect.hpp.

◆ angular_velocity

float CHealEffect::angular_velocity[32]

Per-step angular advance of each particle.

Definition at line 13 of file healeffect.hpp.

◆ radius

float CHealEffect::radius[32]

Horizontal orbit radius of each particle.

Definition at line 14 of file healeffect.hpp.

◆ alpha

float CHealEffect::alpha[32]

Current opacity of each particle.

Definition at line 15 of file healeffect.hpp.

◆ phase

float CHealEffect::phase[32]

Lifetime phase controlling height and opacity.

Definition at line 16 of file healeffect.hpp.

◆ size

float CHealEffect::size[32]

Draw size of each particle.

Definition at line 17 of file healeffect.hpp.

◆ active

s32 CHealEffect::active

Indicates that the particle effect is advancing.

Definition at line 18 of file healeffect.hpp.

◆ unk_514

u8 CHealEffect::unk_514[0xC]

Definition at line 19 of file healeffect.hpp.