Isle
Loading...
Searching...
No Matches
LegoAnimKey Class Reference

[AI] Represents a single generic animation keyframe, containing timing and per-keyframe flags. More...

#include <legoanim.h>

Inheritance diagram for LegoAnimKey:

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...
 

Detailed Description

[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.

Member Enumeration Documentation

◆ Flags

[AI] Bitmask flag definitions for animation keys.

Enumerator
c_bit1 

[AI] Indicates if the key affects the output (meaning depends on derived type).

c_bit2 

[AI] Secondary bit, meaning varies by context.

c_bit3 

[AI] Third bit, used for certain special processing during animation.

Definition at line 15 of file legoanim.h.

Constructor & Destructor Documentation

◆ LegoAnimKey()

LegoAnimKey::LegoAnimKey ( )

[AI] Constructs an animation key with zero time and cleared flags.

Definition at line 286 of file legoanim.cpp.

Member Function Documentation

◆ FUN_100739a0()

void LegoAnimKey::FUN_100739a0 ( MxS32  p_param)
inline

[AI] Sets or clears bit1 depending on the parameter.

Definition at line 34 of file legoanim.h.

◆ GetTime()

LegoFloat LegoAnimKey::GetTime ( )
inline

[AI] Retrieves the time (frame/tick) of this key.

Definition at line 24 of file legoanim.h.

◆ Read()

LegoResult LegoAnimKey::Read ( LegoStorage p_storage)

[AI] Deserializes the animation key from storage.

Parameters
p_storageStorage object to read from. [AI]

Definition at line 293 of file legoanim.cpp.

◆ SetTime()

void LegoAnimKey::SetTime ( MxS32  p_time)
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.

◆ TestBit1()

LegoU32 LegoAnimKey::TestBit1 ( )
inline

[AI] Tests if flag bit1 is set.

Definition at line 29 of file legoanim.h.

◆ TestBit2()

LegoU32 LegoAnimKey::TestBit2 ( )
inline

[AI] Tests if flag bit2 is set.

Definition at line 30 of file legoanim.h.

◆ TestBit3()

LegoU32 LegoAnimKey::TestBit3 ( )
inline

[AI] Tests if flag bit3 is set.

Definition at line 31 of file legoanim.h.

◆ Write()

LegoResult LegoAnimKey::Write ( LegoStorage p_storage)

[AI] Serializes the animation key to storage.

Parameters
p_storageStorage object to write to. [AI]

Definition at line 309 of file legoanim.cpp.

Member Data Documentation

◆ m_flags

LegoU8 LegoAnimKey::m_flags
protected

[AI] Flags controlling key behavior or interpolation (see Flags enum).

Definition at line 45 of file legoanim.h.

◆ m_time

LegoFloat LegoAnimKey::m_time
protected

[AI] Time/sample/frame when this key occurs.

Definition at line 46 of file legoanim.h.


The documentation for this class was generated from the following files: