|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#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 |
Queues and advances character movement, rotation, and animation actions.
Definition at line 60 of file actionseq.hpp.
| CActionSeq::CActionSeq | ( | ) |
Creates an empty action sequencer.
Definition at line 15 of file actionseq.cpp.
| void CActionSeq::Initialize | ( | ACT_SEQ * | records, |
| int | count | ||
| ) |
Binds the action pool and clears playback state.
Definition at line 9 of file actionseq.cpp.
| void CActionSeq::ClearSeq | ( | ) |
Clears all queues and playback state.
Definition at line 19 of file actionseq.cpp.
| ACT_SEQ * CActionSeq::GetNextSeq | ( | ) |
Finds an unused action record in the pool.
Definition at line 41 of file actionseq.cpp.
| void CActionSeq::SyncChara | ( | CCharacter * | target | ) |
Copies the character transform into the sequencer.
Definition at line 55 of file actionseq.cpp.
| ACT_SEQ * CActionSeq::NextMoveSeq | ( | ) |
Appends an unused record to the movement queue.
Definition at line 68 of file actionseq.cpp.
| ACT_SEQ * CActionSeq::NextMotionSeq | ( | ) |
Appends an unused record to the motion queue.
Definition at line 89 of file actionseq.cpp.
| ACT_SEQ * CActionSeq::NextAnimeSeq | ( | ) |
Appends an unused record to the texture animation queue.
Definition at line 110 of file actionseq.cpp.
| void CActionSeq::MoveSeq | ( | float * | destination, |
| int | frames | ||
| ) |
Queues movement to a destination over the specified number of frames.
Definition at line 131 of file actionseq.cpp.
| void CActionSeq::MoveSeq | ( | float * | destination, |
| float | speed | ||
| ) |
Queues movement to a destination at the specified speed.
Definition at line 142 of file actionseq.cpp.
| void CActionSeq::MoveSeq | ( | int | frames | ) |
Queues a wait at the last queued destination for the specified number of frames.
Definition at line 153 of file actionseq.cpp.
| void CActionSeq::SetPos | ( | float * | destination | ) |
Queues an immediate position change.
Definition at line 157 of file actionseq.cpp.
| void CActionSeq::RotRefSeq | ( | float * | reference, |
| float | speed | ||
| ) |
Queues rotation toward a reference position.
Definition at line 168 of file actionseq.cpp.
| void CActionSeq::RotAngleSeq | ( | float | angle, |
| float | speed | ||
| ) |
Queues rotation toward a specified angle.
Definition at line 179 of file actionseq.cpp.
| void CActionSeq::RotMoveSeq | ( | float | speed | ) |
Queues rotation along the movement direction.
Definition at line 192 of file actionseq.cpp.
| void CActionSeq::ClearRotSeq | ( | ) |
Queues cancellation of automatic rotation.
Definition at line 202 of file actionseq.cpp.
| void CActionSeq::WaitRotSeq | ( | ) |
Queues a wait for automatic rotation to finish.
Definition at line 211 of file actionseq.cpp.
| void CActionSeq::SetRot | ( | float * | angles | ) |
Queues an immediate rotation change.
Definition at line 220 of file actionseq.cpp.
| void CActionSeq::SetDelayRot | ( | int | delay | ) |
Queues a delay before automatic rotation.
Definition at line 230 of file actionseq.cpp.
| void CActionSeq::MotionTrg | ( | int | delay | ) |
Queues a delayed motion trigger.
Definition at line 239 of file actionseq.cpp.
| void CActionSeq::AnimeTrg | ( | int | delay | ) |
Queues a delayed texture animation trigger.
Definition at line 248 of file actionseq.cpp.
| void CActionSeq::MotionSeq | ( | int | motion, |
| int | mode, | ||
| float | speed, | ||
| int | flags | ||
| ) |
Queues a character motion with playback parameters.
Definition at line 257 of file actionseq.cpp.
| void CActionSeq::AnimeSeq | ( | int | animation, |
| int | enabled, | ||
| int | frames, | ||
| int | disable_after | ||
| ) |
Queues a texture animation change.
Definition at line 270 of file actionseq.cpp.
| int CActionSeq::CheckEnd | ( | ) |
Reports whether movement and animation queues have finished.
Definition at line 286 of file actionseq.cpp.
| void CActionSeq::Play | ( | ) |
Advances queued actions and updates the character transform.
Advances queued actions and updates the bound character transform.
Definition at line 321 of file actionseq.cpp.
| ACT_SEQ* CActionSeq::move_head |
First movement action.
Definition at line 62 of file actionseq.hpp.
| ACT_SEQ* CActionSeq::move_tail |
Last movement action.
Definition at line 63 of file actionseq.hpp.
| u8 CActionSeq::unk_08[8] |
Definition at line 64 of file actionseq.hpp.
| float CActionSeq::position[4] |
Current movement position.
Definition at line 65 of file actionseq.hpp.
| float CActionSeq::start_position[4] |
Starting position for interpolation.
Definition at line 66 of file actionseq.hpp.
| float CActionSeq::queued_position[4] |
Destination of the last queued movement.
Definition at line 67 of file actionseq.hpp.
| int CActionSeq::move_frame |
Elapsed movement frames.
Definition at line 68 of file actionseq.hpp.
| int CActionSeq::anime_frame |
Elapsed texture animation frames.
Definition at line 69 of file actionseq.hpp.
| 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.
| int CActionSeq::rotation_complete |
Indicates that the rotation reached its target.
Definition at line 71 of file actionseq.hpp.
| int CActionSeq::rotation_delay |
Frames remaining before rotation advances.
Definition at line 72 of file actionseq.hpp.
| int CActionSeq::motion_trigger |
Enables queued motion playback.
Definition at line 73 of file actionseq.hpp.
| int CActionSeq::motion_delay |
Frames remaining before motion playback.
Definition at line 74 of file actionseq.hpp.
| int CActionSeq::anime_trigger |
Enables queued texture animation playback.
Definition at line 75 of file actionseq.hpp.
| int CActionSeq::anime_delay |
Frames remaining before texture animation playback.
Definition at line 76 of file actionseq.hpp.
| u8 CActionSeq::unk_64[12] |
Definition at line 77 of file actionseq.hpp.
| 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.
| ACT_SEQ* CActionSeq::rotation_head |
First rotation interpolation action.
Definition at line 79 of file actionseq.hpp.
| ACT_SEQ* CActionSeq::rotation_tail |
Last rotation interpolation action.
Definition at line 80 of file actionseq.hpp.
| u8 CActionSeq::unk_88[8] |
Definition at line 81 of file actionseq.hpp.
| float CActionSeq::rotation[4] |
Current character rotation.
Definition at line 82 of file actionseq.hpp.
| float CActionSeq::start_rotation[4] |
Starting rotation for interpolation.
Definition at line 83 of file actionseq.hpp.
| int CActionSeq::rotation_frame |
Elapsed rotation interpolation frames.
Definition at line 84 of file actionseq.hpp.
| ACT_SEQ* CActionSeq::motion_head |
First motion action.
Definition at line 85 of file actionseq.hpp.
| ACT_SEQ* CActionSeq::motion_tail |
Last motion action.
Definition at line 86 of file actionseq.hpp.
| ACT_SEQ* CActionSeq::anime_head |
First texture animation action.
Definition at line 87 of file actionseq.hpp.
| ACT_SEQ* CActionSeq::anime_tail |
Last texture animation action.
Definition at line 88 of file actionseq.hpp.
| int CActionSeq::capacity |
Number of records in the action pool.
Definition at line 89 of file actionseq.hpp.
| ACT_SEQ* CActionSeq::pool |
Storage for queued actions.
Definition at line 90 of file actionseq.hpp.
| CCharacter* CActionSeq::character |
Character receiving the actions.
Definition at line 91 of file actionseq.hpp.