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

#include <candleeffect.hpp>

Public Member Functions

void Initialize ()
 
 CCandleEffect ()
 
void SetTexture (CTexture *flame_texture)
 
void SetScale (float half_width, float half_height)
 
void SetPosition (float *world)
 
void Step ()
 
void Draw ()
 

Public Attributes

int enabled
 
float animation_frame
 
CTexture * texture
 
u32 unk_0c
 
float position [4]
 
float half_width
 
float half_height
 
u32 unk_28
 
u32 unk_2c
 

Detailed Description

Animates and draws the camera-facing sprite used for a candle flame.

Definition at line 10 of file candleeffect.hpp.

Constructor & Destructor Documentation

◆ CCandleEffect()

CCandleEffect::CCandleEffect ( )

Constructs a candle effect in its initial state.

Mangled name:
__ct__13CCandleEffectFv
Address:
0x163A60
Size:
0x30

Definition at line 18 of file candleeffect.cpp.

Member Function Documentation

◆ Initialize()

void CCandleEffect::Initialize ( )

Restores the enabled candle to its initial animation state.

Mangled name:
Initialize__13CCandleEffectFv
Address:
0x163A30
Size:
0x24

Definition at line 10 of file candleeffect.cpp.

◆ SetTexture()

void CCandleEffect::SetTexture ( CTexture *  flame_texture)

Assigns the flame-atlas texture.

Mangled name:
SetTexture__13CCandleEffectFP8CTexture
Address:
0x163A90
Size:
0xC

Definition at line 22 of file candleeffect.cpp.

◆ SetScale()

void CCandleEffect::SetScale ( float  half_width,
float  half_height 
)

Sets the flame sprite's world-space half-extents.

Mangled name:
SetScale__13CCandleEffectFff
Address:
0x163AA0
Size:
0x10

Definition at line 26 of file candleeffect.cpp.

◆ SetPosition()

void CCandleEffect::SetPosition ( float *  world)

Copies the flame sprite's homogeneous world-space centre.

Mangled name:
SetPosition__13CCandleEffectFPf
Address:
0x163AB0
Size:
0x24

Definition at line 31 of file candleeffect.cpp.

◆ Step()

void CCandleEffect::Step ( )

Advances and wraps the fractional flame-atlas frame.

Mangled name:
Step__13CCandleEffectFv
Address:
0x163AE0
Size:
0x38

Definition at line 35 of file candleeffect.cpp.

◆ Draw()

void CCandleEffect::Draw ( )

Draws the current flame-atlas cell as an alpha-blended billboard.

Mangled name:
Draw__13CCandleEffectFv
Address:
0x163B20
Size:
0x1F4

Definition at line 43 of file candleeffect.cpp.

Member Data Documentation

◆ enabled

int CCandleEffect::enabled

Whether the candle sprite can be drawn.

Definition at line 12 of file candleeffect.hpp.

◆ animation_frame

float CCandleEffect::animation_frame

Fractional frame within the eight-frame flame cycle.

Definition at line 13 of file candleeffect.hpp.

◆ texture

CTexture* CCandleEffect::texture

Texture containing the 4-by-2 flame atlas.

Definition at line 14 of file candleeffect.hpp.

◆ unk_0c

u32 CCandleEffect::unk_0c

Definition at line 15 of file candleeffect.hpp.

◆ position

float CCandleEffect::position[4]

Homogeneous world-space centre of the flame.

Definition at line 16 of file candleeffect.hpp.

◆ half_width

float CCandleEffect::half_width

Half of the sprite's world-space width.

Definition at line 17 of file candleeffect.hpp.

◆ half_height

float CCandleEffect::half_height

Half of the sprite's world-space height.

Definition at line 18 of file candleeffect.hpp.

◆ unk_28

u32 CCandleEffect::unk_28

Definition at line 19 of file candleeffect.hpp.

◆ unk_2c

u32 CCandleEffect::unk_2c

Definition at line 20 of file candleeffect.hpp.