Skip to content

item: More methods and members - #7

Merged
Luminyx1 merged 2 commits into
nsmbu:mainfrom
Arulo165:Item
Aug 14, 2026
Merged

item: More methods and members#7
Luminyx1 merged 2 commits into
nsmbu:mainfrom
Arulo165:Item

Conversation

@Arulo165

Copy link
Copy Markdown
Contributor

No description provided.

@Luminyx1 Luminyx1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted some changes, a few things are minor nitpicks but most should be fixed

Comment thread actor/ActorState.h
Comment thread item/ItemBase.h Outdated
ItemBase(const ActorCreateParam& param);
virtual ~ItemBase();

bool draw()override;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all of these are missing a space before override

Comment thread item/ItemBase.h
Comment thread item/ItemBase.h Outdated
{
SEAD_RTTI_OVERRIDE(ItemBase, ActorMultiState)
protected:
enum ItemTypes

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the enum should be "ItemType"

Comment thread item/ItemBase.h
Comment thread item/ItemObj.h
Comment thread actor/ActorState.h Outdated
return *mStateMgr.getOldStateID() == state_id;
}

const StateID* getCurrentState()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

method should be marked const

Comment thread item/ItemObj.h
Comment thread player/PlayerObject.h Outdated
return DirType(param_0 >> 24 & 0xF);
}

PlayerMode getModePrev()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both of these new getters should be marked const

Comment thread player/PlayerObject.h Outdated

DirType getDirection()
{
return _2a00;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is _2a00 known to be actually mDirection? if so that should be renamed too

@Luminyx1 Luminyx1 changed the title Add a lot of functions/getters and setters item: More methods and members Aug 14, 2026
@Luminyx1
Luminyx1 merged commit a36a493 into nsmbu:main Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants