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

Public Member Functions

 CMajinBeem ()
 
void Initialize ()
 
void Draw (CCamera *camera)
 
void Draw2 (CCamera *camera, float *head, float *source)
 
void Step ()
 

Public Attributes

sceVu0FVECTOR positions [60]
 
sceVu0FVECTOR target
 
int state
 
int counters [60]
 
float sizes [60]
 
float alphas [60]
 
int active
 
float pitch
 
float yaw
 
float speed
 
u8 unk_6b4 [0xc]
 

Detailed Description

Definition at line 23 of file majinbeem.hpp.

Constructor & Destructor Documentation

◆ CMajinBeem()

CMajinBeem::CMajinBeem ( )

Initializes the beam before it is fired.

Mangled name:
__ct__10CMajinBeemFv
Address:
0x1434C0
Size:
0x30

Definition at line 1754 of file main.cpp.

Member Function Documentation

◆ Initialize()

void CMajinBeem::Initialize ( )

Drops the beam, so that nothing draws until it is fired again.

Mangled name:
Initialize__10CMajinBeemFv
Address:
0x1434F0
Size:
0x10

Clears the beam effect.

Mangled name:
Initialize__10CMajinBeemFv
Address:
0x1434F0
Size:
0x10

Definition at line 1765 of file main.cpp.

◆ Draw()

void CMajinBeem::Draw ( CCamera *  camera)

Draws the beam trail as camera-facing sprites.

Mangled name:
Draw__10CMajinBeemFP7CCamera
Address:
0x1DADD50
Size:
0x250

Definition at line 16 of file majinbeem.cpp.

◆ Draw2()

void CMajinBeem::Draw2 ( CCamera *  camera,
float *  head,
float *  source 
)

Draws and contracts the beam's leading sprite.

Mangled name:
Draw2__10CMajinBeemFP7CCameraPfPf
Address:
0x1DADFA0
Size:
0x394

Definition at line 87 of file majinbeem.cpp.

◆ Step()

void CMajinBeem::Step ( )

Advances the beam and records its trail positions.

Mangled name:
Step__10CMajinBeemFv
Address:
0x1DAE340
Size:
0x24C

Definition at line 166 of file majinbeem.cpp.

Member Data Documentation

◆ positions

sceVu0FVECTOR CMajinBeem::positions[60]

Trail element positions, the head first.

Definition at line 25 of file majinbeem.hpp.

◆ target

sceVu0FVECTOR CMajinBeem::target

Point the beam is aimed at on its first step.

Definition at line 26 of file majinbeem.hpp.

◆ state

int CMajinBeem::state

What the beam is doing.

See also
MajinBeemState.

Definition at line 27 of file majinbeem.hpp.

◆ counters

int CMajinBeem::counters[60]

Ages of the recorded trail elements.

Definition at line 28 of file majinbeem.hpp.

◆ sizes

float CMajinBeem::sizes[60]

Draw sizes of the trail elements.

Definition at line 29 of file majinbeem.hpp.

◆ alphas

float CMajinBeem::alphas[60]

Alpha values of the trail elements.

Definition at line 30 of file majinbeem.hpp.

◆ active

int CMajinBeem::active

Whether the beam is active.

Definition at line 31 of file majinbeem.hpp.

◆ pitch

float CMajinBeem::pitch

Vertical travel angle.

Definition at line 32 of file majinbeem.hpp.

◆ yaw

float CMajinBeem::yaw

Horizontal travel angle.

Definition at line 33 of file majinbeem.hpp.

◆ speed

float CMajinBeem::speed

Distance travelled during each update.

Definition at line 34 of file majinbeem.hpp.

◆ unk_6b4

u8 CMajinBeem::unk_6b4[0xc]

Definition at line 35 of file majinbeem.hpp.