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

#include <actionseq.hpp>

Public Member Functions

void Initialize (ACT_SEQ *records, int count)
 
 CActionSeq ()
 
void ClearSeq ()
 
ACT_SEQ * GetNextSeq ()
 
void SyncChara (CCharacter *target)
 
ACT_SEQ * NextMoveSeq ()
 
ACT_SEQ * NextMotionSeq ()
 
ACT_SEQ * NextAnimeSeq ()
 
void MoveSeq (float *destination, int frames)
 
void MoveSeq (float *destination, float speed)
 
void MoveSeq (int frames)
 
void SetPos (float *destination)
 
void RotRefSeq (float *reference, float speed)
 
void RotAngleSeq (float angle, float speed)
 
void RotMoveSeq (float speed)
 
void ClearRotSeq ()
 
void WaitRotSeq ()
 
void SetRot (float *angles)
 
void SetDelayRot (int delay)
 
void MotionTrg (int delay)
 
void AnimeTrg (int delay)
 
void MotionSeq (int motion, int mode, float speed, int flags)
 
void AnimeSeq (int animation, int enabled, int frames, int disable_after)
 
int CheckEnd ()
 
void Play ()
 

Public Attributes

ACT_SEQ * move_head
 
ACT_SEQ * move_tail
 
u8 unk_08 [8]
 
float position [4]
 
float start_position [4]
 
float queued_position [4]
 
int move_frame
 
int anime_frame
 
int rotation_mode
 
int rotation_complete
 
int rotation_delay
 
int motion_trigger
 
int motion_delay
 
int anime_trigger
 
int anime_delay
 
u8 unk_64 [12]
 
float rotation_target [4]
 
ACT_SEQ * rotation_head
 
ACT_SEQ * rotation_tail
 
u8 unk_88 [8]
 
float rotation [4]
 
float start_rotation [4]
 
int rotation_frame
 
ACT_SEQ * motion_head
 
ACT_SEQ * motion_tail
 
ACT_SEQ * anime_head
 
ACT_SEQ * anime_tail
 
int capacity
 
ACT_SEQ * pool
 
CCharacter * character
 

Detailed Description

Queues and advances character movement, rotation, and animation actions.

Definition at line 60 of file actionseq.hpp.

Constructor & Destructor Documentation

◆ CActionSeq()

CActionSeq::CActionSeq ( )

Creates an empty action sequencer.

Mangled name:
__ct__10CActionSeqFv
Address:
0x154B80
Size:
0x38

Definition at line 15 of file actionseq.cpp.

Member Function Documentation

◆ Initialize()

void CActionSeq::Initialize ( ACT_SEQ *  records,
int  count 
)

Binds the action pool and clears playback state.

Mangled name:
Initialize__10CActionSeqFP7ACT_SEQi
Address:
0x154B30
Size:
0x4C

Definition at line 9 of file actionseq.cpp.

◆ ClearSeq()

void CActionSeq::ClearSeq ( )

Clears all queues and playback state.

Mangled name:
ClearSeq__10CActionSeqFv
Address:
0x154BC0
Size:
0x54

Definition at line 19 of file actionseq.cpp.

◆ GetNextSeq()

ACT_SEQ * CActionSeq::GetNextSeq ( )

Finds an unused action record in the pool.

Mangled name:
GetNextSeq__10CActionSeqFv
Address:
0x154C20
Size:
0x4C

Definition at line 41 of file actionseq.cpp.

◆ SyncChara()

void CActionSeq::SyncChara ( CCharacter *  target)

Copies the character transform into the sequencer.

Mangled name:
SyncChara__10CActionSeqFP10CCharacter
Address:
0x154C70
Size:
0x8C

Definition at line 55 of file actionseq.cpp.

◆ NextMoveSeq()

ACT_SEQ * CActionSeq::NextMoveSeq ( )

Appends an unused record to the movement queue.

Mangled name:
NextMoveSeq__10CActionSeqFv
Address:
0x154D00
Size:
0x68

Definition at line 68 of file actionseq.cpp.

◆ NextMotionSeq()

ACT_SEQ * CActionSeq::NextMotionSeq ( )

Appends an unused record to the motion queue.

Mangled name:
NextMotionSeq__10CActionSeqFv
Address:
0x154D70
Size:
0x68

Definition at line 89 of file actionseq.cpp.

◆ NextAnimeSeq()

ACT_SEQ * CActionSeq::NextAnimeSeq ( )

Appends an unused record to the texture animation queue.

Mangled name:
NextAnimeSeq__10CActionSeqFv
Address:
0x154DE0
Size:
0x68

Definition at line 110 of file actionseq.cpp.

◆ MoveSeq() [1/3]

