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

84 lines
1.9 KiB
C++
Raw Normal View History

2021-03-28 22:49:05 +02:00
#ifndef D_A_OBJ_CBLOCK_H
#define D_A_OBJ_CBLOCK_H
2025-03-13 01:03:14 +02:00
#include "d/d_bg_s_movebg_actor.h"
#include "d/d_cc_d.h"
2024-05-29 01:49:10 -06:00
#include "f_op/f_op_actor_mng.h"
2025-03-13 01:03:14 +02:00
class dPath;
2024-05-29 01:49:10 -06:00
/**
* @ingroup actors-objects
* @class daObjCBlk_c
* @brief Castle Block?
*
* @details
*
*/
2025-03-13 01:03:14 +02:00
class daObjCBlk_c : public dBgS_MoveBgActor {
2024-05-29 01:49:10 -06:00
public:
2025-03-13 01:03:14 +02:00
typedef void (daObjCBlk_c::*modeFunc)();
2024-05-29 01:49:10 -06:00
struct chain_s {
public:
2025-11-30 14:23:42 -08:00
~chain_s();
chain_s();
2025-03-13 01:03:14 +02:00
J3DModel* model;
cXyz position;
2024-05-29 01:49:10 -06:00
};
2025-11-30 14:23:42 -08:00
void initBaseMtx();
void setBaseMtx();
int Create();
int CreateHeap();
int create();
int Execute(Mtx**);
void block_mode_proc_call();
2025-11-30 14:23:42 -08:00
void initWait();
void modeWait();
void initWalk();
void modeWalk();
void getChainBasePos(cXyz*);
void setPower(f32);
BOOL checkWall();
int Draw();
int Delete();
2025-03-13 01:03:14 +02:00
u8 getArg0() { return fopAcM_GetParamBit(this, 0, 4); }
u8 getSwNo() { return fopAcM_GetParamBit(this, 16, 8); }
u8 getPathID() { return fopAcM_GetParamBit(this, 24, 8); }
2024-05-29 01:49:10 -06:00
private:
2025-03-13 01:03:14 +02:00
/* 0x5A0 */ request_of_phase_process_class phase;
/* 0x5A8 */ J3DModel* model1;
/* 0x5AC */ J3DModel* model2;
/* 0x5B0 */ dCcD_Stts stts;
/* 0x5EC */ dCcD_Cyl cyl;
/* 0x728 */ dCcD_Cyl cyls[4];
/* 0xC18 */ chain_s* chains;
/* 0xC1C */ u8 field_0xc1c;
/* 0xC1D */ u8 field_0xc1d;
/* 0xC1E */ u8 field_0xc1e;
/* 0xC1F */ u8 field_0xc1f;
/* 0xC20 */ f32 power;
/* 0xC24 */ cXyz field_0xc24[7];
/* 0xC78 */ u8 field_0xc78[0xc9c - 0xc78];
/* 0xC9C */ dPath* roomPath;
/* 0xCA0 */ u8 swNo;
/* 0xCA1 */ u8 arg0;
/* 0xCA2 */ u8 field_0xca2;
/* 0xCA3 */ u8 field_0xca3;
/* 0xCA4 */ s16 walkTimer;
/* 0xCA6 */ s16 field_0xca6;
#if DEBUG
/* 0xCB0 */ cXyz field_0xcb0_debug[2];
/* 0xCC8 */ cXyz field_0xcc8_debug[2];
#endif
2024-05-29 01:49:10 -06:00
};
2024-06-10 01:34:52 -06:00
2024-05-29 01:49:10 -06:00
STATIC_ASSERT(sizeof(daObjCBlk_c) == 0xca8);
2021-03-28 22:49:05 +02:00
#endif /* D_A_OBJ_CBLOCK_H */