spidey-decomp/l1a3bomb.cpp

38 lines
628 B
C++
Raw Normal View History

#include "l1a3bomb.h"
#include "validate.h"
2024-07-15 15:56:42 +00:00
#include "trig.h"
u32 gBombRelated;
2024-07-15 15:56:42 +00:00
u8 gBombDieRelatedOne;
u8 gBombDieRelatedTwo;
u32 gBombDieTimerRelated;
// @Ok
CL1A3Bomb::CL1A3Bomb(
u16* a2,
i32 a3)
: CManipOb(a2, a3)
{
this->field_128 = 0;
this->field_129 = 0;
gBombRelated = 4096;
}
2024-07-15 15:56:42 +00:00
// @Ok
void CL1A3Bomb::Die(void)
{
Trig_SendPulse(Trig_GetLinksPointer(this->field_DE));
gBombDieRelatedOne = 0;
gBombDieRelatedTwo = 0;
gBombDieTimerRelated = *gTimerRelated;
}
void validate_CL1A3Bomb(void)
{
VALIDATE_SIZE(CL1A3Bomb, 0x12C);
VALIDATE(CL1A3Bomb, field_128, 0x128);
VALIDATE(CL1A3Bomb, field_129, 0x129);
}