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

65 lines
1.4 KiB
C++
Raw Normal View History

2021-03-28 22:49:05 +02:00
#ifndef D_A_OBJ_AVALANCHE_H
#define D_A_OBJ_AVALANCHE_H
#include "dolphin/types.h"
2024-10-10 07:29:58 -07:00
#include "d/d_bg_s_movebg_actor.h"
2024-05-01 15:55:58 +03:00
#include "f_op/f_op_actor_mng.h"
class dBgW;
2024-05-29 01:49:10 -06:00
/**
* @ingroup actors-objects
* @class daObjAvalanche_c
* @brief Avalanche
*
* @details
*
*/
2024-05-01 15:55:58 +03:00
class daObjAvalanche_c : public dBgS_MoveBgActor {
public:
enum Action {
ACTION_WAIT,
ACTION_ORDER_EVENT,
ACTION_EVENT,
ACTION_DEAD,
};
2025-11-30 14:23:42 -08:00
void initBaseMtx();
void setBaseMtx();
int Create();
int CreateHeap();
int create1st();
int Execute(Mtx**);
int checkCollapse();
int move();
void event_proc_call();
void actionWait();
void actionOrderEvent();
void actionEvent();
void actionDead();
int demoProc();
void setEffect();
int Draw();
int Delete();
2024-05-01 15:55:58 +03:00
u8 getSwbit() { return fopAcM_GetParamBit(this, 0, 8); }
u8 getEvId() { return fopAcM_GetParamBit(this, 8, 8); }
void setAction(u8 action) { mAction = action; }
private:
/* 0x5A0 */ request_of_phase_process_class mPhase;
/* 0x5A8 */ J3DModel* mModel;
/* 0x5AC */ mDoExt_bckAnm* mBckAnm;
/* 0x5B0 */ dBgW* mpBgW2;
/* 0x5B4 */ Mtx mMtx2;
/* 0x5E4 */ f32 field_0x5e4;
/* 0x5E8 */ u8 mAction;
/* 0x5E9 */ u8 mMapToolId;
/* 0x5EA */ u8 mTimer;
/* 0x5EC */ int mStaffId;
/* 0x5F0 */ s16 mEventIdx;
};
2021-03-28 22:49:05 +02:00
#endif /* D_A_OBJ_AVALANCHE_H */