Fix CaveEntity class

This commit is contained in:
Christian Semmler 2024-06-12 10:09:23 -04:00
parent 475d21f8c8
commit 0a467c56b5
4 changed files with 37 additions and 13 deletions

View File

@ -117,6 +117,28 @@ class HospitalEntity : public BuildingEntity {
// HospitalEntity::`scalar deleting destructor'
};
// VTABLE: LEGO1 0x100d50c0
// SIZE 0x68
class CaveEntity : public BuildingEntity {
// FUNCTION: LEGO1 0x1000f1e0
inline const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f0300
return "RaceStandsEntity";
}
// FUNCTION: LEGO1 0x1000f1f0
inline MxBool IsA(const char* p_name) const override // vtable+0x10
{
return !strcmp(p_name, CaveEntity::ClassName()) || BuildingEntity::IsA(p_name);
}
MxLong VTable0x50(MxParam& p_param) override;
// SYNTHETIC: LEGO1 0x1000fa50
// CaveEntity::`scalar deleting destructor'
};
// VTABLE: LEGO1 0x100d5200
// SIZE 0x68
class JailEntity : public BuildingEntity {
@ -133,8 +155,7 @@ class JailEntity : public BuildingEntity {
return !strcmp(p_name, JailEntity::ClassName()) || BuildingEntity::IsA(p_name);
}
// STUB: LEGO1 0x100154f0
MxLong VTable0x50(MxParam& p_param) override { return 0; }
MxLong VTable0x50(MxParam& p_param) override;
// SYNTHETIC: LEGO1 0x1000fac0
// JailEntity::`scalar deleting destructor'

View File

@ -1,10 +0,0 @@
#ifndef CAVEENTITY_H
#define CAVEENTITY_H
#include "buildings.h"
// No overrides, uses vtable from RaceStandsEntity
// SIZE 0x68
class CaveEntity : public RaceStandsEntity {};
#endif // CAVEENTITY_H

View File

@ -174,3 +174,17 @@ MxLong RaceStandsEntity::VTable0x50(MxParam& p_param)
return 1;
}
// STUB: LEGO1 0x100154f0
MxLong JailEntity::VTable0x50(MxParam& p_param)
{
// TODO
return 0;
}
// STUB: LEGO1 0x10015520
MxLong CaveEntity::VTable0x50(MxParam& p_param)
{
// TODO
return 0;
}

View File

@ -67,7 +67,6 @@
#include "act3shark.h"
#include "buildings.h"
#include "bumpbouy.h"
#include "caveentity.h"
#include "jukebox.h"
#include "jukeboxentity.h"
#include "legometerpresenter.h"