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

#include <itembombeffect.hpp>

Public Member Functions

void Draw (CCamera *camera)
 
void Step ()
 
void SetBomb (float *position, float scale)
 
int CheckBomb ()
 
void Initialize ()
 

Public Attributes

sceVu0FVECTOR positions [5]
 
s32 phases [5]
 
s32 counters [5]
 
float sizes [5]
 
float alphas [5]
 
s32 active [5]
 
float scale
 
u8 unk_B8 [0x8]
 

Detailed Description

Animates the blast billboards created by one bomb.

Definition at line 16 of file itembombeffect.hpp.

Member Function Documentation

◆ Draw()

void CItemBombEffect::Draw ( CCamera *  camera)

Draws the bomb's blast and its shock wave.

Mangled name:
Draw__15CItemBombEffectFP7CCamera
Address:
0x1D5B30
Size:
0x374

Definition at line 190 of file itembombeffect.cpp.

◆ Step()

void CItemBombEffect::Step ( )

Advances the bomb effect by a frame.

Mangled name:
Step__15CItemBombEffectFv
Address:
0x1D5EB0
Size:
0x1F0

Definition at line 270 of file itembombeffect.cpp.

◆ SetBomb()

void CItemBombEffect::SetBomb ( float *  position,
float  scale 
)

Places the bomb's five blast puffs around a position.

Mangled name:
SetBomb__15CItemBombEffectFPff
Address:
0x1D60A0
Size:
0xBC

Definition at line 331 of file itembombeffect.cpp.

◆ CheckBomb()

int CItemBombEffect::CheckBomb ( )

Reports whether the bomb effect is still running.

Mangled name:
CheckBomb__15CItemBombEffectFv
Address:
0x1D6160
Size:
0x48

Definition at line 353 of file itembombeffect.cpp.

◆ Initialize()

void CItemBombEffect::Initialize ( )

Clears the bomb effect.

Mangled name:
Initialize__15CItemBombEffectFv
Address:
0x1D61B0
Size:
0x30

Definition at line 370 of file itembombeffect.cpp.

Member Data Documentation

◆ positions

sceVu0FVECTOR CItemBombEffect::positions[5]

World positions of the blast billboards.

Definition at line 18 of file itembombeffect.hpp.

◆ phases

s32 CItemBombEffect::phases[5]

Envelope phase run by each billboard.

Definition at line 19 of file itembombeffect.hpp.

◆ counters

s32 CItemBombEffect::counters[5]

Frames elapsed in each billboard's phase; negative while its start is delayed.

Definition at line 20 of file itembombeffect.hpp.

◆ sizes

float CItemBombEffect::sizes[5]

World-space widths of the billboards.

Definition at line 21 of file itembombeffect.hpp.

◆ alphas

float CItemBombEffect::alphas[5]

Alpha values used to draw the billboards.

Definition at line 22 of file itembombeffect.hpp.

◆ active

s32 CItemBombEffect::active[5]

Nonzero while each billboard is animated.

Definition at line 23 of file itembombeffect.hpp.

◆ scale

float CItemBombEffect::scale

Scale applied to every billboard.

Definition at line 24 of file itembombeffect.hpp.

◆ unk_B8

u8 CItemBombEffect::unk_B8[0x8]

Definition at line 25 of file itembombeffect.hpp.