spidey-decomp/platform.cpp
2024-08-08 18:38:45 +02:00

122 lines
2.2 KiB
C++

#include "platform.h"
#include "ps2lowsfx.h"
#include "validate.h"
extern CBody* EnvironmentalObjectList;
extern const char* gObjFile;
// @MEDIUMTODO
void CPlatform::AI(void)
{
printf("CPlatform::AI(void)");
}
// @SMALLTODO
void CPlatform::AdjustBruceHealth(void)
{
printf("CPlatform::AdjustBruceHealth(void)");
}
// @Ok
CPlatform::CPlatform(i16 * a2,i32 a3)
{
this->field_344.vx = 0;
this->field_344.vy = 0;
this->field_344.vz = 0;
this->field_350.vx = 0;
this->field_350.vy = 0;
this->field_350.vz = 0;
this->InitItem(gObjFile);
this->AttachTo(&EnvironmentalObjectList);
this->mFlags |= 0x111;
this->mFlags &= 0xFFFD;
this->field_38 = 402;
this->field_24C = reinterpret_cast<i32>(this->SquirtAngles(this->SquirtPos(a2)));
this->field_340 = -1;
this->field_DE = a3;
this->attributeArr[0] = 32;
this->field_20C = 1;
}
// @MEDIUMTODO
i32 CPlatform::ExecuteCommand(u16)
{
printf("CPlatform::ExecuteCommand(u16)");
return 0x04082024;
}
// @SMALLTODO
i32 CPlatform::Hit(SHitInfo *)
{
printf("CPlatform::Hit(SHitInfo *)");
return 0x04082024;
}
// @SMALLTODO
void CPlatform::MoveTo(CVector *)
{
printf("CPlatform::MoveTo(CVector *)");
}
// @SMALLTODO
void CPlatform::NotifyTrodUpon(CBody *,CVector const *,CSVector const *)
{
printf("CPlatform::NotifyTrodUpon(CBody *,CVector const *,CSVector const *)");
}
// @MEDIUMTODO
void CPlatform::SetVariable(u16)
{
printf("CPlatform::SetVariable(u16)");
}
// @Ok
CPlatform::~CPlatform(void)
{
this->DeleteFrom(&EnvironmentalObjectList);
if (this->field_33C)
{
SFX_Stop(this->field_33C);
this->field_33C = 0;
}
}
// @Ok
void CPlatform::Shouldnt_DoPhysics_Be_Virtual(void)
{
this->DoPhysics();
}
// @BIGTODO
void CPlatform::DoPhysics(void)
{
printf("void CPlatform::DoPhysics(void)");
}
// @Ok
u16 CPlatform::GetVariable(u16 a2)
{
if (a2 != (unsigned __int16)0x2200)
{
return CBaddy::GetVariable(a2);
}
return this->field_338;
}
void validate_CPlatform(void){
VALIDATE_SIZE(CPlatform, 0x35C);
VALIDATE(CPlatform, field_338, 0x338);
VALIDATE(CPlatform, field_33C, 0x33C);
VALIDATE(CPlatform, field_340, 0x340);
VALIDATE(CPlatform, field_344, 0x344);
VALIDATE(CPlatform, field_350, 0x350);
}