Files
tp/include/d/actor/d_a_obj_lv6SwGate.h
T

73 lines
1.7 KiB
C++
Raw Normal View History

2021-03-28 22:49:05 +02:00
#ifndef D_A_OBJ_LV6SWGATE_H
#define D_A_OBJ_LV6SWGATE_H
2025-10-17 11:27:09 -04:00
#include "d/d_cc_d.h"
2024-05-29 01:49:10 -06:00
#include "f_op/f_op_actor_mng.h"
2025-10-17 11:27:09 -04:00
#include "d/d_bg_s_movebg_actor.h"
2024-05-29 01:49:10 -06:00
/**
* @ingroup actors-objects
* @class daLv6SwGate_c
* @brief Temple of Time Switch Gate
*
* @details
*
*/
2025-10-17 11:27:09 -04:00
class daLv6SwGate_c : public dBgS_MoveBgActor {
2024-05-29 01:49:10 -06:00
public:
2025-11-30 14:23:42 -08:00
void setBaseMtx();
int CreateHeap();
int create();
u8 isSwitch();
int Execute(Mtx**);
void moveGate();
void init_modeWait();
void modeWait();
void init_modeOpen();
void modeOpen();
void init_modeClose();
void modeClose();
void init_modeBreak();
void modeBreak();
int Draw();
int Delete();
2024-05-29 01:49:10 -06:00
2025-10-17 11:27:09 -04:00
int getSw() { return fopAcM_GetParamBit(this, 0, 8); }
int getSwState() { return fopAcM_GetParamBit(this, 12, 4); }
int getSw2() { return fopAcM_GetParamBit(this, 16, 8); }
2024-05-29 01:49:10 -06:00
2025-10-17 11:27:09 -04:00
static const dCcD_SrcGObjInf mCcDObjInfo;
static dCcD_SrcCyl mCcDCyl;
2024-05-29 01:49:10 -06:00
private:
2025-10-17 11:27:09 -04:00
/* 0x5A0 */ dCcD_Stts mCcStts;
/* 0x5DC */ dCcD_Cyl mCcDCyls[12];
/* 0x14AC */ request_of_phase_process_class mPhase;
/* 0x14B4 */ J3DModel* mModel1;
/* 0x14B8 */ J3DModel* mModel2;
/* 0x14BC */ u8 mMode;
/* 0x14BD */ u8 mUnderlyingSwitchState;
/* 0x14BE */ u8 mUnderylingSwitch;
/* 0x14BE */ u8 mIsSwitch;
/* 0x14C0 */ f32 mMovementAmount;
/* 0x14C4 */ dBgW* mpBgW;
/* 0x14C8 */ Mtx mMtx;
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(daLv6SwGate_c) == 0x14f8);
2025-10-17 11:27:09 -04:00
class daLv6SwGate_HIO_c : public fOpAcm_HIO_entry_c {
2024-05-29 01:49:10 -06:00
public:
2025-10-17 11:27:09 -04:00
daLv6SwGate_HIO_c();
void genMessage(JORMContext*);
/* 0x8 */ float mSpeed;
/* 0xC */ float mMaximumSpeed;
/* 0x10 */ float mAcceleration;
/* 0x14 */ float mMovementAmount;
/* 0x18 */ u8 unk18; // UNUSED
2024-05-29 01:49:10 -06:00
};
2021-03-28 22:49:05 +02:00
#endif /* D_A_OBJ_LV6SWGATE_H */