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

[AI] Represents a single phoneme (mouth shape) used for character lip-sync and speech animation. More...

#include <legophoneme.h>

Public Member Functions

 LegoPhoneme (const char *p_name, undefined4 p_unk0x14)
 [AI] Constructs a LegoPhoneme object using the provided name and an unknown parameter. More...
 
 ~LegoPhoneme ()
 [AI] Destroys the LegoPhoneme object. More...
 
virtual undefined4 VTable0x00 ()
 [AI] Retrieves the value of the unknown property at offset 0x14. More...
 
virtual void VTable0x04 (undefined4 p_unk0x14)
 [AI] Sets the value of the unknown property at offset 0x14. More...
 
virtual LegoTextureInfoVTable0x08 ()
 [AI] Retrieves the primary texture info associated with this phoneme. More...
 
virtual void VTable0x0c (LegoTextureInfo *p_unk0x18)
 [AI] Sets the primary texture info for this phoneme. More...
 
virtual LegoTextureInfoVTable0x10 ()
 [AI] Retrieves an alternate texture info for this phoneme. More...
 
virtual void VTable0x14 (LegoTextureInfo *p_unk0x1c)
 [AI] Sets the alternate texture info for this phoneme. More...
 
virtual void VTable0x18 ()
 [AI] Optional virtual hook—purpose unclear, likely overridden in derived classes or for cleanup/reset. More...
 
virtual void Init ()
 [AI] Initializes internal phoneme state (resets properties/textures). More...
 
virtual void VTable0x20 (undefined4)
 [AI] Unclear purpose; accepts an unknown argument. More...
 
MxStringGetName ()
 [AI] Returns (mutable) reference to the phoneme's name. More...
 

Detailed Description

[AI] Represents a single phoneme (mouth shape) used for character lip-sync and speech animation.

Contains a name and up to two possible texture associations. Typically, this class is used to manage the mapping between phoneme names and their visual representations/textures.

[AI] The class encapsulates the phoneme's string identifier, configuration (unknown property 0x14), and links to two LegoTextureInfo instances that describe the phoneme's in-game visual representation.

Definition at line 19 of file legophoneme.h.

Constructor & Destructor Documentation

◆ LegoPhoneme()

LegoPhoneme::LegoPhoneme ( const char *  p_name,
undefined4  p_unk0x14 
)
inline

[AI] Constructs a LegoPhoneme object using the provided name and an unknown parameter.

Parameters
p_name[AI] String identifier for the phoneme (e.g., "EH", "OO", etc). Will be uppercased for consistency.
p_unk0x14[AI] Unknown property/configuration value affecting the phoneme (purpose unknown).

Definition at line 26 of file legophoneme.h.

◆ ~LegoPhoneme()

LegoPhoneme::~LegoPhoneme ( )

[AI] Destroys the LegoPhoneme object.

Releases any owned resources.

Definition at line 6 of file legophoneme.cpp.

Member Function Documentation

◆ GetName()

MxString & LegoPhoneme::GetName ( )
inline

[AI] Returns (mutable) reference to the phoneme's name.

Returns
[AI] Reference to the name string of this phoneme.

Definition at line 95 of file legophoneme.h.

◆ Init()

void LegoPhoneme::Init ( )
virtual

[AI] Initializes internal phoneme state (resets properties/textures).

Definition at line 52 of file legophoneme.cpp.

◆ VTable0x00()

undefined4 LegoPhoneme::VTable0x00 ( )
virtual

[AI] Retrieves the value of the unknown property at offset 0x14.

Returns
[AI] Value of m_unk0x14.

Definition at line 11 of file legophoneme.cpp.

◆ VTable0x04()

void LegoPhoneme::VTable0x04 ( undefined4  p_unk0x14)
virtual

[AI] Sets the value of the unknown property at offset 0x14.

Parameters
p_unk0x14[AI] The new value for m_unk0x14.

Definition at line 17 of file legophoneme.cpp.

◆ VTable0x08()

LegoTextureInfo * LegoPhoneme::VTable0x08 ( )
virtual

[AI] Retrieves the primary texture info associated with this phoneme.

Returns
[AI] Pointer to LegoTextureInfo used for the standard mouth shape.

Definition at line 23 of file legophoneme.cpp.

◆ VTable0x0c()

void LegoPhoneme::VTable0x0c ( LegoTextureInfo p_unk0x18)
virtual

[AI] Sets the primary texture info for this phoneme.

Parameters
p_unk0x18[AI] Pointer to the texture information representing this phoneme's default face/mouth.

Definition at line 29 of file legophoneme.cpp.

◆ VTable0x10()

LegoTextureInfo * LegoPhoneme::VTable0x10 ( )
virtual

[AI] Retrieves an alternate texture info for this phoneme.

Returns
[AI] Pointer to LegoTextureInfo for an alternate mouth/face shape (if any).

Definition at line 35 of file legophoneme.cpp.

◆ VTable0x14()

void LegoPhoneme::VTable0x14 ( LegoTextureInfo p_unk0x1c)
virtual

[AI] Sets the alternate texture info for this phoneme.

Parameters
p_unk0x1c[AI] Pointer to the alternate texture information (if used).

Definition at line 41 of file legophoneme.cpp.

◆ VTable0x18()

void LegoPhoneme::VTable0x18 ( )
virtual

[AI] Optional virtual hook—purpose unclear, likely overridden in derived classes or for cleanup/reset.

Definition at line 47 of file legophoneme.cpp.

◆ VTable0x20()

void LegoPhoneme::VTable0x20 ( undefined4  )
virtual

[AI] Unclear purpose; accepts an unknown argument.

No implementation provided in the base class.

Parameters
[unnamed][AI] Unknown/unused.

Definition at line 60 of file legophoneme.cpp.


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