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

#include <shot_firebar.hpp>

Public Member Functions

int Init (float *origin, float *direction, int collision_damage, int element)
 
int Set (float *origin, float *direction, int collision_damage, int element)
 
void Rset ()
 
void Step ()
 
void Draw ()
 

Public Attributes

float position [64][4]
 
float velocity [64][4]
 
float size [64]
 
float opacity [63]
 
s32 init_damage
 
s32 damage [63]
 
s32 init_element
 
s32 particle_element [64]
 
s32 state [64]
 
s32 start_index
 
u8 unk_D04 [0xC]
 

Detailed Description

Manages the particle state and rendering for Ozumond's fire stream.

Definition at line 10 of file shot_firebar.hpp.

Member Function Documentation

◆ Init()

int CSHOT_FIREBAR::Init ( float *  origin,
float *  direction,
int  collision_damage,
int  element 
)

Initializes a 24-particle fire stream from a position and direction.

Mangled name:
Init__13CSHOT_FIREBARFPfPfii
Address:
0x1AEB20
Size:
0x21C

Definition at line 17 of file shot_firebar.cpp.

◆ Set()

int CSHOT_FIREBAR::Set ( float *  origin,
float *  direction,
int  collision_damage,
int  element 
)

Emits a 24-particle fire stream from a position and direction.

Mangled name:
Set__13CSHOT_FIREBARFPfPfii
Address:
0x1AED40
Size:
0x21C

Definition at line 45 of file shot_firebar.cpp.

◆ Rset()

void CSHOT_FIREBAR::Rset ( )

Marks the first 24 fire-particle slots as inactive.

Mangled name:
Rset__13CSHOT_FIREBARFv
Address:
0x1AEF60
Size:
0x34

Definition at line 68 of file shot_firebar.cpp.

◆ Step()

void CSHOT_FIREBAR::Step ( )

Advances active fire particles and applies their periodic collision damage.

Mangled name:
Step__13CSHOT_FIREBARFv
Address:
0x1AEFA0
Size:
0x238

Definition at line 75 of file shot_firebar.cpp.

◆ Draw()

void CSHOT_FIREBAR::Draw ( )

Draws the active fire particles with their selected texture cells.

Mangled name:
Draw__13CSHOT_FIREBARFv
Address:
0x1AF1E0
Size:
0x180

Definition at line 111 of file shot_firebar.cpp.

Member Data Documentation

◆ position

float CSHOT_FIREBAR::position[64][4]

World positions for the fire particles.

Definition at line 12 of file shot_firebar.hpp.

◆ velocity

float CSHOT_FIREBAR::velocity[64][4]

Per-step movement vectors for the fire particles.

Definition at line 13 of file shot_firebar.hpp.

◆ size

float CSHOT_FIREBAR::size[64]

Display sizes for the fire particles.

Definition at line 14 of file shot_firebar.hpp.

◆ opacity

float CSHOT_FIREBAR::opacity[63]

Current opacity values for the fire particles.

Definition at line 15 of file shot_firebar.hpp.

◆ init_damage

s32 CSHOT_FIREBAR::init_damage

Collision damage given when the stream was initialized.

Definition at line 16 of file shot_firebar.hpp.

◆ damage

s32 CSHOT_FIREBAR::damage[63]

Collision damage values for the fire particles.

Definition at line 17 of file shot_firebar.hpp.

◆ init_element

s32 CSHOT_FIREBAR::init_element

Element given when the stream was initialized.

Definition at line 18 of file shot_firebar.hpp.

◆ particle_element

s32 CSHOT_FIREBAR::particle_element[64]

Weapon element of each fire particle, which picks its texture cell.

Definition at line 19 of file shot_firebar.hpp.

◆ state

s32 CSHOT_FIREBAR::state[64]

Activity states for the fire particles.

Definition at line 20 of file shot_firebar.hpp.

◆ start_index

s32 CSHOT_FIREBAR::start_index

First particle slot that initialization lays the stream out from.

Definition at line 21 of file shot_firebar.hpp.

◆ unk_D04

u8 CSHOT_FIREBAR::unk_D04[0xC]

Definition at line 22 of file shot_firebar.hpp.