Isle
Loading...
Searching...
No Matches
legophonemelist.h
Go to the documentation of this file.
1#ifndef LEGOPHONEMELIST_H
2#define LEGOPHONEMELIST_H
3
4#include "decomp.h"
5#include "legophoneme.h"
6#include "mxlist.h"
7
8// VTABLE: LEGO1 0x100d9cd0
9// class MxCollection<LegoPhoneme *>
10
11// VTABLE: LEGO1 0x100d9ce8
12// class MxList<LegoPhoneme *>
13
14// VTABLE: LEGO1 0x100d9d00
15// VTABLE: BETA10 0x101bef58
16// SIZE 0x18
24class LegoPhonemeList : public MxList<LegoPhoneme*> {
25public:
32
43 MxS8 Compare(LegoPhoneme* p_a, LegoPhoneme* p_b) override
44 {
45 MxString a(p_a->GetName());
46 MxString b(p_b->GetName());
47 return a.Equal(b) ? 0 : p_a < p_b ? -1 : 1;
48 } // vtable+0x14
49
56 static void Destroy(LegoPhoneme* p_element) { delete p_element; }
57};
58
59// VTABLE: LEGO1 0x100d80c8
60// class MxListCursor<LegoPhoneme *>
61
62// VTABLE: LEGO1 0x100d80e0
63// SIZE 0x10
72class LegoPhonemeListCursor : public MxListCursor<LegoPhoneme*> {
73public:
80};
81
82// TEMPLATE: LEGO1 0x1004e680
83// LegoPhonemeListCursor::`scalar deleting destructor'
84
85// TEMPLATE: LEGO1 0x1004e6f0
86// MxListCursor<LegoPhoneme *>::~MxListCursor<LegoPhoneme *>
87
88// TEMPLATE: LEGO1 0x1004e740
89// MxListCursor<LegoPhoneme *>::`scalar deleting destructor'
90
91// TEMPLATE: LEGO1 0x1004e7b0
92// LegoPhonemeListCursor::~LegoPhonemeListCursor
93
94// TEMPLATE: LEGO1 0x1007b300
95// MxCollection<LegoPhoneme *>::Compare
96
97// TEMPLATE: LEGO1 0x1007b310
98// MxCollection<LegoPhoneme *>::~MxCollection<LegoPhoneme *>
99
100// TEMPLATE: LEGO1 0x1007b360
101// MxCollection<LegoPhoneme *>::Destroy
102
103// TEMPLATE: LEGO1 0x1007b370
104// MxList<LegoPhoneme *>::~MxList<LegoPhoneme *>
105
106// SYNTHETIC: LEGO1 0x1007b400
107// LegoPhonemeList::`scalar deleting destructor'
108
109// SYNTHETIC: LEGO1 0x1007b470
110// MxCollection<LegoPhoneme *>::`scalar deleting destructor'
111
112// SYNTHETIC: LEGO1 0x1007b4e0
113// MxList<LegoPhoneme *>::`scalar deleting destructor'
114
115#endif // LEGOPHONEMELIST_H
Cursor class for iterating over LegoPhonemeList.
LegoPhonemeListCursor(LegoPhonemeList *p_list)
Creates a cursor for a given LegoPhonemeList.
Specialized list class for managing LegoPhoneme objects.
MxS8 Compare(LegoPhoneme *p_a, LegoPhoneme *p_b) override
Compares two LegoPhoneme objects for equality, or orders them by address.
LegoPhonemeList()
Constructor - sets custom destroy function for phoneme objects.
static void Destroy(LegoPhoneme *p_element)
Static destruction helper for MxList.
[AI] Represents a single phoneme (mouth shape) used for character lip-sync and speech animation.
Definition: legophoneme.h:19
MxString & GetName()
[AI] Returns (mutable) reference to the phoneme's name.
Definition: legophoneme.h:95
void SetDestroy(void(*p_customDestructor)(T))
[AI] Assigns a custom destructor function to be used for elements of this collection.
Definition: mxcollection.h:34
[AI] Forward declaration for MxListCursor.
Definition: mxlist.h:174
[AI] Forward declaration for MxList.
Definition: mxlist.h:89
Mindscape custom string class for managing dynamic C-strings within the game engine.
Definition: mxstring.h:14
MxBool Equal(const MxString &p_str) const
Compares this string to another for equality.
Definition: mxstring.h:122
signed char MxS8
[AI]
Definition: mxtypes.h:14