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_Unk3 = 1 << 3 , cFlag_Unk4 = 1 << 4 , cFlag_Unk7 = 1 << 7 ,
  cFlag_Unk8 = 1 << 8 , cFlag_NoLoopPosX = 1 << 10 , cFlag_Unk12 = 1 << 12 , 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 ActorCreateInfogetActorCreateInfo () const
bool isResLoaded () const
Flag getFlag () const
void loadResource (sead::Heap *heap)
void unloadResource (sead::Heap *heap)
ModelResourcegetResource (u32 index) const

Static Public Member Functions

static Profileget (s32 id)

Protected Attributes

ActorFactory mFactory
s32 mID
const ActorCreateInfomActorCreateInfo
bool mIsResLoaded
Flag mFlag

Static Protected Attributes

static sead::SafeArray< Profile *, ProfileInfo::cProfileID_MaxsProfileList

Friends

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

Member Enumeration Documentation

◆ Flag

Enumerator
cFlag_DrawCullCheck 
cFlag_Unk3 
cFlag_Unk4 
cFlag_Unk7 
cFlag_Unk8 
cFlag_NoLoopPosX 
cFlag_Unk12 
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