DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
weaponelement.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "common.h"
4
5#include <libvu0.h>
6
13#define WEAPON_ELEMENT_SPARK_MAX 32
14
16#define WEAPON_ELEMENT_BOLT_MAX 16
17
30
37public:
38 sceVu0FVECTOR *origin;
39 u8 unk_04[0xC];
40 sceVu0FVECTOR fire_pos;
46 float spread;
47 s16 kind;
48 float power;
49 s16 on;
50 s16 count;
51 float scale;
73 void Initialize();
74
82 void Set(sceVu0FVECTOR *origin, float *position, float power, int kind, float spread);
83
91 void Step();
92
100 void Draw();
101
109 void Init_Holy(float *position);
110
118 void Step_Holy();
119
127 void Draw_Holy();
128
136 void Init_Cold(float *position);
137
145 void Step_Cold();
146
154 void Draw_Cold();
155
163 void Init_Wind(float *position);
164
172 void Step_Wind();
173
181 void Draw_Wind();
182
190 void Init_Fire(float *position);
191
199 void Step_Fire();
200
208 void Draw_Fire();
209
217 void Init_Thunder(float *position);
218
226 void Step_Thunder();
227
235 void Draw_Thunder();
236};
237
238STATIC_ASSERT(sizeof(CWeaponElement) == 0x7C0);
239
void Init_Fire(float *position)
float alpha[WEAPON_ELEMENT_SPARK_MAX]
s16 bolt_frame[WEAPON_ELEMENT_BOLT_MAX]
void Init_Cold(float *position)
sceVu0FVECTOR offset[WEAPON_ELEMENT_SPARK_MAX]
sceVu0FVECTOR velocity[WEAPON_ELEMENT_SPARK_MAX]
float shrink[WEAPON_ELEMENT_SPARK_MAX]
s16 bolt_head[WEAPON_ELEMENT_BOLT_MAX]
s16 fading[WEAPON_ELEMENT_SPARK_MAX]
float spin[WEAPON_ELEMENT_SPARK_MAX]
void Init_Thunder(float *position)
sceVu0FVECTOR fire_pos
s16 bolt_timer[WEAPON_ELEMENT_BOLT_MAX]
void Set(sceVu0FVECTOR *origin, float *position, float power, int kind, float spread)
void Init_Wind(float *position)
s16 bolt_tail[WEAPON_ELEMENT_BOLT_MAX]
float spin_speed[WEAPON_ELEMENT_SPARK_MAX]
float size[WEAPON_ELEMENT_SPARK_MAX]
sceVu0FVECTOR * origin
s16 frame[WEAPON_ELEMENT_SPARK_MAX]
void Init_Holy(float *position)
#define WEAPON_ELEMENT_BOLT_MAX
CWeaponElement CWeaponElFx[4]
#define WEAPON_ELEMENT_SPARK_MAX
WEAPON_ELEMENT_KIND
@ WEAPON_ELEMENT_THUNDER
@ WEAPON_ELEMENT_HOLY
@ WEAPON_ELEMENT_WIND
@ WEAPON_ELEMENT_COLD
@ WEAPON_ELEMENT_FIRE
@ WEAPON_ELEMENT_NONE