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

#include <bombeffect.hpp>

Public Member Functions

 CBombEffect ()
 
void Initialize ()
 
void Draw (CCamera *camera, int dust_only)
 
void Step ()
 

Public Attributes

sceVu0FVECTOR positions [8]
 
s32 phases [8]
 
s32 counters [8]
 
float sizes [8]
 
float alphas [8]
 
s32 active [8]
 

Detailed Description

Animates the fire and dust billboards of a title-overlay explosion.

Definition at line 25 of file bombeffect.hpp.

Constructor & Destructor Documentation

◆ CBombEffect()

CBombEffect::CBombEffect ( )

Initializes the fire and dust billboards before animation begins.

Mangled name:
__ct__11CBombEffectFv
Address:
0x143460
Size:
0x30

Definition at line 1737 of file main.cpp.

Member Function Documentation

◆ Initialize()

void CBombEffect::Initialize ( )

Drops every billboard the effect is carrying.

Mangled name:
Initialize__11CBombEffectFv
Address:
0x143490
Size:
0x30

Clears the bomb effect.

Mangled name:
Initialize__11CBombEffectFv
Address:
0x143490
Size:
0x30

Definition at line 1748 of file main.cpp.

◆ Draw()

void CBombEffect::Draw ( CCamera *  camera,
int  dust_only 
)

Draws the active fire and dust billboards facing the camera.

Mangled name:
Draw__11CBombEffectFP7CCamerai
Address:
0x1DAD610
Size:
0x3AC

Definition at line 12 of file bombeffect.cpp.

◆ Step()

void CBombEffect::Step ( )

Advances every active billboard through its size and alpha envelope.

Mangled name:
Step__11CBombEffectFv
Address:
0x1DAD9C0
Size:
0x390

Definition at line 98 of file bombeffect.cpp.

Member Data Documentation

◆ positions

sceVu0FVECTOR CBombEffect::positions[8]

World position of each billboard.

Definition at line 27 of file bombeffect.hpp.

◆ phases

s32 CBombEffect::phases[8]

Envelope phase each billboard is in; also pushes it towards the camera.

Definition at line 28 of file bombeffect.hpp.

◆ counters

s32 CBombEffect::counters[8]

Frames elapsed in each billboard's current phase.

Definition at line 29 of file bombeffect.hpp.

◆ sizes

float CBombEffect::sizes[8]

World-space billboard widths and heights.

Definition at line 30 of file bombeffect.hpp.

◆ alphas

float CBombEffect::alphas[8]

GS alpha values used to draw the billboards.

Definition at line 31 of file bombeffect.hpp.

◆ active

s32 CBombEffect::active[8]

One while the corresponding billboard is animated.

Definition at line 32 of file bombeffect.hpp.