void CActionSeq::MoveSeq ( float *  destination,
int  frames 
)

Queues movement to a destination over the specified number of frames.

Mangled name:
MoveSeq__10CActionSeqFPfi
Address:
0x154E50
Size:
0x84

Definition at line 131 of file actionseq.cpp.

◆ MoveSeq() [2/3]

void CActionSeq::MoveSeq ( float *  destination,
float  speed 
)

Queues movement to a destination at the specified speed.

Mangled name:
MoveSeq__10CActionSeqFPff
Address:
0x154EE0
Size:
0xB0

Definition at line 142 of file actionseq.cpp.

◆ MoveSeq() [3/3]

void CActionSeq::MoveSeq ( int  frames)

Queues a wait at the last queued destination for the specified number of frames.

Mangled name:
MoveSeq__10CActionSeqFi
Address:
0x154F90
Size:
0x28

Definition at line 153 of file actionseq.cpp.

◆ SetPos()

void CActionSeq::SetPos ( float *  destination)

Queues an immediate position change.

Mangled name:
SetPos__10CActionSeqFPf
Address:
0x154FC0
Size:
0x78

Definition at line 157 of file actionseq.cpp.

◆ RotRefSeq()

void CActionSeq::RotRefSeq ( float *  reference,
float  speed 
)

Queues rotation toward a reference position.

Mangled name:
RotRefSeq__10CActionSeqFPff
Address:
0x155040
Size:
0x6C

Definition at line 168 of file actionseq.cpp.

◆ RotAngleSeq()

void CActionSeq::RotAngleSeq ( float  angle,
float  speed 
)

Queues rotation toward a specified angle.

Mangled name:
RotAngleSeq__10CActionSeqFff
Address:
0x1550B0
Size:
0x5C

Definition at line 179 of file actionseq.cpp.

◆ RotMoveSeq()

void CActionSeq::RotMoveSeq ( float  speed)

Queues rotation along the movement direction.

Mangled name:
RotMoveSeq__10CActionSeqFf
Address:
0x155110
Size:
0x44

Definition at line 192 of file actionseq.cpp.

◆ ClearRotSeq()

void CActionSeq::ClearRotSeq ( )

Queues cancellation of automatic rotation.

Mangled name:
ClearRotSeq__10CActionSeqFv
Address:
0x155160
Size:
0x34

Definition at line 202 of file actionseq.cpp.

◆ WaitRotSeq()

void CActionSeq::WaitRotSeq ( )

Queues a wait for automatic rotation to finish.

Mangled name:
WaitRotSeq__10CActionSeqFv
Address:
0x1551A0
Size:
0x34

Definition at line 211 of file actionseq.cpp.

◆ SetRot()

void CActionSeq::SetRot ( float *  angles)

Queues an immediate rotation change.

Mangled name:
SetRot__10CActionSeqFPf
Address:
0x1551E0
Size:
0x5C

Definition at line 220 of file actionseq.cpp.

◆ SetDelayRot()

void CActionSeq::SetDelayRot ( int  delay)

Queues a delay before automatic rotation.

Mangled name:
SetDelayRot__10CActionSeqFi
Address:
0x155240
Size:
0x40

Definition at line 230 of file actionseq.cpp.

◆ MotionTrg()

void CActionSeq::MotionTrg ( int  delay)

Queues a delayed motion trigger.

Mangled name:
MotionTrg__10CActionSeqFi
Address:
0x155280
Size:
0x40

Definition at line 239 of file actionseq.cpp.

◆ AnimeTrg()

void CActionSeq::AnimeTrg ( int  delay)

Queues a delayed texture animation trigger.

Mangled name:
AnimeTrg__10CActionSeqFi
Address:
0x1552C0
Size:
0x40

Definition at line 248 of file actionseq.cpp.

◆ MotionSeq()

void CActionSeq::MotionSeq ( int  motion,
int  mode,
float  speed,
int  flags 
)

Queues a character motion with playback parameters.

Mangled name:
MotionSeq__10CActionSeqFiifi
Address:
0x155300
Size:
0x78

Definition at line 257 of file actionseq.cpp.

◆ AnimeSeq()

void CActionSeq::AnimeSeq ( int  animation,
int  enabled,
int  frames,
int  disable_after 
)

Queues a texture animation change.

Mangled name:
AnimeSeq__10CActionSeqFiiii
Address:
0x155380
Size:
0x7C

Definition at line 270 of file actionseq.cpp.

◆ CheckEnd()

int CActionSeq::CheckEnd ( )

Reports whether movement and animation queues have finished.

Mangled name:
CheckEnd__10CActionSeqFv
Address:
0x155400
Size:
0x68

Definition at line 286 of file actionseq.cpp.

