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
13
enum
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
22
class
CFrame
;
23
27
class
CHitValue
{
28
public
:
29
sceVu0FVECTOR
pos
;
30
CFrame
*
frame
;
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
{
48
float
alpha_speed
;
49
float
opacity_speed
;
50
};
51
52
union
{
53
s32
last_digit
;
54
s32 unk_44;
55
};
56
57
s32
kind
;
58
RECT
texel
;
59
s32
active
;
68
void
EntryValue
(
float
*world,
int
amount,
int
kind
,
CFrame
*
frame
);
69
77
void
Draw
();
78
86
void
Step
();
87
};
88
97
void
HitValueEntry(
CHitValue
*values,
float
*world,
int
amount,
int
kind,
CFrame
*frame);
98
99
STATIC_ASSERT(
sizeof
(
CHitValue
) == 0x60);
100
102
extern
int
element_tbl[6];
103
107
extern
int
defWeapon__2[6];
CFrame
Definition
frame.hpp:58
CHitValue
Definition
hitvalue.hpp:27
CHitValue::EntryValue
void EntryValue(float *world, int amount, int kind, CFrame *frame)
Definition
hitvalue.cpp:167
CHitValue::opacity
float opacity
Definition
hitvalue.hpp:44
CHitValue::alpha_speed
float alpha_speed
Definition
hitvalue.hpp:48
CHitValue::Draw
void Draw()
Definition
hitvalue.cpp:235
CHitValue::kind
s32 kind
Definition
hitvalue.hpp:57
CHitValue::frame
CFrame * frame
Definition
hitvalue.hpp:30
CHitValue::Step
void Step()
Definition
hitvalue.cpp:283
CHitValue::pos
sceVu0FVECTOR pos
Definition
hitvalue.hpp:29
CHitValue::digit_angle
float digit_angle[5]
Definition
hitvalue.hpp:33
CHitValue::digit
s32 digit[5]
Definition
hitvalue.hpp:39
CHitValue::phase
float phase[5]
Definition
hitvalue.hpp:34
CHitValue::last_digit
s32 last_digit
Definition
hitvalue.hpp:53
CHitValue::digits
s32 digits[5]
Definition
hitvalue.hpp:38
CHitValue::active
s32 active
Definition
hitvalue.hpp:59
CHitValue::alpha
float alpha
Definition
hitvalue.hpp:43
CHitValue::texel
RECT texel
Definition
hitvalue.hpp:58
CHitValue::opacity_speed
float opacity_speed
Definition
hitvalue.hpp:49
rect.hpp
RECT
Definition
title.cpp:61
ps2
include
hitvalue.hpp
Generated by
1.9.8