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

58 lines
1.4 KiB
C++
Raw Normal View History

2021-03-28 22:49:05 +02:00
#ifndef D_A_SWLBALL_H
#define D_A_SWLBALL_H
2024-06-10 01:34:52 -06:00
#include "f_op/f_op_actor_mng.h"
/**
* @ingroup actors-unsorted
* @class daSwLBall_c
* @brief Switch L Ball
*
* @details
*
*/
class daSwLBall_c : public fopAc_ac_c {
public:
2024-10-20 07:47:49 +03:00
enum Action {
ACTION_INIT,
ACTION_RUN,
ACTION_STOP,
};
typedef void (daSwLBall_c::*actionFunc)();
/* 80D4EB8C */ int checkArea_sub(fopAc_ac_c*);
/* 80D4ECCC */ int checkArea();
2024-06-10 01:34:52 -06:00
/* 80D4ED80 */ void search_lb();
2024-10-20 07:47:49 +03:00
/* 80D4EEAC */ int Create();
/* 80D4EEF8 */ int create();
/* 80D4EF60 */ int execute();
2024-06-10 01:34:52 -06:00
/* 80D4F008 */ void actionInit();
/* 80D4F080 */ void actionRun();
/* 80D4F220 */ void actionStop();
/* 80D4F224 */ void PutCrrPos();
2024-10-20 07:47:49 +03:00
/* 80D4F444 */ int _delete();
u8 getType() { return fopAcM_GetParamBit(this, 24, 4); }
u8 getArg0() { return fopAcM_GetParamBit(this, 0, 8); }
u8 getArg1() { return fopAcM_GetParamBit(this, 8, 8); }
u8 getSwbit() { return fopAcM_GetParamBit(this, 16, 8); }
void setAction(Action action) { mAction = action; }
int checkPullLBall() {
return fopAcM_GetParamBit(this,28,2) == 0;
}
2024-06-10 01:34:52 -06:00
private:
2024-10-20 07:47:49 +03:00
/* 0x568 */ fpc_ProcID mProcIds[2];
/* 0x570 */ u8 mRunTimer;
/* 0x571 */ u8 mAction;
/* 0x572 */ u8 field_0x572;
/* 0x574 */ u8 mIsActorCarrying[2];
/* 0x575 */ u8 mIsPulled[2];
2024-06-10 01:34:52 -06:00
};
STATIC_ASSERT(sizeof(daSwLBall_c) == 0x578);
2021-03-28 22:49:05 +02:00
#endif /* D_A_SWLBALL_H */