mirror of https://github.com/zeldaret/tp.git
67 lines
1.7 KiB
C++
67 lines
1.7 KiB
C++
#ifndef D_A_OBJ_LV6CHANGEGATE_H
|
|
#define D_A_OBJ_LV6CHANGEGATE_H
|
|
|
|
#include "f_op/f_op_actor_mng.h"
|
|
#include "d/d_bg_s_movebg_actor.h"
|
|
#include "d/d_event_lib.h"
|
|
#include "d/d_cc_d.h"
|
|
|
|
/**
|
|
* @ingroup actors-objects
|
|
* @class daLv6ChangeGate_c
|
|
* @brief Temple of Time Change Block?
|
|
*
|
|
* @details
|
|
*
|
|
*/
|
|
class daLv6ChangeGate_c : public dBgS_MoveBgActor, public request_of_phase_process_class, public dEvLib_callback_c {
|
|
public:
|
|
daLv6ChangeGate_c() : dEvLib_callback_c(this) {}
|
|
|
|
void setBaseMtx();
|
|
int create();
|
|
u8 isSwitch();
|
|
void moveGate();
|
|
void init_modeWait();
|
|
void modeWait();
|
|
void init_modeSlideRight();
|
|
void modeSlideRight();
|
|
void init_modeSlideLeft();
|
|
void modeSlideLeft();
|
|
void init_modeBreak();
|
|
void modeBreak();
|
|
|
|
virtual int CreateHeap();
|
|
virtual int Execute(Mtx**);
|
|
virtual int Draw();
|
|
virtual int Delete();
|
|
|
|
virtual ~daLv6ChangeGate_c() {}
|
|
virtual bool eventStart();
|
|
|
|
int getEventID() { return fopAcM_GetParamBit(this, 24, 8); }
|
|
int getWaitTime() { return fopAcM_GetParamBit(this, 16, 8); }
|
|
int getSwState() { return fopAcM_GetParamBit(this, 12, 4); }
|
|
int getSw() { return fopAcM_GetParamBit(this, 0, 8); }
|
|
int getSw2() { return shape_angle.x & 0xFF; }
|
|
|
|
static const dCcD_SrcGObjInf mCcDObjInfo;
|
|
static dCcD_SrcCyl mCcDCyl;
|
|
|
|
/* 0x05B8 */ request_of_phase_process_class mPhase;
|
|
/* 0x05C0 */ J3DModel* mpModel;
|
|
/* 0x05C4 */ u8 mMode;
|
|
/* 0x05C8 */ dCcD_Stts mCcStts;
|
|
/* 0x0604 */ dCcD_Cyl mCcCyls[12];
|
|
/* 0x14D4 */ u8 mSwState;
|
|
/* 0x14D5 */ u8 mSwbit;
|
|
/* 0x14D6 */ u8 mIsSwitch;
|
|
/* 0x14D7 */ u8 mTimer;
|
|
/* 0x14D8 */ f32 mMoveTransX;
|
|
};
|
|
|
|
STATIC_ASSERT(sizeof(daLv6ChangeGate_c) == 0x14dc);
|
|
|
|
|
|
#endif /* D_A_OBJ_LV6CHANGEGATE_H */
|