2023-06-29 04:10:08 -04:00
|
|
|
#ifndef LEGOACTOR_H
|
|
|
|
#define LEGOACTOR_H
|
|
|
|
|
2023-08-03 12:54:08 -04:00
|
|
|
#include "decomp.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "legoentity.h"
|
|
|
|
|
2024-05-03 12:19:12 -04:00
|
|
|
class LegoCacheSound;
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d6d68
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x78
|
2023-10-24 19:38:27 -04:00
|
|
|
class LegoActor : public LegoEntity {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2024-06-05 12:11:46 -04:00
|
|
|
enum {
|
|
|
|
c_none = 0,
|
|
|
|
c_pepper,
|
|
|
|
c_mama,
|
|
|
|
c_papa,
|
|
|
|
c_nick,
|
|
|
|
c_laura,
|
|
|
|
c_brickster
|
|
|
|
};
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
LegoActor();
|
2024-02-01 15:42:10 -05:00
|
|
|
~LegoActor() override;
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1002d210
|
2024-07-04 19:06:32 -04:00
|
|
|
const char* ClassName() const override // vtable+0x0c
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x100f0124
|
2023-10-24 19:38:27 -04:00
|
|
|
return "LegoActor";
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1002d220
|
2024-07-04 19:06:32 -04:00
|
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, LegoActor::ClassName()) || LegoEntity::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
|
|
|
|
2024-04-08 08:23:31 -04:00
|
|
|
void ParseAction(char* p_extra) override; // vtable+0x20
|
2024-02-01 15:42:10 -05:00
|
|
|
void SetROI(LegoROI* p_roi, MxBool p_bool1, MxBool p_bool2) override; // vtable+0x24
|
2024-01-20 18:04:46 -05:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002cc0
|
2024-06-01 12:23:48 -04:00
|
|
|
virtual MxFloat GetSoundFrequencyFactor() { return m_frequencyFactor; } // vtable+0x50
|
2024-02-23 12:51:49 -05:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002cd0
|
2024-06-01 12:23:48 -04:00
|
|
|
virtual void SetSoundFrequencyFactor(MxFloat p_frequencyFactor)
|
|
|
|
{
|
|
|
|
m_frequencyFactor = p_frequencyFactor;
|
|
|
|
} // vtable+0x54
|
2024-02-23 12:51:49 -05:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002ce0
|
|
|
|
virtual void VTable0x58(MxFloat p_unk0x70) { m_unk0x70 = p_unk0x70; } // vtable+0x58
|
2024-02-23 12:51:49 -05:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002cf0
|
|
|
|
virtual MxFloat VTable0x5c() { return m_unk0x70; } // vtable+0x5c
|
2024-02-23 12:51:49 -05:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002d00
|
2024-02-26 11:19:16 -05:00
|
|
|
virtual MxU8 GetActorId() { return m_actorId; } // vtable+0x60
|
2024-02-23 12:51:49 -05:00
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// FUNCTION: LEGO1 0x10002d10
|
2024-02-26 11:19:16 -05:00
|
|
|
virtual void SetActorId(MxU8 p_actorId) { m_actorId = p_actorId; } // vtable+0x64
|
|
|
|
|
|
|
|
static const char* GetActorName(MxU8 p_id);
|
2023-10-24 08:37:02 -04:00
|
|
|
|
2024-06-04 12:19:59 -04:00
|
|
|
void Mute(MxBool p_muted);
|
2024-04-08 08:23:31 -04:00
|
|
|
|
2024-11-14 15:42:38 -05:00
|
|
|
protected:
|
2024-06-01 12:23:48 -04:00
|
|
|
MxFloat m_frequencyFactor; // 0x68
|
|
|
|
LegoCacheSound* m_sound; // 0x6c
|
|
|
|
MxFloat m_unk0x70; // 0x70
|
|
|
|
MxU8 m_actorId; // 0x74
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
2024-01-14 16:28:46 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x1002d300
|
|
|
|
// LegoActor::`scalar deleting destructor'
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
#endif // LEGOACTOR_H
|