Isle
Loading...
Searching...
No Matches
LegoAnimActorStruct Struct Reference

[AI] Holds per-animation instance data for a LegoAnimActor. More...

#include <legoanimactor.h>

Collaboration diagram for LegoAnimActorStruct:

Public Member Functions

 LegoAnimActorStruct (float p_unk0x00, LegoAnim *p_AnimTreePtr, LegoROI **p_roiMap, MxU32 p_numROIs)
 [AI] Constructs a LegoAnimActorStruct, associating animation tree and ROI map. More...
 
 ~LegoAnimActorStruct ()
 [AI] Destructor: Deallocates dynamic vector data associated with the animation entry. More...
 
float GetDuration ()
 [AI] Gets the length, in seconds, of the animation (delegates to anim tree). More...
 
float GetUnknown0x00 ()
 [AI] Gets the selection/duration/animation threshold value associated with this entry. More...
 
LegoAnimGetAnimTreePtr ()
 [AI] Returns the root animation tree node for this mapping. More...
 
LegoROI ** GetROIMap ()
 [AI] Returns the mapping of tree nodes to LegoROI pointers (array of pointers, one per mesh/node). More...
 

Public Attributes

float m_unk0x00
 [AI] Animation activation/duration threshold (used to decide which animation is active) [AI] More...
 
LegoAnimm_AnimTreePtr
 [AI] Root of animation tree for this animation [AI] More...
 
LegoROI ** m_roiMap
 [AI] Mapping of animation nodes to LEGO ROIs (meshes) [AI] More...
 
MxU32 m_numROIs
 [AI] Number of entries in ROI map [AI] More...
 
vector< undefined * > m_unk0x10
 [AI] Holds per-instance temporary or auxiliary animation data [AI_SUGGESTED_NAME: tempAnimationData] More...
 

Detailed Description

[AI] Holds per-animation instance data for a LegoAnimActor.

Binds an animation tree, a mapping of ROI pointers, and a time parameter.

[AI] Each LegoAnimActorStruct encapsulates all the data needed to represent a concrete animation map for a LegoAnimActor, including duration parameter for animation LOD/selection, a pointer to the animation tree, a mapping from animation nodes to LegoROI objects for mesh assignment, and extra state vectors used in animation.

Definition at line 13 of file legoanimactor.h.

Constructor & Destructor Documentation

◆ LegoAnimActorStruct()

LegoAnimActorStruct::LegoAnimActorStruct ( float  p_unk0x00,
LegoAnim p_AnimTreePtr,
LegoROI **  p_roiMap,
MxU32  p_numROIs 
)

[AI] Constructs a LegoAnimActorStruct, associating animation tree and ROI map.

See source for param meanings.

Parameters
p_unk0x00Animation selection/duration threshold [AI]
p_AnimTreePtrPointer to the animation root (LegoAnim tree) [AI]
p_roiMapMapping of animation tree nodes to LegoROI pointers [AI]
p_numROIsNumber of ROI pointers in the map [AI] [AI]

Definition at line 16 of file legoanimactor.cpp.

◆ ~LegoAnimActorStruct()

LegoAnimActorStruct::~LegoAnimActorStruct ( )

[AI] Destructor: Deallocates dynamic vector data associated with the animation entry.

Definition at line 25 of file legoanimactor.cpp.

Member Function Documentation

◆ GetAnimTreePtr()

LegoAnim * LegoAnimActorStruct::GetAnimTreePtr ( )
inline

[AI] Returns the root animation tree node for this mapping.

Definition at line 32 of file legoanimactor.h.

◆ GetDuration()

float LegoAnimActorStruct::GetDuration ( )

[AI] Gets the length, in seconds, of the animation (delegates to anim tree).

[AI] Calls GetDuration() on m_AnimTreePtr.

Definition at line 34 of file legoanimactor.cpp.

◆ GetROIMap()

LegoROI ** LegoAnimActorStruct::GetROIMap ( )
inline

[AI] Returns the mapping of tree nodes to LegoROI pointers (array of pointers, one per mesh/node).

Definition at line 35 of file legoanimactor.h.

◆ GetUnknown0x00()

float LegoAnimActorStruct::GetUnknown0x00 ( )
inline

[AI] Gets the selection/duration/animation threshold value associated with this entry.

Definition at line 29 of file legoanimactor.h.

Member Data Documentation

◆ m_AnimTreePtr

LegoAnim* LegoAnimActorStruct::m_AnimTreePtr

[AI] Root of animation tree for this animation [AI]

Definition at line 39 of file legoanimactor.h.

◆ m_numROIs

MxU32 LegoAnimActorStruct::m_numROIs

[AI] Number of entries in ROI map [AI]

Definition at line 41 of file legoanimactor.h.

◆ m_roiMap

LegoROI** LegoAnimActorStruct::m_roiMap

[AI] Mapping of animation nodes to LEGO ROIs (meshes) [AI]

Definition at line 40 of file legoanimactor.h.

◆ m_unk0x00

float LegoAnimActorStruct::m_unk0x00

[AI] Animation activation/duration threshold (used to decide which animation is active) [AI]

Definition at line 38 of file legoanimactor.h.

◆ m_unk0x10

vector<undefined*> LegoAnimActorStruct::m_unk0x10

[AI] Holds per-instance temporary or auxiliary animation data [AI_SUGGESTED_NAME: tempAnimationData]

Definition at line 42 of file legoanimactor.h.


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