Isle
|
[AI] Represents a single generic animation keyframe, containing timing and per-keyframe flags. More...
#include <legoanim.h>
Public Types | |
enum | Flags { c_bit1 = 0x01 , c_bit2 = 0x02 , c_bit3 = 0x04 } |
[AI] Bitmask flag definitions for animation keys. More... | |
Public Member Functions | |
LegoAnimKey () | |
[AI] Constructs an animation key with zero time and cleared flags. More... | |
LegoResult | Read (LegoStorage *p_storage) |
[AI] Deserializes the animation key from storage. More... | |
LegoResult | Write (LegoStorage *p_storage) |
[AI] Serializes the animation key to storage. More... | |
LegoFloat | GetTime () |
[AI] Retrieves the time (frame/tick) of this key. More... | |
void | SetTime (MxS32 p_time) |
[AI] Sets the key's time (from an integer value, used during deserialization or legacy data). More... | |
LegoU32 | TestBit1 () |
[AI] Tests if flag bit1 is set. More... | |
LegoU32 | TestBit2 () |
[AI] Tests if flag bit2 is set. More... | |
LegoU32 | TestBit3 () |
[AI] Tests if flag bit3 is set. More... | |
void | FUN_100739a0 (MxS32 p_param) |
[AI] Sets or clears bit1 depending on the parameter. More... | |
Protected Attributes | |
LegoU8 | m_flags |
[AI] Flags controlling key behavior or interpolation (see Flags enum). More... | |
LegoFloat | m_time |
[AI] Time/sample/frame when this key occurs. More... | |
[AI] Represents a single generic animation keyframe, containing timing and per-keyframe flags.
[AI] LegoAnimKey is the base class for all key types (translation, rotation, scale, morph, unknown), encapsulating time and flags for interpolation and animation processing.
Definition at line 12 of file legoanim.h.
enum LegoAnimKey::Flags |
[AI] Bitmask flag definitions for animation keys.
Definition at line 15 of file legoanim.h.
LegoAnimKey::LegoAnimKey | ( | ) |
[AI] Constructs an animation key with zero time and cleared flags.
Definition at line 286 of file legoanim.cpp.
|
inline |
[AI] Sets or clears bit1 depending on the parameter.
Definition at line 34 of file legoanim.h.
|
inline |
[AI] Retrieves the time (frame/tick) of this key.
Definition at line 24 of file legoanim.h.
LegoResult LegoAnimKey::Read | ( | LegoStorage * | p_storage | ) |
[AI] Deserializes the animation key from storage.
p_storage | Storage object to read from. [AI] |
Definition at line 293 of file legoanim.cpp.
|
inline |
[AI] Sets the key's time (from an integer value, used during deserialization or legacy data).
Definition at line 27 of file legoanim.h.
|
inline |
[AI] Tests if flag bit1 is set.
Definition at line 29 of file legoanim.h.
|
inline |
[AI] Tests if flag bit2 is set.
Definition at line 30 of file legoanim.h.
|
inline |
[AI] Tests if flag bit3 is set.
Definition at line 31 of file legoanim.h.
LegoResult LegoAnimKey::Write | ( | LegoStorage * | p_storage | ) |
[AI] Serializes the animation key to storage.
p_storage | Storage object to write to. [AI] |
Definition at line 309 of file legoanim.cpp.
|
protected |
[AI] Flags controlling key behavior or interpolation (see Flags enum).
Definition at line 45 of file legoanim.h.
|
protected |
[AI] Time/sample/frame when this key occurs.
Definition at line 46 of file legoanim.h.