11#ifndef GOLDP_PEARLDEW0X0C_H
22#define GOLDP_PEARLDEW0X0C_H
33
4+ #include " compat.h"
45#include " decomp.h"
6+ #include " ipalette0x4.h"
57#include " types.h"
68
79#include < ddraw.h>
810
911// VTABLE: GOLDP 0x10056520
1012// SIZE 0x0c
11- class PearlDew0x0c {
13+ class PearlDew0x0c : public IPalette0x4 {
1214public:
1315 enum {
1416 c_errorBufferSize = 128 ,
@@ -32,14 +34,14 @@ class PearlDew0x0c {
3234 void Release ();
3335 void Set332PaletteEntries ();
3436
35- virtual void GetEntries (PALETTEENTRY * p_entries, LegoU32 p_start, LegoU32 p_count); // vtable+0x00
36- virtual void CopyEntriesFrom (PearlDew0x0c * p_source); // vtable+0x04
37- virtual void SetEntries (PALETTEENTRY * p_entries, LegoU32 p_start, LegoU32 p_count); // vtable+0x08
38- virtual void GetEntry (PALETTEENTRY * p_entry, LegoU32 p_index); // vtable+0x0c
39- virtual LegoS32 FindEntry (PALETTEENTRY * p_entry); // vtable+0x10
40- virtual LegoU32 GetFirstEntry (); // vtable+0x14
41- virtual LegoU32 GetEntryCount (); // vtable+0x18
42- virtual LegoU32 GetPaletteSize (); // vtable+0x1c
37+ void GetEntries (PALETTEENTRY * p_entries, LegoU32 p_start, LegoU32 p_count) override ; // vtable+0x00
38+ void CopyEntriesFrom (IPalette0x4 * p_source) override ; // vtable+0x04
39+ void SetEntries (PALETTEENTRY * p_entries, LegoU32 p_start, LegoU32 p_count) override ; // vtable+0x08
40+ void GetEntry (PALETTEENTRY * p_entry, LegoU32 p_index) override ; // vtable+0x0c
41+ LegoS32 FindEntry (PALETTEENTRY * p_entry) override ; // vtable+0x10
42+ LegoU32 GetFirstEntry () override ; // vtable+0x14
43+ LegoU32 GetEntryCount () override ; // vtable+0x18
44+ LegoU32 GetPaletteSize () override ; // vtable+0x1c
4345
4446 LPDIRECTDRAWPALETTE GetPalette () const { return m_palette; }
4547
0 commit comments