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

[AI] Animation key of unknown type, used internally by camera/track animation. More...

#include <legoanim.h>

Inheritance diagram for LegoUnknownKey:
Collaboration diagram for LegoUnknownKey:

Public Member Functions

 LegoUnknownKey ()
 [AI] Constructs the unknown key, initializing value to zero. More...
 
LegoResult Read (LegoStorage *p_storage)
 [AI] Deserializes the unknown key from storage. More...
 
LegoResult Write (LegoStorage *p_storage)
 [AI] Serializes the unknown key to storage. More...
 
LegoFloat GetZ ()
 [AI] Gets the Z/angle value (usage specific to context). More...
 
- Public Member Functions inherited from LegoAnimKey
 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

LegoFloat m_z
 [AI][AI_SUGGESTED_NAME: m_angleOrZ] Tracks either a Z translation or angle for camera movement. More...
 
- Protected Attributes inherited from LegoAnimKey
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...
 

Additional Inherited Members

- Public Types inherited from LegoAnimKey
enum  Flags { c_bit1 = 0x01 , c_bit2 = 0x02 , c_bit3 = 0x04 }
 [AI] Bitmask flag definitions for animation keys. More...
 

Detailed Description

[AI] Animation key of unknown type, used internally by camera/track animation.

[AI] Only contains a single float; used for Z axis as angle in LegoAnimScene.

Definition at line 129 of file legoanim.h.

Constructor & Destructor Documentation

◆ LegoUnknownKey()

LegoUnknownKey::LegoUnknownKey ( )

[AI] Constructs the unknown key, initializing value to zero.

Definition at line 20 of file legoanim.cpp.

Member Function Documentation

◆ GetZ()

LegoFloat LegoUnknownKey::GetZ ( )
inline

[AI] Gets the Z/angle value (usage specific to context).

Definition at line 135 of file legoanim.h.

◆ Read()

LegoResult LegoUnknownKey::Read ( LegoStorage p_storage)

[AI] Deserializes the unknown key from storage.

Parameters
p_storageStorage to read from. [AI]

Definition at line 26 of file legoanim.cpp.

◆ Write()

LegoResult LegoUnknownKey::Write ( LegoStorage p_storage)

[AI] Serializes the unknown key to storage.

Parameters
p_storageStorage to write to. [AI]

Definition at line 43 of file legoanim.cpp.

Member Data Documentation

◆ m_z

LegoFloat LegoUnknownKey::m_z
protected

[AI][AI_SUGGESTED_NAME: m_angleOrZ] Tracks either a Z translation or angle for camera movement.

Definition at line 138 of file legoanim.h.


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