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

70 lines
1.4 KiB
C++
Raw Normal View History

2021-03-28 22:49:05 +02:00
#ifndef D_A_OBJ_GOGATE_H
#define D_A_OBJ_GOGATE_H
2025-04-20 09:40:41 +02:00
#include "SSystem/SComponent/c_phase.h"
#include "d/d_bg_s_movebg_actor.h"
2024-05-29 01:49:10 -06:00
#include "f_op/f_op_actor_mng.h"
2025-04-20 09:40:41 +02:00
#include "m_Do/m_Do_hostIO.h"
2024-05-29 01:49:10 -06:00
/**
* @ingroup actors-objects
* @class daGoGate_c
* @brief Goron Gate
*
* @details
*
*/
2025-04-20 09:40:41 +02:00
class daGoGate_c : public dBgS_MoveBgActor {
2024-05-29 01:49:10 -06:00
public:
2025-04-20 09:40:41 +02:00
enum Mode {
MODE_WAIT = 0,
MODE_OPEN = 1,
MODE_CLOSE = 2,
};
2025-11-30 14:23:42 -08:00
void setBaseMtx();
int CreateHeap();
cPhs__Step create();
int Execute(Mtx**);
void moveGate();
void init_modeWait();
void modeWait();
void init_modeMoveOpen();
void modeMoveOpen();
void init_modeMoveClose();
void modeMoveClose();
void setSe();
int Draw();
int Delete();
2025-04-20 09:40:41 +02:00
u32 getLR() { return fopAcM_GetParamBit(this, 8, 8); }
u32 getSw() { return fopAcM_GetParamBit(this, 0, 8); }
2024-05-29 01:49:10 -06:00
private:
2025-04-20 09:40:41 +02:00
/* 0x5A0 */ request_of_phase_process_class mPhase;
/* 0x5A8 */ J3DModel* mpModel;
/* 0x5AC */ u8 mMode;
/* 0x5AD */ u8 mSw;
/* 0x5AE */ u8 mOpen;
/* 0x5AF */ u8 mLR;
/* 0x5B0 */ f32 field_0x5b0;
/* 0x5B4 */ f32 field_0x5b4;
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(daGoGate_c) == 0x5b8);
2025-04-20 09:40:41 +02:00
class daGoGate_HIO_c : public mDoHIO_entry_c {
2024-05-29 01:49:10 -06:00
public:
2025-11-30 14:23:42 -08:00
daGoGate_HIO_c();
virtual ~daGoGate_HIO_c() {}
2025-04-20 09:40:41 +02:00
void genMessage(JORMContext*);
/* 0x8 */ f32 mSpeed;
/* 0xc */ u8 mShockStrength;
2024-05-29 01:49:10 -06:00
};
2025-04-20 09:40:41 +02:00
STATIC_ASSERT(sizeof(daGoGate_HIO_c) == 12);
2021-03-28 22:49:05 +02:00
#endif /* D_A_OBJ_GOGATE_H */