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

68 lines
2.0 KiB
C++
Raw Normal View History

2021-03-28 22:49:05 +02:00
#ifndef D_A_CROD_H
#define D_A_CROD_H
2024-10-10 07:29:58 -07:00
#include "d/actor/d_a_player.h"
#include "d/d_cc_d.h"
2021-11-10 23:54:31 -08:00
#include "f_op/f_op_actor_mng.h"
2021-03-28 22:49:05 +02:00
2024-04-12 00:10:30 -06:00
/**
* @ingroup actors-items
2024-06-10 01:34:52 -06:00
* @class daCrod_c
2024-04-12 00:10:30 -06:00
* @brief Dominion Rod
2024-06-10 01:34:52 -06:00
*
* @details Temple of Time dungeon item.
*
2024-04-12 00:10:30 -06:00
*/
2021-12-04 05:10:59 -08:00
class daCrod_c : public fopAc_ac_c {
2021-11-10 23:54:31 -08:00
public:
2025-04-16 13:03:00 -07:00
/* 80141A94 */ void setControllActorData() {
mControllActorKeep.setActor();
mCameraActorKeep.setActor();
}
2023-02-05 07:09:29 -08:00
/* 804A2E38 */ int createHeap();
/* 804A2F18 */ int create();
2021-11-10 23:54:31 -08:00
/* 804A3304 */ ~daCrod_c();
/* 804A34B0 */ void setRoomInfo();
/* 804A34B4 */ void setMatrix();
/* 804A3500 */ void posMove();
/* 804A3580 */ void setBckAnm(u16);
/* 804A35FC */ void setReturn();
/* 804A365C */ void setLightPower();
2023-02-05 07:09:29 -08:00
/* 804A36D8 */ int execute();
/* 804A3FD4 */ int draw();
2021-11-10 23:54:31 -08:00
static fopAc_ac_c* makeIronBallDummy(fopAc_ac_c* p_actor) {
return (fopAc_ac_c*)fopAcM_fastCreate(0x2F4, 6, &p_actor->current.pos,
2021-12-04 05:57:01 -08:00
fopAcM_GetRoomNo(p_actor), NULL, NULL, -1, NULL,
NULL);
2021-11-10 23:54:31 -08:00
}
2021-12-04 05:10:59 -08:00
2023-02-05 07:09:29 -08:00
fopAc_ac_c* getControllActor() { return mControllActorKeep.getActor(); }
2021-12-04 05:10:59 -08:00
2023-02-05 07:09:29 -08:00
fopAc_ac_c* getCameraActor() { return mCameraActorKeep.getActor(); }
2021-12-04 05:10:59 -08:00
void setThrow() { fopAcM_SetParam(this, 2); }
2024-10-10 07:29:58 -07:00
void offControll() { mControllActorKeep.clearData(); }
2021-12-04 05:10:59 -08:00
2023-02-05 07:09:29 -08:00
static f32 getFlyInitY() { return 40.0f; }
static f32 getFlyInitZ() { return 50.0f; }
2021-12-04 05:10:59 -08:00
private:
2023-02-05 07:09:29 -08:00
/* 0x568 */ J3DModel* mpBallModel;
/* 0x56C */ mDoExt_bckAnm mBck;
/* 0x588 */ J3DAnmTevRegKey* mpBallBrk;
/* 0x58C */ J3DAnmTextureSRTKey* mpBallBtk;
/* 0x590 */ dCcD_Stts mCcStts;
/* 0x5CC */ dCcD_Cps mAtCps;
/* 0x710 */ LIGHT_INFLUENCE mLight;
2021-12-04 05:10:59 -08:00
/* 0x730 */ u8 field_0x730;
/* 0x731 */ u8 field_0x731;
/* 0x732 */ u8 field_0x732;
/* 0x734 */ cXyz field_0x734;
2023-02-05 07:09:29 -08:00
/* 0x740 */ daPy_actorKeep_c mControllActorKeep;
/* 0x748 */ daPy_actorKeep_c mCameraActorKeep;
2021-12-04 05:10:59 -08:00
}; // Size: 0x750
2021-11-10 23:54:31 -08:00
2021-03-28 22:49:05 +02:00
#endif /* D_A_CROD_H */