◆ Play()

void CActionSeq::Play ( )

Advances queued actions and updates the character transform.

Mangled name:
Play__10CActionSeqFv
Address:
0x1554A0
Size:
0xB04

Advances queued actions and updates the bound character transform.

Mangled name:
Play__10CActionSeqFv
Address:
0x1554A0
Size:
0xB04

Definition at line 321 of file actionseq.cpp.

Member Data Documentation

◆ move_head

ACT_SEQ* CActionSeq::move_head

First movement action.

Definition at line 62 of file actionseq.hpp.

◆ move_tail

ACT_SEQ* CActionSeq::move_tail

Last movement action.

Definition at line 63 of file actionseq.hpp.

◆ unk_08

u8 CActionSeq::unk_08[8]

Definition at line 64 of file actionseq.hpp.

◆ position

float CActionSeq::position[4]

Current movement position.

Definition at line 65 of file actionseq.hpp.

◆ start_position

float CActionSeq::start_position[4]

Starting position for interpolation.

Definition at line 66 of file actionseq.hpp.

◆ queued_position

float CActionSeq::queued_position[4]

Destination of the last queued movement.

Definition at line 67 of file actionseq.hpp.

◆ move_frame

int CActionSeq::move_frame

Elapsed movement frames.

Definition at line 68 of file actionseq.hpp.

◆ anime_frame

int CActionSeq::anime_frame

Elapsed texture animation frames.

Definition at line 69 of file actionseq.hpp.

◆ rotation_mode

int CActionSeq::rotation_mode

Active automatic rotation: 0 none, 1 face the reference, 2 face the movement, 3 turn to an angle.

Definition at line 70 of file actionseq.hpp.

◆ rotation_complete

int CActionSeq::rotation_complete

Indicates that the rotation reached its target.

Definition at line 71 of file actionseq.hpp.

◆ rotation_delay

int CActionSeq::rotation_delay

Frames remaining before rotation advances.

Definition at line 72 of file actionseq.hpp.

◆ motion_trigger

int CActionSeq::motion_trigger

Enables queued motion playback.

Definition at line 73 of file actionseq.hpp.

◆ motion_delay

int CActionSeq::motion_delay

Frames remaining before motion playback.

Definition at line 74 of file actionseq.hpp.

◆ anime_trigger

int CActionSeq::anime_trigger

Enables queued texture animation playback.

Definition at line 75 of file actionseq.hpp.

◆ anime_delay

int CActionSeq::anime_delay

Frames remaining before texture animation playback.

Definition at line 76 of file actionseq.hpp.

◆ unk_64

u8 CActionSeq::unk_64[12]

Definition at line 77 of file actionseq.hpp.

◆ rotation_target

float CActionSeq::rotation_target[4]

Reference position or target angles for rotation; the last element holds the turn speed.

Definition at line 78 of file actionseq.hpp.

◆ rotation_head

ACT_SEQ* CActionSeq::rotation_head

First rotation interpolation action.

Definition at line 79 of file actionseq.hpp.

◆ rotation_tail

ACT_SEQ* CActionSeq::rotation_tail

Last rotation interpolation action.

Definition at line 80 of file actionseq.hpp.

◆ unk_88

u8 CActionSeq::unk_88[8]

Definition at line 81 of file actionseq.hpp.

◆ rotation

float CActionSeq::rotation[4]

Current character rotation.

Definition at line 82 of file actionseq.hpp.

◆ start_rotation

float CActionSeq::start_rotation[4]

Starting rotation for interpolation.

Definition at line 83 of file actionseq.hpp.

◆ rotation_frame

int CActionSeq::rotation_frame

Elapsed rotation interpolation frames.

Definition at line 84 of file actionseq.hpp.

◆ motion_head

ACT_SEQ* CActionSeq::motion_head

First motion action.

Definition at line 85 of file actionseq.hpp.

◆ motion_tail

ACT_SEQ* CActionSeq::motion_tail

Last motion action.

Definition at line 86 of file actionseq.hpp.

◆ anime_head

ACT_SEQ* CActionSeq::anime_head

First texture animation action.

Definition at line 87 of file actionseq.hpp.

◆ anime_tail

ACT_SEQ* CActionSeq::anime_tail

Last texture animation action.

Definition at line 88 of file actionseq.hpp.

◆ capacity

int CActionSeq::capacity

Number of records in the action pool.

Definition at line 89 of file actionseq.hpp.

◆ pool

ACT_SEQ* CActionSeq::pool

Storage for queued actions.

Definition at line 90 of file actionseq.hpp.

◆ character

CCharacter* CActionSeq::character

Character receiving the actions.

Definition at line 91 of file actionseq.hpp.