-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
daMagLift_c work #2275
Open
YunataSavior
wants to merge
4
commits into
zeldaret:main
Choose a base branch
from
YunataSavior:my_dev_tp
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+222
−390
Open
daMagLift_c work #2275
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
8bffce1
Initial work with daMagLift_c. Almost completely matching except for …
YunataSavior 5ae9894
mode_proc matching in d_a_obj_magLift.cpp
YunataSavior 71b4e37
Merge branch 'zeldaret:main' into my_dev_tp
YunataSavior 40aa315
First pass of polishing of d_a_obj_magLift
YunataSavior File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#ifndef D_A_OBJ_MAGLIFT_H | ||
#define D_A_OBJ_MAGLIFT_H | ||
|
||
#include "f_op/f_op_actor_mng.h" | ||
#include "d/d_bg_s_movebg_actor.h" | ||
#include "d/d_com_inf_game.h" | ||
|
||
/** | ||
* @ingroup actors-objects | ||
|
@@ -11,12 +12,22 @@ | |
* @details | ||
* | ||
*/ | ||
class daMagLift_c : public fopAc_ac_c { | ||
class daMagLift_c : public dBgS_MoveBgActor { | ||
public: | ||
enum Mode_e { | ||
MODE_ACC_e, | ||
MODE_MOVE_e, | ||
MODE_BRK_e, | ||
MODE_WAIT_e, | ||
MODE_WAIT_INIT_e, | ||
MODE_DEAD_e, | ||
MODE_MOVE_WAIT_e | ||
}; | ||
|
||
/* 80C8DAA0 */ void setBaseMtx(); | ||
/* 80C8DB28 */ void CreateHeap(); | ||
/* 80C8DB94 */ void create(); | ||
/* 80C8DD38 */ void Execute(f32 (**)[3][4]); | ||
/* 80C8DB28 */ int CreateHeap(); | ||
/* 80C8DB94 */ int create(); | ||
/* 80C8DD38 */ int Execute(Mtx**); | ||
/* 80C8DD88 */ void moveLift(); | ||
/* 80C8DE98 */ void modeAcc(); | ||
/* 80C8DF20 */ void init_modeMove(); | ||
|
@@ -31,21 +42,38 @@ class daMagLift_c : public fopAc_ac_c { | |
/* 80C8E2C4 */ void modeMoveWait(); | ||
/* 80C8E318 */ void modeDead(); | ||
/* 80C8E31C */ void setNextPoint(); | ||
/* 80C8E450 */ void Draw(); | ||
/* 80C8E4F4 */ void Delete(); | ||
/* 80C8E450 */ int Draw(); | ||
/* 80C8E4F4 */ int Delete(); | ||
|
||
int getMoveSpeed() { return fopAcM_GetParamBit(this, 0x8, 4); } | ||
|
||
static u8 const mSpeed[64]; | ||
static f32 const mSpeed[16]; | ||
|
||
private: | ||
/* 0x568 */ u8 field_0x568[0x5d4 - 0x568]; | ||
/* 0x5a0 */ request_of_phase_process_class mPhaseReq; | ||
/* 0x5a8 */ J3DModel* mpModel; | ||
/* 0x5ac */ u8 field_0x5ac [0x5ae - 0x5ac]; | ||
/* 0x5ae */ u8 field_0x5ae; | ||
/* 0x5af */ s8 field_0x5af; | ||
/* 0x5b0 */ s16 mPoint; | ||
// two bytes of padding. | ||
/* 0x5b4 */ cXyz field_0x5b4; | ||
/* 0x5c0 */ cXyz field_0x5c0; | ||
/* 0x5cc */ float mMoveSpeed; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. f32 is preferred for float types in game code |
||
/* 0x5d0 */ u8 mMode; | ||
/* 0x5d1 */ u8 is_switch; | ||
// The rest is word padding. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same thing about comment being unnecessary |
||
}; | ||
|
||
STATIC_ASSERT(sizeof(daMagLift_c) == 0x5d4); | ||
|
||
class daMagLift_HIO_c { | ||
class daMagLift_HIO_c : public mDoHIO_entry_c { | ||
public: | ||
/* 80C8DA2C */ daMagLift_HIO_c(); | ||
/* 80C8E5B0 */ ~daMagLift_HIO_c(); | ||
/* 80C8E5B0 */ virtual ~daMagLift_HIO_c() {} | ||
|
||
/* 0x4 */ u8 field_0x4; | ||
/* 0x5 */ u8 field_0x5; | ||
}; | ||
|
||
|
||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments about padding aren't that necessary