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

Public Member Functions

void LoadPack (unsigned int *pack, char *base_name, CDataAlloc2< 1 > *model_arena, CDataAlloc2< 1 > *motion_arena, MOTION_INFO *motion_info, int initialize_frames)
 
void Step ()
 
void Draw ()
 

Public Attributes

CFrame * frame
 
u8 unk_04 [0xC]
 
tagMOTION_TYPE motion
 
int current_motion
 
u8 unk_94 [0xC]
 

Detailed Description

Definition at line 11 of file motionmodel.hpp.

Member Function Documentation

◆ LoadPack()

void CMotionModel::LoadPack ( unsigned int *  pack,
char *  base_name,
CDataAlloc2< 1 > *  model_arena,
CDataAlloc2< 1 > *  motion_arena,
MOTION_INFO *  motion_info,
int  initialize_frames 
)

Reads one model and its motions out of an archive into two arenas.

Mangled name:
LoadPack__12CMotionModelFPUiPcP14CDataAlloc2_1_P14CDataAlloc2_1_P11MOTION_INFOi
Address:
0x1B6A30
Size:
0x2A0

Definition at line 24 of file motionmodel.cpp.

◆ Step()

void CMotionModel::Step ( )

Advances the model's motion by a frame.

Mangled name:
Step__12CMotionModelFv
Address:
0x1B6CD0
Size:
0x68

Definition at line 94 of file motionmodel.cpp.

◆ Draw()

void CMotionModel::Draw ( )

Draws the model.

Mangled name:
Draw__12CMotionModelFv
Address:
0x1B6D40
Size:
0x2C

Definition at line 104 of file motionmodel.cpp.

Member Data Documentation

◆ frame

CFrame* CMotionModel::frame

Frame that draws the model.

Definition at line 13 of file motionmodel.hpp.

◆ unk_04

u8 CMotionModel::unk_04[0xC]

Definition at line 14 of file motionmodel.hpp.

◆ motion

tagMOTION_TYPE CMotionModel::motion

Motion data and playback state for the model.

Definition at line 15 of file motionmodel.hpp.

◆ current_motion

int CMotionModel::current_motion

Motion selected for the next playback step.

Definition at line 16 of file motionmodel.hpp.

◆ unk_94

u8 CMotionModel::unk_94[0xC]

Definition at line 17 of file motionmodel.hpp.