d_a_tag_statue_evt OK (#2107)

* d_a_tag_statue_evt OK

* Modification according to review
This commit is contained in:
Huitzi 2024-03-24 13:21:22 -04:00 committed by GitHub
parent 3e2b193c0f
commit 023c06c573
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 494 additions and 725 deletions

View File

@ -1,6 +1,81 @@
#ifndef D_A_TAG_STATUE_EVT_H
#define D_A_TAG_STATUE_EVT_H
#include "dolphin/types.h"
#include "f_op/f_op_actor_mng.h"
#endif /* D_A_TAG_STATUE_EVT_H */
class daTagStatue_c : public fopAc_ac_c {
public:
/* 805A6FC4 */ void initBaseMtx();
/* 805A7000 */ void setBaseMtx();
/* 805A7068 */ cPhs__Step Create();
/* 805A7230 */ int CreateHeap();
/* 805A7424 */ cPhs__Step create();
/* 805A7514 */ int execute();
/* 805A759C */ void event_proc_call();
/* 805A76AC */ void actionWait();
/* 805A7714 */ void actionOrderEvent();
/* 805A77A0 */ void actionEvent();
/* 805A7848 */ void actionDead();
/* 805A784C */ int demoProc();
/* 805A7A68 */ void setParticle();
/* 805A7B24 */ void endParticle();
/* 805A7B78 */ BOOL checkStartDemo();
/* 805A7CD0 */ BOOL checkOnEffect();
/* 805A7E94 */ s32 getLetterCount();
/* 805A7F0C */ int draw();
/* 805A7FF8 */ int _delete();
private:
/* 0x568 */ request_of_phase_process_class mArcPhase;
/* 0x570 */ request_of_phase_process_class mEvArcPhase;
/* 0x578 */ J3DModel* mpModel;
/* 0x57C */ mDoExt_btkAnm* mpPlatformCircleBtk;
/* 0x580 */ mDoExt_brkAnm* mpGlowingSkyCharacterBrk;
/* 0x584 */ JPABaseEmitter* mpLightRingEmitters[3];
/* 0x590 */ s32 mStaffId;
/* 0x594 */ u8 mCurrentAction;
/* 0x595 */ u8 mTimer;
/* 0x596 */ u8 mMapToolId;
/* 0x597 */ u8 mSkyCharacterEventBitIdIndex;
/* 0x598 */ s16 mEventId;
/* 0x59C */ u32 mTreasureDemoItemId;
/* 0x5A0 */ s32 mOwlStatueId;
enum Action_e {
ACTION_WAIT_e,
ACTION_ORDER_EVENT_e,
ACTION_EVENT_e,
ACTION_DEAD_e
};
enum Demo_Action_e {
DEMO_ACTION_WAIT,
DEMO_ACTION_MOVE_OWL_STATUE,
DEMO_ACTION_AWARD_ITEM
};
enum Tag_Location_e {
TAG_LOCATION_FARON_WOODS,
TAG_LOCATION_GERUDO_DESERT,
TAG_LOCATION_KAKARIKO_GORGE,
TAG_LOCATION_GREAT_ELDIN_BRIDGE,
TAG_LOCATION_LAKE_HYLIA,
TAG_LOCATION_RUINED_THEATRE
};
void setAction(Action_e action) {
mCurrentAction = action;
}
u32 getSwbit() {
return fopAcM_GetParamBit(this, 0, 8);
}
// Returns whether player has obtained a Sky Character from the tag
u32 getSwbit2() {
return fopAcM_GetParamBit(this, 12, 8);
}
};
#endif /* D_A_TAG_STATUE_EVT_H */

View File

@ -8,12 +8,10 @@ M133_MAP := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_statue_evt.map
M133_CPP_FILES := \
rel/executor.cpp \
rel/d/a/tag/d_a_tag_statue_evt/unknown_translation_unit_bss.cpp \
rel/d/a/tag/d_a_tag_statue_evt/d_a_tag_statue_evt.cpp \
M133_O_FILES := \
$(BUILD_DIR)/rel/executor.o \
$(BUILD_DIR)/rel/d/a/tag/d_a_tag_statue_evt/unknown_translation_unit_bss.o \
$(BUILD_DIR)/rel/d/a/tag/d_a_tag_statue_evt/d_a_tag_statue_evt.o \
M133_LIBS := \

File diff suppressed because it is too large Load Diff

View File

@ -1,26 +0,0 @@
//
// Generated By: dol2asm
// Translation Unit: unknown_translation_unit_bss
//
#include "rel/d/a/tag/d_a_tag_statue_evt/unknown_translation_unit_bss.h"
#include "dolphin/types.h"
//
// Forward References:
//
extern "C" extern u8 data_805A8390[4];
//
// External References:
//
//
// Declarations:
//
/* ############################################################################################## */
/* 805A8390-805A8394 000000 0004+00 0/0 1/1 0/0 .bss None */
extern u8 data_805A8390[4];
u8 data_805A8390[4];