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

#include <fireomni.hpp>

Public Member Functions

void FireStep ()
 
void FireCreate ()
 
void DrawFire (int unknown0, int unknown1, CCamera *camera, float *eye, float scale, int unknown2, float unknown3)
 
void FireStep ()
 
void FireCreate ()
 
void DrawFire (int unknown0, int unknown1, CCamera *camera, float *eye, float scale, int unknown2, float unknown3)
 
void FireStep ()
 
void FireCreate ()
 
void DrawFire (int unused0, int unused1, CCamera *camera, float *eye, float scale, int layers, float camera_offset)
 
void FireStep ()
 
void FireCreate ()
 
void SetPosition (float x, float y, float z)
 
void DrawFire (int unused0, int unused1, CCamera *camera, float *colour, float scale, int layers, float camera_offset)
 
void FireStep ()
 
void FireCreate ()
 
void SetPosition (float x, float y, float z)
 
void DrawFire (int unused0, int unused1, CCamera *camera, float *eye, float scale, int layers, float camera_offset)
 
void FireStep ()
 
void FireCreate ()
 
void SetPosition (float x, float y, float z)
 
void DrawFire (int unused0, int unused1, CCamera *camera, float *eye, float scale, int layers, float camera_offset)
 
 CFireOmni ()
 
void FireStep ()
 
void FireCreate ()
 
void SetTexture (CTexture *core_texture, CTexture *glow_texture)
 
void DrawFire (int unused0, int unused1, CCamera *camera, float *colour, float scale, int layers, float camera_offset)
 
void RasterStep ()
 
void DrawRaster ()
 

Public Attributes

char unk_00 [32]
 
sceVu0FVECTOR pos
 
s32 texture_set
 
CTexture * core
 
CTexture * glow
 
s32 unk_3C
 
sceVu0FVECTOR position
 
char unk_18 [32]
 
s32 unk_00
 
float raster_phase
 
float flame_phase
 
float cell_phase
 
float flicker_width
 
float flicker_height
 
s16 flicker_seed
 
s16 unk_1A
 
s32 flicker_count
 

Detailed Description

Draws a fire that gives off light in every direction, and the raster that it casts on the floor.

Definition at line 105 of file op_a.cpp.

Constructor & Destructor Documentation

◆ CFireOmni() [1/2]

CFireOmni::CFireOmni ( )

Definition at line 12 of file fireomni.cpp.

◆ CFireOmni() [2/2]

CFireOmni::CFireOmni ( )

Clears the fire's animation state and gives its cell phase a random start.

Mangled name:
__ct__9CFireOmniFv
Address:
0x161650
Size:
0x94

Member Function Documentation

◆ FireStep() [1/2]

void CFireOmni::FireStep ( )

Definition at line 27 of file fireomni.cpp.

◆ FireCreate() [1/2]

void CFireOmni::FireCreate ( )

Definition at line 43 of file fireomni.cpp.

◆ DrawFire() [1/2]

void CFireOmni::DrawFire ( int  unknown0,
int  unknown1,
CCamera *  camera,
float *  eye,
float  scale,
int  unknown2,
float  unknown3 
)

Definition at line 68 of file fireomni.cpp.

◆ SetPosition() [1/3]

void CFireOmni::SetPosition ( float  x,
float  y,
float  z 
)
inline

Definition at line 164 of file rushmovi.cpp.

◆ SetPosition() [2/3]

void CFireOmni::SetPosition ( float  x,
float  y,
float  z 
)
inline

Definition at line 176 of file title.cpp.

◆ SetPosition() [3/3]

void CFireOmni::SetPosition ( float  x,
float  y,
float  z 
)
inline

Definition at line 197 of file titleloop.cpp.

◆ FireStep() [2/2]

void CFireOmni::FireStep ( )

Advances the flame and cell animation phases and chooses the seed the next flicker draws from.

Mangled name:
FireStep__9CFireOmniFv
Address:
0x1616F0
Size:
0xD0

◆ FireCreate() [2/2]

void CFireOmni::FireCreate ( )

Composes the flame texture for the current cell phase out of the sheet the texture manager holds.

Mangled name:
FireCreate__9CFireOmniFv
Address:
0x1617C0
Size:
0x2D8

◆ SetTexture()

void CFireOmni::SetTexture ( CTexture *  core_texture,
CTexture *  glow_texture 
)

Supplies the two flame textures, so that drawing does not look them up for itself.

Mangled name:
SetTexture__9CFireOmniFP8CTextureP8CTexture
Address:
0x161AA0
Size:
0x18

Definition at line 62 of file fireomni.cpp.

◆ DrawFire() [2/2]

void CFireOmni::DrawFire ( int  unused0,
int  unused1,
CCamera *  camera,
float *  colour,
float  scale,
int  layers,
float  camera_offset 
)

Draws the flame as camera-facing sprites, one layer per bit of the layer mask.

Mangled name:
DrawFire__9CFireOmniFiiP7CCameraPffif
Address:
0x161AC0
Size:
0x7C0

◆ RasterStep()

void CFireOmni::RasterStep ( )

Advances and wraps the fire raster animation phase.

Mangled name:
RasterStep__9CFireOmniFv
Address:
0x162280
Size:
0x84

Definition at line 197 of file fireomni.cpp.

◆ DrawRaster()

void CFireOmni::DrawRaster ( )

Draws the light the fire casts on the floor, clipped to the screen.

Mangled name:
DrawRaster__9CFireOmniFv
Address:
0x162310
Size:
0x26C

Definition at line 206 of file fireomni.cpp.

Member Data Documentation

◆ unk_00 [1/2]

char CFireOmni::unk_00

Definition at line 107 of file op_a.cpp.

◆ pos

sceVu0FVECTOR CFireOmni::pos

World position DrawFire draws the next fire at.

World position that the fire draws at.

Definition at line 108 of file op_a.cpp.

◆ texture_set

s32 CFireOmni::texture_set

Indicates that the textures were supplied rather than looked up.

Definition at line 109 of file op_a.cpp.

◆ core

CTexture * CFireOmni::core

Bright inner texture of the flame.

Definition at line 110 of file op_a.cpp.

◆ glow

CTexture * CFireOmni::glow

Soft outer texture of the flame.

Definition at line 111 of file op_a.cpp.

◆ unk_3C

s32 CFireOmni::unk_3C

Definition at line 112 of file op_a.cpp.

◆ position

sceVu0FVECTOR CFireOmni::position

World position the fire draws at.

Definition at line 109 of file op_c.cpp.

◆ unk_18

char CFireOmni::unk_18

Definition at line 152 of file rushmovi.cpp.

◆ unk_00 [2/2]

s32 CFireOmni::unk_00

Definition at line 19 of file fireomni.hpp.

◆ raster_phase

float CFireOmni::raster_phase

Animation phase of the raster cast on the floor.

Definition at line 20 of file fireomni.hpp.

◆ flame_phase

float CFireOmni::flame_phase

Animation phase of the flame, wrapping at 128.

Definition at line 21 of file fireomni.hpp.

◆ cell_phase

float CFireOmni::cell_phase

Texture cell the flame draws, counting down to zero.

Definition at line 22 of file fireomni.hpp.

◆ flicker_width

float CFireOmni::flicker_width

Random width scale held between flicker steps.

Definition at line 23 of file fireomni.hpp.

◆ flicker_height

float CFireOmni::flicker_height

Random height scale held between flicker steps.

Definition at line 24 of file fireomni.hpp.

◆ flicker_seed

s16 CFireOmni::flicker_seed

Seed the flicker draw restarts the generator from.

Definition at line 25 of file fireomni.hpp.

◆ unk_1A

s16 CFireOmni::unk_1A

Definition at line 26 of file fireomni.hpp.

◆ flicker_count

s32 CFireOmni::flicker_count

Frames drawn since the flicker scales were last chosen.

Definition at line 27 of file fireomni.hpp.