2021-03-28 22:49:05 +02:00
|
|
|
#ifndef D_A_OBJ_BUBBLEPILAR_H
|
|
|
|
|
#define D_A_OBJ_BUBBLEPILAR_H
|
|
|
|
|
|
2024-12-17 01:16:19 +02:00
|
|
|
#include "d/d_bg_s_movebg_actor.h"
|
|
|
|
|
#include "d/d_cc_d.h"
|
2024-05-29 01:49:10 -06:00
|
|
|
#include "f_op/f_op_actor_mng.h"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @ingroup actors-objects
|
|
|
|
|
* @class daBubbPilar_c
|
|
|
|
|
* @brief Bubble Pillar
|
|
|
|
|
*
|
|
|
|
|
* @details
|
|
|
|
|
*
|
|
|
|
|
*/
|
2024-12-17 01:16:19 +02:00
|
|
|
class daBubbPilar_c : public dBgS_MoveBgActor {
|
2024-05-29 01:49:10 -06:00
|
|
|
public:
|
2024-12-17 01:16:19 +02:00
|
|
|
typedef void (daBubbPilar_c::*modeProc)();
|
|
|
|
|
|
|
|
|
|
enum Mode {
|
|
|
|
|
MODE_WAIT,
|
|
|
|
|
MODE_EFF_ON,
|
|
|
|
|
};
|
|
|
|
|
|
2025-11-30 14:23:42 -08:00
|
|
|
void setBaseMtx();
|
|
|
|
|
int CreateHeap();
|
|
|
|
|
int create();
|
|
|
|
|
int Execute(Mtx**);
|
|
|
|
|
void initModeWait();
|
|
|
|
|
void modeWait();
|
|
|
|
|
void initModeEffOn();
|
|
|
|
|
void modeEffOn();
|
|
|
|
|
int Draw();
|
|
|
|
|
int Delete();
|
2024-05-29 01:49:10 -06:00
|
|
|
|
2024-12-17 01:16:19 +02:00
|
|
|
u8 getArg0() { return fopAcM_GetParamBit(this, 8, 4); }
|
|
|
|
|
u8 getSw() { return fopAcM_GetParamBit(this, 0, 8); }
|
|
|
|
|
|
|
|
|
|
static dCcD_SrcGObjInf const mCcDObjInfo;
|
|
|
|
|
static dCcD_SrcCyl mCcDCyl;
|
2024-05-29 01:49:10 -06:00
|
|
|
|
|
|
|
|
private:
|
2024-12-17 01:16:19 +02:00
|
|
|
/* 0x5A0 */ request_of_phase_process_class mPhase;
|
|
|
|
|
/* 0x5A8 */ J3DModel* mModels[2];
|
|
|
|
|
/* 0x5B0 */ dCcD_Stts mStts;
|
|
|
|
|
/* 0x5EC */ dCcD_Cyl mCyl;
|
|
|
|
|
/* 0x728 */ u8 field_0x728;
|
|
|
|
|
/* 0x729 */ u8 mMode;
|
|
|
|
|
/* 0x72A */ u8 mSw;
|
|
|
|
|
/* 0x72B */ u8 mArg0;
|
|
|
|
|
/* 0x72C */ u8 mIsSw;
|
|
|
|
|
/* 0x72D */ u8 mModelMode;
|
|
|
|
|
/* 0x72E */ s16 field_0x72e;
|
|
|
|
|
/* 0x730 */ int mEmitterIds[3];
|
|
|
|
|
/* 0x73C */ int mEmitterId;
|
|
|
|
|
/* 0x740 */ JPABaseEmitter* mEmitters[4];
|
2024-05-29 01:49:10 -06:00
|
|
|
};
|
2024-06-10 01:34:52 -06:00
|
|
|
|
2024-05-29 01:49:10 -06:00
|
|
|
STATIC_ASSERT(sizeof(daBubbPilar_c) == 0x750);
|
|
|
|
|
|
2024-12-17 01:16:19 +02:00
|
|
|
class daBubbPilar_HIO_c : public mDoHIO_entry_c {
|
2024-05-29 01:49:10 -06:00
|
|
|
public:
|
2025-11-30 14:23:42 -08:00
|
|
|
daBubbPilar_HIO_c();
|
|
|
|
|
virtual ~daBubbPilar_HIO_c() {};
|
2024-12-17 01:16:19 +02:00
|
|
|
|
2025-03-22 21:00:51 -04:00
|
|
|
void genMessage(JORMContext*);
|
|
|
|
|
|
2024-12-17 01:16:19 +02:00
|
|
|
u8 field_0x4;
|
|
|
|
|
u8 field_0x5;
|
2024-05-29 01:49:10 -06:00
|
|
|
};
|
|
|
|
|
|
2021-03-28 22:49:05 +02:00
|
|
|
|
|
|
|
|
#endif /* D_A_OBJ_BUBBLEPILAR_H */
|