#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 } |
| enum | { cProfileID_Max = 913 } |
Public Member Functions | |
| Profile (ActorFactory factory, ProfileID id, const sead::SafeString &name, const ActorData *create_info=nullptr, u32 flag=cFlag_None, void(*)(sead::hostio::Context *)=nullptr) | |
| ActorFactory | getActorFactory () const |
| ProfileID | getID () const |
| const ActorData & | getActorCreateInfo () const |
| bool | isResLoaded () const |
| Flag | getFlag () const |
| void | loadResource (sead::Heap *heap) |
| void | unloadResource () |
| ModelResource * | getMdlResource (u32 index) const |
Static Public Member Functions | |
| static Profile * | getProfile (ProfileID id) |
Protected Attributes | |
| ActorFactory | mFactory |
| ProfileID | mID |
| const ActorData * | mActorCreateInfo |
| bool | mIsResLoaded |
| Flag | mFlag |
Static Protected Attributes | |
| static sead::SafeArray< Profile *, 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) |
| enum Profile::Flag |
| Enumerator | |
|---|---|
| cFlag_DrawCullCheck | Enables calling |
| 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 |
| cFlag_FunsuiFollowY | Causes geysers to drag this actor's position upwards. Only used by Piranha Plants in NSLU. |
| cFlag_None | |
| Profile::Profile | ( | ActorFactory | factory, |
| ProfileID | id, | ||
| const sead::SafeString & | name, | ||
| const ActorData * | create_info = nullptr, | ||
| u32 | flag = cFlag_None, | ||
| void(* | )(sead::hostio::Context *) = nullptr ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void Profile::loadResource | ( | sead::Heap * | heap | ) |
| void Profile::unloadResource | ( | ) |
| ModelResource * Profile::getMdlResource | ( | u32 | index | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |