mirror of https://github.com/zeldaret/tp.git
91 lines
2.2 KiB
C++
91 lines
2.2 KiB
C++
#ifndef D_A_OBJ_RSTAIR_H
|
|
#define D_A_OBJ_RSTAIR_H
|
|
|
|
#include "d/d_bg_s_movebg_actor.h"
|
|
#include "f_op/f_op_actor_mng.h"
|
|
|
|
/**
|
|
* @ingroup actors-objects
|
|
* @class daObjRotStair_c
|
|
* @brief Rail Staircase
|
|
*
|
|
* @details
|
|
*
|
|
*/
|
|
class daObjRotStair_c : public dBgS_MoveBgActor {
|
|
public:
|
|
typedef void (daObjRotStair_c::*actionFunc)();
|
|
typedef void (daObjRotStair_c::*modeFunc)();
|
|
|
|
enum Mode {
|
|
MODE_WAIT,
|
|
MODE_ROTATE,
|
|
};
|
|
|
|
enum Action {
|
|
ACTION_WAIT,
|
|
ACTION_ORDER_EVENT,
|
|
ACTION_EVENT,
|
|
ACTION_DEAD,
|
|
};
|
|
|
|
void initBaseMtx();
|
|
void setBaseMtx();
|
|
int Create();
|
|
int CreateHeap();
|
|
int create1st();
|
|
int Execute(Mtx**);
|
|
void move_proc_call();
|
|
void init_modeWait();
|
|
void modeWait();
|
|
void init_modeRotate();
|
|
void modeRotate();
|
|
void event_proc_call();
|
|
void actionWait();
|
|
void actionOrderEvent();
|
|
void actionEvent();
|
|
void actionDead();
|
|
int checkChangeSw();
|
|
void offSwitch(int);
|
|
void onWaterModel();
|
|
void offWaterModel();
|
|
int Draw();
|
|
int Delete();
|
|
|
|
u8 getSwNo() { return mSwNo; }
|
|
u8 getSwNo2() { return (mSwNo >> 8) & 0xff; }
|
|
u8 getSwNo3() { return fopAcM_GetParamBit(this, 8, 8); }
|
|
u8 getEventID() { return fopAcM_GetParamBit(this, 0, 8); }
|
|
void setAction(u8 action) { mAction = action; }
|
|
|
|
private:
|
|
/* 0x5A0 */ request_of_phase_process_class mPhase;
|
|
/* 0x5A8 */ J3DModel* mModel;
|
|
/* 0x5AC */ J3DModel* mWaterModels[2];
|
|
/* 0x5B4 */ mDoExt_btkAnm* mBtks[2];
|
|
/* 0x5BC */ bool mWaterModelOn;
|
|
/* 0x5C0 */ dBgW* mWaterBgw;
|
|
/* 0x5C4 */ int field_0x5c4;
|
|
/* 0x5C8 */ s16 field_0x5c8;
|
|
/* 0x5CA */ u16 mSwNo;
|
|
/* 0x5CC */ u8 mInit;
|
|
/* 0x5CD */ u8 mMode;
|
|
/* 0x5CE */ s16 mAdditionalRotY;
|
|
/* 0x5D0 */ s16 mAngleStep;
|
|
/* 0x5D2 */ s16 mStepTarget;
|
|
/* 0x5D4 */ s16 mTargetAngle;
|
|
/* 0x5D6 */ u8 mIsSw[4];
|
|
/* 0x5DA */ s16 field_0x5da;
|
|
/* 0x5DC */ s16 field_0x5dc;
|
|
/* 0x5DE */ s16 mEventId;
|
|
/* 0x5E0 */ u8 mMapToolId;
|
|
/* 0x5E1 */ u8 mAction;
|
|
/* 0x5E2 */ bool field_0x5e2;
|
|
/* 0x5E3 */ s8 field_0x5e3;
|
|
};
|
|
|
|
STATIC_ASSERT(sizeof(daObjRotStair_c) == 0x5e4);
|
|
|
|
|
|
#endif /* D_A_OBJ_RSTAIR_H */
|