DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
hitvalue.hpp
1#pragma once
2
3#include "common.h"
4
5#include <libvu0.h>
6
7#include "rect.hpp"
8
12// clang-format off
13enum HitValueKind {
14 HIT_VALUE_ZERO = -1,
15 HIT_VALUE_MONSTER = 0,
16 HIT_VALUE_GOLD = 1,
17 HIT_VALUE_PLAYER = 2,
18};
19
20// clang-format on
21
22class CFrame;
23
27class CHitValue {
28public:
29 sceVu0FVECTOR pos;
32 union {
33 float digit_angle[5];
34 float phase[5];
35 };
36
37 union {
38 s32 digits[5];
39 s32 digit[5];
40 };
41
42 union {
43 float alpha;
44 float opacity;
45 };
46
47 union {
50 };
51
52 union {
54 s32 unk_44;
55 };
56
57 s32 kind;
59 s32 active;
68 void EntryValue(float *world, int amount, int kind, CFrame *frame);
69
77 void Draw();
78
86 void Step();
87};
88
97void HitValueEntry(CHitValue *values, float *world, int amount, int kind, CFrame *frame);
98
99STATIC_ASSERT(sizeof(CHitValue) == 0x60);
100
102extern int element_tbl[6];
103
107extern int defWeapon__2[6];
void EntryValue(float *world, int amount, int kind, CFrame *frame)
Definition hitvalue.cpp:167
float opacity
Definition hitvalue.hpp:44
float alpha_speed
Definition hitvalue.hpp:48
void Draw()
Definition hitvalue.cpp:235
CFrame * frame
Definition hitvalue.hpp:30
void Step()
Definition hitvalue.cpp:283
sceVu0FVECTOR pos
Definition hitvalue.hpp:29
float digit_angle[5]
Definition hitvalue.hpp:33
s32 digit[5]
Definition hitvalue.hpp:39
float phase[5]
Definition hitvalue.hpp:34
s32 last_digit
Definition hitvalue.hpp:53
s32 digits[5]
Definition hitvalue.hpp:38
float alpha
Definition hitvalue.hpp:43
RECT texel
Definition hitvalue.hpp:58
float opacity_speed
Definition hitvalue.hpp:49
Definition title.cpp:61