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

#include <hitvalue.hpp>

Public Member Functions

void EntryValue (float *world, int amount, int kind, CFrame *frame)
 
void Draw ()
 
void Step ()
 

Public Attributes

sceVu0FVECTOR pos
 
CFrame * frame
 
union { 
 
   float   digit_angle [5] 
 
   float   phase [5] 
 
};  
 
union { 
 
   s32   digits [5] 
 
   s32   digit [5] 
 
};  
 
union { 
 
   float   alpha 
 
   float   opacity 
 
};  
 
union { 
 
   float   alpha_speed 
 
   float   opacity_speed 
 
};  
 
union { 
 
   s32   last_digit 
 
   s32   unk_44 
 
};  
 
s32 kind
 
RECT texel
 
s32 active
 

Detailed Description

Holds one damage number standing over whatever took the hit.

Definition at line 27 of file hitvalue.hpp.

Member Function Documentation

◆ EntryValue()

void CHitValue::EntryValue ( float *  world,
int  amount,
int  kind,
CFrame *  frame 
)

Puts one damage number on the screen over what took the hit.

Mangled name:
EntryValue__9CHitValueFPfiiP6CFrame
Address:
0x1B6370
Size:
0x1E4

Definition at line 167 of file hitvalue.cpp.

◆ Draw()

void CHitValue::Draw ( )

Draws the damage numbers standing on the screen.

Mangled name:
Draw__9CHitValueFv
Address:
0x1B6560
Size:
0x2F0

Definition at line 235 of file hitvalue.cpp.

◆ Step()

void CHitValue::Step ( )

Advances the damage numbers' rise and fade.

Mangled name:
Step__9CHitValueFv
Address:
0x1B6850
Size:
0x198

Definition at line 283 of file hitvalue.cpp.

Member Data Documentation

◆ pos

sceVu0FVECTOR CHitValue::pos

World position the number is drawn above.

Definition at line 29 of file hitvalue.hpp.

◆ frame

CFrame* CHitValue::frame

Frame the number follows, or zero to stand still.

Definition at line 30 of file hitvalue.hpp.

◆ digit_angle

float CHitValue::digit_angle[5]

Hop angle of each place, rising to pi.

Definition at line 33 of file hitvalue.hpp.

◆ phase

float CHitValue::phase[5]

The hop angles, as the entry and draw routines name them.

Definition at line 34 of file hitvalue.hpp.

◆ digits

s32 CHitValue::digits[5]

Value of each place; -1 skips its hop and -2 draws the special mark.

Definition at line 38 of file hitvalue.hpp.

◆ digit

s32 CHitValue::digit[5]

The place values, as the entry and draw routines name them.

Definition at line 39 of file hitvalue.hpp.

◆ alpha

float CHitValue::alpha

Opacity of the number, from zero to 128.

Definition at line 43 of file hitvalue.hpp.

◆ opacity

float CHitValue::opacity

The opacity, as the entry and draw routines name it.

Definition at line 44 of file hitvalue.hpp.

◆ alpha_speed

float CHitValue::alpha_speed

Amount the opacity changes by each step.

Definition at line 48 of file hitvalue.hpp.

◆ opacity_speed

float CHitValue::opacity_speed

The opacity change per step, as the entry routine names it.

Definition at line 49 of file hitvalue.hpp.

◆ last_digit

s32 CHitValue::last_digit

Place whose finished hop starts the fade.

Definition at line 53 of file hitvalue.hpp.

◆ unk_44

s32 CHitValue::unk_44

Definition at line 54 of file hitvalue.hpp.

◆ kind

s32 CHitValue::kind

What took the hit, which picks the digit sheet.

See also
HitValueKind.

Definition at line 57 of file hitvalue.hpp.

◆ texel

RECT CHitValue::texel

Rectangle of the sheet one digit is cut from.

Definition at line 58 of file hitvalue.hpp.

◆ active

s32 CHitValue::active

Indicates that the slot is showing a number.

Definition at line 59 of file hitvalue.hpp.