mirror of https://github.com/zeldaret/tp.git
74 lines
1.8 KiB
C++
74 lines
1.8 KiB
C++
#ifndef D_A_OBJ_POCANDLE_H
|
|
#define D_A_OBJ_POCANDLE_H
|
|
|
|
#include "f_op/f_op_actor_mng.h"
|
|
#include "d/d_bg_s_movebg_actor.h"
|
|
#include "d/d_event_lib.h"
|
|
|
|
/**
|
|
* @ingroup actors-objects
|
|
* @class daPoCandle_c
|
|
* @brief Poe Torch
|
|
*
|
|
* @details
|
|
*
|
|
*/
|
|
class daPoCandle_c : public dBgS_MoveBgActor, public request_of_phase_process_class, public dEvLib_callback_c {
|
|
public:
|
|
daPoCandle_c() : dEvLib_callback_c(this) {}
|
|
|
|
void setBaseMtx();
|
|
int create();
|
|
void lightInit();
|
|
void setLight();
|
|
void cutLight();
|
|
void pointLightProc();
|
|
void init_modeWait();
|
|
void modeWait();
|
|
void init_modeOnFire();
|
|
void modeOnFire();
|
|
void modeOnSwWait();
|
|
void init_modeEnd();
|
|
void modeEnd();
|
|
|
|
virtual int CreateHeap();
|
|
virtual int Execute(Mtx**);
|
|
virtual int Draw();
|
|
virtual int Delete();
|
|
|
|
virtual ~daPoCandle_c() {}
|
|
virtual bool eventStart();
|
|
|
|
cXyz getFirePos() { return mFirePos; }
|
|
|
|
int getLightType() { return fopAcM_GetParamBit(this, 0x10, 8); }
|
|
int getSwBit() { return fopAcM_GetParamBit(this, 0, 8); }
|
|
int getID() { return fopAcM_GetParamBit(this, 8, 8); }
|
|
|
|
u8 getIDNum() { return mIDNum; }
|
|
void setFireFlag(u8 flag) { mFireFlag = flag; }
|
|
|
|
private:
|
|
/* 0x5B8 */ request_of_phase_process_class mPhase;
|
|
/* 0x5C0 */ J3DModel* mpModel;
|
|
/* 0x5C4 */ cXyz mFirePos;
|
|
/* 0x5D0 */ u8 field_0x5d0;
|
|
/* 0x5D1 */ u8 mOnPlight;
|
|
/* 0x5D2 */ u8 mFireFlag;
|
|
/* 0x5D3 */ u8 mSwWaitTimer;
|
|
/* 0x5D4 */ u8 mSwbit;
|
|
/* 0x5D5 */ u8 mIDNum;
|
|
/* 0x5D6 */ u8 mMode;
|
|
/* 0x5D7 */ u8 mIsSwitch;
|
|
/* 0x5D8 */ u32 mGlowEmtID;
|
|
/* 0x5DC */ u32 mFireEmtID;
|
|
/* 0x5E0 */ cXyz mLightPos;
|
|
/* 0x5EC */ u8 mLightType;
|
|
/* 0x5F0 */ f32 mPlightRefDist;
|
|
/* 0x5F4 */ LIGHT_INFLUENCE mLight;
|
|
};
|
|
|
|
STATIC_ASSERT(sizeof(daPoCandle_c) == 0x614);
|
|
|
|
#endif /* D_A_OBJ_POCANDLE_H */
|