|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#include <weaponelement.hpp>
Public Member Functions | |
| void | Initialize () |
| void | Set (sceVu0FVECTOR *origin, float *position, float power, int kind, float spread) |
| void | Step () |
| void | Draw () |
| void | Init_Holy (float *position) |
| void | Step_Holy () |
| void | Draw_Holy () |
| void | Init_Cold (float *position) |
| void | Step_Cold () |
| void | Draw_Cold () |
| void | Init_Wind (float *position) |
| void | Step_Wind () |
| void | Draw_Wind () |
| void | Init_Fire (float *position) |
| void | Step_Fire () |
| void | Draw_Fire () |
| void | Init_Thunder (float *position) |
| void | Step_Thunder () |
| void | Draw_Thunder () |
Public Attributes | |
| sceVu0FVECTOR * | origin |
| u8 | unk_04 [0xC] |
| sceVu0FVECTOR | fire_pos |
| sceVu0FVECTOR | offset [WEAPON_ELEMENT_SPARK_MAX] |
| sceVu0FVECTOR | velocity [WEAPON_ELEMENT_SPARK_MAX] |
| float | size [WEAPON_ELEMENT_SPARK_MAX] |
| float | shrink [WEAPON_ELEMENT_SPARK_MAX] |
| float | alpha [WEAPON_ELEMENT_SPARK_MAX] |
| float | spread |
| s16 | kind |
| float | power |
| s16 | on |
| s16 | count |
| float | scale |
| float | spin [WEAPON_ELEMENT_SPARK_MAX] |
| float | spin_speed [WEAPON_ELEMENT_SPARK_MAX] |
| s16 | spawn_delay_max |
| s16 | spawn_delay |
| s16 | spawn_budget |
| s16 | fading [WEAPON_ELEMENT_SPARK_MAX] |
| s16 | frame [WEAPON_ELEMENT_SPARK_MAX] |
| s16 | frame_timer |
| s16 | bolt_head [WEAPON_ELEMENT_BOLT_MAX] |
| s16 | bolt_tail [WEAPON_ELEMENT_BOLT_MAX] |
| s16 | bolt_timer [WEAPON_ELEMENT_BOLT_MAX] |
| s16 | bolt_frame [WEAPON_ELEMENT_BOLT_MAX] |
| s16 | bolt_count |
Throws a cloud of sparks off a weapon for as long as its element is charged, giving each spark the motion its element calls for and drawing them all from the one "element" texture.
Definition at line 36 of file weaponelement.hpp.
| void CWeaponElement::Initialize | ( | ) |
Frees every spark slot, so that the cloud throws nothing.
Definition at line 16 of file weaponelement.cpp.
| void CWeaponElement::Set | ( | sceVu0FVECTOR * | origin, |
| float * | position, | ||
| float | power, | ||
| int | kind, | ||
| float | spread | ||
| ) |
Charges the cloud with one element and starts its first sparks.
Definition at line 27 of file weaponelement.cpp.
| void CWeaponElement::Step | ( | ) |
Moves the cloud one step, by the way the charged element calls for.
Definition at line 55 of file weaponelement.cpp.
| void CWeaponElement::Draw | ( | ) |
Draws the cloud, by the way the charged element calls for.
Definition at line 78 of file weaponelement.cpp.
| void CWeaponElement::Init_Holy | ( | float * | position | ) |
Starts a cloud of sparks that rise slowly away from the blade.
Definition at line 101 of file weaponelement.cpp.
| void CWeaponElement::Step_Holy | ( | ) |
Raises every holy spark, and starts free slots again while the budget lasts.
Definition at line 128 of file weaponelement.cpp.
| void CWeaponElement::Draw_Holy | ( | ) |
Draws every holy spark that still carries a blend.
Definition at line 201 of file weaponelement.cpp.
| void CWeaponElement::Init_Cold | ( | float * | position | ) |
Starts a cloud of sparks that fall away from the blade.
Definition at line 250 of file weaponelement.cpp.
| void CWeaponElement::Step_Cold | ( | ) |
Drops every cold spark, and starts free slots again while the budget lasts.
Definition at line 277 of file weaponelement.cpp.
| void CWeaponElement::Draw_Cold | ( | ) |
Draws every cold spark that still carries a blend.
Definition at line 349 of file weaponelement.cpp.
| void CWeaponElement::Init_Wind | ( | float * | position | ) |
Starts a cloud of sparks that blow away on a rising wind, each spinning.
Definition at line 398 of file weaponelement.cpp.
| void CWeaponElement::Step_Wind | ( | ) |
Blows every wind spark along, turning it, and starts free slots again.
Definition at line 432 of file weaponelement.cpp.
| void CWeaponElement::Draw_Wind | ( | ) |
Draws every wind spark, turned about the vertical by the spin it carries.
Definition at line 511 of file weaponelement.cpp.
| void CWeaponElement::Init_Fire | ( | float * | position | ) |
Starts a cloud of sparks that drift upward off the blade.
Definition at line 567 of file weaponelement.cpp.
| void CWeaponElement::Step_Fire | ( | ) |
Raises every fire spark, and starts free slots again while the budget lasts.
Definition at line 597 of file weaponelement.cpp.
| void CWeaponElement::Draw_Fire | ( | ) |
Draws every fire spark that still carries a blend.
Definition at line 669 of file weaponelement.cpp.
| void CWeaponElement::Init_Thunder | ( | float * | position | ) |
Starts a cloud of sparks that fly apart, and the bolts that arc between them.
Definition at line 718 of file weaponelement.cpp.
| void CWeaponElement::Step_Thunder | ( | ) |
Carries every thunder spark along its own line, and gives the bolts new ends.
Definition at line 752 of file weaponelement.cpp.
| void CWeaponElement::Draw_Thunder | ( | ) |
Draws every thunder spark, then a bolt across each pair the charge picked.
Definition at line 796 of file weaponelement.cpp.
| sceVu0FVECTOR* CWeaponElement::origin |
Point the cloud is drawn around, held by the weapon.
Definition at line 38 of file weaponelement.hpp.
| u8 CWeaponElement::unk_04[0xC] |
Definition at line 39 of file weaponelement.hpp.
| sceVu0FVECTOR CWeaponElement::fire_pos |
Point the fire element was started at, which its sparks stay around.
Definition at line 40 of file weaponelement.hpp.
| sceVu0FVECTOR CWeaponElement::offset[WEAPON_ELEMENT_SPARK_MAX] |
Distance of each spark from the origin.
Definition at line 41 of file weaponelement.hpp.
| sceVu0FVECTOR CWeaponElement::velocity[WEAPON_ELEMENT_SPARK_MAX] |
Distance each spark moves per step.
Definition at line 42 of file weaponelement.hpp.
| float CWeaponElement::size[WEAPON_ELEMENT_SPARK_MAX] |
Width each spark draws at before it shrinks.
Definition at line 43 of file weaponelement.hpp.
| float CWeaponElement::shrink[WEAPON_ELEMENT_SPARK_MAX] |
Share of the width left, from one down to nothing.
Definition at line 44 of file weaponelement.hpp.
| float CWeaponElement::alpha[WEAPON_ELEMENT_SPARK_MAX] |
Blend each spark draws at; nothing means the slot is free.
Definition at line 45 of file weaponelement.hpp.
| float CWeaponElement::spread |
Distance from the origin that a new spark can start.
Definition at line 46 of file weaponelement.hpp.
| s16 CWeaponElement::kind |
Element the weapon is charged with.
Definition at line 47 of file weaponelement.hpp.
| float CWeaponElement::power |
Strength of the charge, which sets the count and the size.
Definition at line 48 of file weaponelement.hpp.
| s16 CWeaponElement::on |
1 while any spark still draws.
Definition at line 49 of file weaponelement.hpp.
| s16 CWeaponElement::count |
Number of sparks the charge starts with.
Definition at line 50 of file weaponelement.hpp.
| float CWeaponElement::scale |
Width every spark is drawn at, over the size it carries.
Definition at line 51 of file weaponelement.hpp.
| float CWeaponElement::spin[WEAPON_ELEMENT_SPARK_MAX] |
Angle each spark is turned about the vertical.
Definition at line 52 of file weaponelement.hpp.
| float CWeaponElement::spin_speed[WEAPON_ELEMENT_SPARK_MAX] |
Angle the spin turns each step.
Definition at line 53 of file weaponelement.hpp.
| s16 CWeaponElement::spawn_delay_max |
Longest wait between two sparks being started again.
Definition at line 54 of file weaponelement.hpp.
| s16 CWeaponElement::spawn_delay |
Steps left before the next spark is started again.
Definition at line 55 of file weaponelement.hpp.
| s16 CWeaponElement::spawn_budget |
Number of sparks the charge can still start again.
Definition at line 56 of file weaponelement.hpp.
| s16 CWeaponElement::fading[WEAPON_ELEMENT_SPARK_MAX] |
0 while a spark brightens, 1 once it is fading out.
Definition at line 57 of file weaponelement.hpp.
| s16 CWeaponElement::frame[WEAPON_ELEMENT_SPARK_MAX] |
Row of the texture each spark draws.
Definition at line 58 of file weaponelement.hpp.
| s16 CWeaponElement::frame_timer |
Counts four steps down, and the sparks pick new rows on the fourth.
Definition at line 59 of file weaponelement.hpp.
| s16 CWeaponElement::bolt_head[WEAPON_ELEMENT_BOLT_MAX] |
Spark each bolt arcs from.
Definition at line 60 of file weaponelement.hpp.
| s16 CWeaponElement::bolt_tail[WEAPON_ELEMENT_BOLT_MAX] |
Spark each bolt arcs to.
Definition at line 61 of file weaponelement.hpp.
| s16 CWeaponElement::bolt_timer[WEAPON_ELEMENT_BOLT_MAX] |
Steps left before a bolt picks new ends.
Definition at line 62 of file weaponelement.hpp.
| s16 CWeaponElement::bolt_frame[WEAPON_ELEMENT_BOLT_MAX] |
Part of the texture each bolt draws.
Definition at line 63 of file weaponelement.hpp.
| s16 CWeaponElement::bolt_count |
Number of bolts the charge arcs between its sparks.
Definition at line 64 of file weaponelement.hpp.