New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
Profile Class Reference

#include <Profile.h>

Public Types

enum  Flag {
  cFlag_DrawCullCheck = 1 << 1 , cFlag_NoComboScore = 1 << 2 , cFlag_Unk3 = 1 << 3 , cFlag_WinKill = 1 << 4 ,
  cFlag_WinKillNoScore = 1 << 5 , cFlag_Unk6 = 1 << 6 , cFlag_Projectile = 1 << 7 , cFlag_Unk8 = 1 << 8 ,
  cFlag_NoFumi = 1 << 9 , cFlag_NoLoopPosX = 1 << 10 , cFlag_Carryable = 1 << 11 , cFlag_Unk12 = 1 << 12 ,
  cFlag_Coin = 1 << 13 , cFlag_Item = 1 << 14 , cFlag_FunsuiFollowY = 1 << 15 , cFlag_None = 0
}

Public Member Functions

 Profile (ActorFactory factory, s32 id, const sead::SafeString &name, const ActorCreateInfo *create_info=nullptr, Flag flag=cFlag_None)
ActorFactory getActorFactory () const
s32 getID () const
const ActorCreateInfo & getActorCreateInfo () const
bool isResLoaded () const
Flag getFlag () const
void loadResource (sead::Heap *heap)
void unloadResource (sead::Heap *heap)
ModelResource * getResource (u32 index) const

Static Public Member Functions

static Profile * get (s32 id)

Protected Attributes

ActorFactory mFactory
s32 mID
const ActorCreateInfo * mActorCreateInfo
bool mIsResLoaded
Flag mFlag

Static Protected Attributes

static sead::SafeArray< Profile *, ProfileInfo::cProfileID_Max > sProfileList

Friends

Flag operator| (const Flag &lhs, const Flag &rhs)
Flag & operator|= (Flag &lhs, const Flag &rhs)
Flag operator& (const Flag &lhs, const Flag &rhs)
Flag & operator&= (Flag &lhs, const Flag &rhs)
Flag operator~ (const Flag &val)

Member Enumeration Documentation

◆ Flag

Enumerator
cFlag_DrawCullCheck 

Enables calling Actor::drawCullCheck_() to skip drawing if the actor is considered offscreen.

cFlag_NoComboScore 

Disables awarding Combo scores.

cFlag_Unk3 

Possibly unused.

cFlag_WinKill 

Kills the actor and awards score when completing the course.

cFlag_WinKillNoScore 

Kills the actor when completing the course but does not award score.

cFlag_Unk6 

Possibly unused.

cFlag_Projectile 

Used for special collision logic, and kills the actor when completing the course by defeating a boss.

cFlag_Unk8 

Possibly unused.

cFlag_NoFumi 

Bypasses stomp classification and always damages the player (applies knockback when penguin-sliding).

cFlag_NoLoopPosX 

Disables horizontal screen-wrapping for this actor.

cFlag_Carryable 

Allows other carryable blocks to bounce off this actor, kills the actor when catching Nabbit, and counts as a weighted rider on Floating Box.

cFlag_Unk12 

Possibly unused.

cFlag_Coin 

Counts as a weighted rider on platforms.

cFlag_Item 

Allows being bumped around by Bump Platforms through the ItemBase bump-related members.

cFlag_FunsuiFollowY 

Causes geysers to drag this actor's position upwards. Only used by Piranha Plants in NSLU.

cFlag_None 

Constructor & Destructor Documentation

◆ Profile()

Profile::Profile ( ActorFactory factory,
s32 id,
const sead::SafeString & name,
const ActorCreateInfo * create_info = nullptr,
Flag flag = cFlag_None )

Member Function Documentation

◆ getActorFactory()

ActorFactory Profile::getActorFactory ( ) const
inline

◆ getID()

s32 Profile::getID ( ) const
inline

◆ getActorCreateInfo()

const ActorCreateInfo & Profile::getActorCreateInfo ( ) const
inline

◆ isResLoaded()

bool Profile::isResLoaded ( ) const
inline

◆ getFlag()

Flag Profile::getFlag ( ) const
inline

◆ loadResource()

void Profile::loadResource ( sead::Heap * heap)

◆ unloadResource()

void Profile::unloadResource ( sead::Heap * heap)

◆ getResource()

ModelResource * Profile::getResource ( u32 index) const

◆ get()

Profile * Profile::get ( s32 id)
static

◆ operator|

Flag operator| ( const Flag & lhs,
const Flag & rhs )
friend

◆ operator|=

Flag & operator|= ( Flag & lhs,
const Flag & rhs )
friend

◆ operator&

Flag operator& ( const Flag & lhs,
const Flag & rhs )
friend

◆ operator&=

Flag & operator&= ( Flag & lhs,
const Flag & rhs )
friend

◆ operator~

Flag operator~ ( const Flag & val)
friend

Member Data Documentation

◆ mFactory

ActorFactory Profile::mFactory
protected

◆ mID

s32 Profile::mID
protected

◆ mActorCreateInfo

const ActorCreateInfo* Profile::mActorCreateInfo
protected

◆ mIsResLoaded

bool Profile::mIsResLoaded
protected

◆ mFlag

Flag Profile::mFlag
protected

◆ sProfileList

sead::SafeArray< Profile*, ProfileInfo::cProfileID_Max > Profile::sProfileList
staticprotected