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

[AI] Holds a LegoROI pointer and reference count for a character instance managed by LegoCharacterManager. More...

#include <legocharactermanager.h>

Collaboration diagram for LegoCharacter:

Public Member Functions

 LegoCharacter (LegoROI *p_roi)
 [AI] Constructs a LegoCharacter with an initial reference count of 1 and assigns the ROI pointer. More...
 
 ~LegoCharacter ()
 [AI] Destructor that deletes the associated ROI. More...
 
void AddRef ()
 [AI] Increments the internal reference count for this character. More...
 
MxU32 RemoveRef ()
 [AI] Decrements the internal reference count. More...
 

Public Attributes

LegoROIm_roi
 [AI] Pointer to the character's ROI object. More...
 
MxU32 m_refCount
 [AI] Reference count tracking how many owners the character ROI has. More...
 

Detailed Description

[AI] Holds a LegoROI pointer and reference count for a character instance managed by LegoCharacterManager.

Used to manage lifetime and reference tracking for character ROI objects, with automatic deletion of the ROI when the reference count reaches zero. [AI]

SIZE: 0x08 bytes.

Definition at line 44 of file legocharactermanager.h.

Constructor & Destructor Documentation

◆ LegoCharacter()

LegoCharacter::LegoCharacter ( LegoROI p_roi)
inline

[AI] Constructs a LegoCharacter with an initial reference count of 1 and assigns the ROI pointer.

Parameters
p_roiThe LegoROI representing this character. [AI]

Definition at line 49 of file legocharactermanager.h.

◆ ~LegoCharacter()

LegoCharacter::~LegoCharacter ( )
inline

[AI] Destructor that deletes the associated ROI.

[AI]

Definition at line 57 of file legocharactermanager.h.

Member Function Documentation

◆ AddRef()

void LegoCharacter::AddRef ( )
inline

[AI] Increments the internal reference count for this character.

[AI]

Definition at line 62 of file legocharactermanager.h.

◆ RemoveRef()

MxU32 LegoCharacter::RemoveRef ( )
inline

[AI] Decrements the internal reference count.

If the count reaches zero, the character should be destroyed.

Returns
The new reference count. [AI]

Definition at line 68 of file legocharactermanager.h.

Member Data Documentation

◆ m_refCount

MxU32 LegoCharacter::m_refCount

[AI] Reference count tracking how many owners the character ROI has.

Definition at line 77 of file legocharactermanager.h.

◆ m_roi

LegoROI* LegoCharacter::m_roi

[AI] Pointer to the character's ROI object.

Definition at line 76 of file legocharactermanager.h.


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