-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
557750e
commit dbed083
Showing
10 changed files
with
336 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#ifndef D_T_SWITCH_H | ||
#define D_T_SWITCH_H | ||
|
||
#include <d/tg/d_tg.h> | ||
#include <s/s_State.hpp> | ||
#include <s/s_StateMgr.hpp> | ||
#include <toBeSorted/actor_event.h> | ||
|
||
class dTgSw_c : public dTg_c { | ||
public: | ||
dTgSw_c() : mStateMgr(*this, sStateID::null), mActorEvent(*this, nullptr) {} | ||
virtual ~dTgSw_c() {} | ||
|
||
virtual int create() override; | ||
virtual int doDelete() override; | ||
virtual int actorExecute() override; | ||
virtual int draw() override; | ||
|
||
STATE_FUNC_DECLARE(dTgSw_c, OnWait); | ||
STATE_FUNC_DECLARE(dTgSw_c, On); | ||
STATE_FUNC_DECLARE(dTgSw_c, OffWait); | ||
STATE_FUNC_DECLARE(dTgSw_c, Off); | ||
|
||
private: | ||
bool isLmfBossKeyPuzzle(); | ||
void resetAllSwitches(); | ||
void resetSwitchesAfterCurrent(); | ||
bool isPuzzleSolved(); | ||
|
||
/* 0x0FC */ STATE_MGR_DECLARE(dTgSw_c); | ||
/* 0x138 */ ActorEventRelated mActorEvent; | ||
/* 0x188 */ u8 mSetSceneFlagId; | ||
/* 0x189 */ u8 mTrigSceneFlagIdBegin; | ||
/* 0x18A */ u8 mFirst2; | ||
/* 0x18B */ u8 mSecond2; | ||
/* 0x18C */ u8 mThird2; | ||
/* 0x18D */ u8 mNumSwitchesToWin; | ||
/* 0x18E */ u8 mTrigSceneFlagIdEnd; | ||
/* 0x18F */ u8 mTimer; | ||
/* 0x190 */ u8 mCurrentFlagPosition; | ||
/* 0x191 */ bool mIsFsBossKeyPuzzle; | ||
/* 0x192 */ u8 field_0x192; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef ACTOR_EVENT_H | ||
#define ACTOR_EVENT_H | ||
|
||
#include <common.h> | ||
#include <d/a/d_a_base.h> | ||
#include <toBeSorted/event.h> | ||
|
||
class ActorEventRelated { | ||
public: | ||
ActorEventRelated(dAcBase_c &owner, void *); | ||
~ActorEventRelated(); | ||
|
||
bool isThisActorInEvent(); | ||
void scheduleEvent(Event &, u32); | ||
|
||
private: | ||
u8 field_0x00[0x50 - 0x00]; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.