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

#include <CourseSelectCoursePoint.h>

Inherits CourseSelectObjActor.

Public Types

enum  AnimType : u32 {
  cAnimType_Clear = 0 , cAnimType_Help = 1 , cAnimType_Open = 2 , cAnimType_Appear = 3 ,
  cAnimType_AppearBlack = 4
}
Public Types inherited from ActorBase
enum  MainState { cState_None = 0 , cState_Failed , cState_Success , cState_Wait }
 Represents the execution state of a main operation, and whether it was skipped. More...
enum  Result { cResult_Wait = 0 , cResult_Success , cResult_Failed }
 Defines signals to pass to ActorMgr when performing create and delete operations on the actor. More...
enum  Flag { cFlag_NoEventFreeze = 1 << 1 , cFlag_NoNormalEventFreeze = 1 << 2 }
 Properties which control execution policy during events. More...
typedef sead::OffsetList< ActorBase > List

Public Member Functions

AnimModel * getNodeModel () const
AnimModel * getRingModel () const
AnimModel * getStarCoinModel () const
ShaderParamAnimation * getColorAnm () const
AnimType getAnimType () const
const sead::SafeString & getName () const
void playAnim (AnimType anim, f32=1.0f)
Public Member Functions inherited from CourseSelectDemoActor
const WorldInfo & getWorldInfo () const
u32 getCourseNo () const
Public Member Functions inherited from CourseSelectActor
sead::Vector3f & getPos ()
const sead::Vector3f & getPos () const
sead::Vector3f & getScale ()
const sead::Vector3f & getScale () const
Angle3 & getAngle ()
const Angle3 & getAngle () const
Public Member Functions inherited from ActorBase
bool isActive () const
 Whether this actor has been successfully created and is now active.
void deleteRequest ()
 Schedule this actor for deletion on the next frame.
bool isRequestedDelete () const
 Whether this actor has been scheduled for deletion on the next frame.
ActorUniqueID getActorUniqueID () const
 The unique identifier handle for this actor.
s32 getProfileID () const
 The specific profile ID which this actor was instantiated from.
Profile * getProfile () const
 The specific profile which this actor was instantiated from.
bool isCreatedImmediately () const
 Whether the actor was created with ActorMgr::createImmediately(), rather than deferred with ActorMgr::createLater().
bool isMapActor () const
 Whether the actor was spawned from the level with ActorCreateMgr, rather than dynamically spawned by another actor.
u32 getParam0 () const
 Level designer configuration. Also known as "nybbles" or "spritedata".
u32 getParam1 () const
 Level designer configuration. Also known as "nybbles" or "spritedata".
ActorParamEx1 getParamEx () const
 Extra level designer configuration. Also known as "nybbles" or "spritedata".
const List & getChildList () const
 sead::OffsetList used for holding child actors spawned by this actor. Managed automatically if param.parent_id is set when spawning.
sead::Heap * getActorHeap () const
 The personal heap for this actor.
ActorBase * getParent () const
template<typename T>
T * getParent () const
 The parent actor pointer if this actor is a child, nullptr otherwise.
void removeChild (ActorBase *child)
 Disconnects a child from this actor's family tree.

Public Attributes

AnimModel * mNodeModel
AnimModel * mRingModel
AnimModel * mStarCoinModel
u32 _118
u32 _11c
u32 _120
ShaderParamAnimation * mColorAnm
f32 _128
f32 _12c
f32 _130
AnimType mAnimType
f32 _138
u32 _13c
f32 _140
f32 _144
u32 _148
sead::FixedSafeString< 5 > mName
Effect mEffect
u8 _1a0
u8 _1a1
u8 _1a2
u8 _1a3

Protected Member Functions

 CourseSelectCoursePoint (const ActorCreateParam &param)
 ~CourseSelectCoursePoint () override
Protected Member Functions inherited from CourseSelectObjActor
 CourseSelectObjActor (const ActorCreateParam &param)
 ~CourseSelectObjActor () override
Protected Member Functions inherited from CourseSelectDemoActor
 CourseSelectDemoActor (const ActorCreateParam &param)
 ~CourseSelectDemoActor () override
bool preExecute () override
 Callback invoked before the execute operation.
Protected Member Functions inherited from CourseSelectActor
 CourseSelectActor (const ActorCreateParam &param)
 ~CourseSelectActor () override
bool preDraw () override
 Callback invoked before the draw operation.
Protected Member Functions inherited from ActorBase
 ActorBase (const ActorCreateParam &param)
 Constructs an actor from configuration data.
virtual ~ActorBase ()
 Destroys the actor and orphans all of its children.
virtual bool preCreate ()
 Callback invoked before the create operation.
virtual Result create ()
 Main initialization/setup callback for the actor.
virtual void postCreate (MainState state)
 Callback invoked unconditionally after the create phase completes. It executes even if preCreate() bypassed the main create() operation.
virtual bool execute ()
 Main execution/logic callback for the actor. Called every frame (the game runs at exactly 60 FPS).
virtual void postExecute (MainState state)
 Callback invoked unconditionally after the execute phase completes. It executes even if preExecute() bypassed the main execute() operation.
virtual void finalUpdate ()
 Callback which is called after all other actors have finished executing for this frame.
virtual bool draw ()
 Main rendering callback for the actor. Called every frame (the game runs at exactly 60 FPS).
virtual void postDraw (MainState state)
 Callback invoked unconditionally after the draw phase completes. It executes even if preDraw() bypassed the main draw() operation.
virtual bool preDelete ()
 Callback invoked before the delete operation.
virtual Result doDelete ()
 Main deletion callback for the actor.
virtual void postDelete (MainState state)
 Unconditionally called callback for after the delete operation.
void setActive_ (bool active)

Private Member Functions

 SEAD_RTTI_OVERRIDE (CourseSelectDemoActor, CourseSelectActor)

Additional Inherited Members

Protected Attributes inherited from CourseSelectObjActor
s32 _108
Protected Attributes inherited from CourseSelectDemoActor
sead::Vector3f _dc
u32 _e8
u32 _ec
WorldInfo mWorldInfo
u32 mCourseNo
u32 _100
bool _104
Protected Attributes inherited from CourseSelectActor
sead::Vector3f mPos
sead::Vector3f mPos2
sead::Vector3f _68
sead::Vector3f _74
sead::Vector3f mScale
sead::Vector3f _8c
sead::Vector3f _98
sead::Vector3f _a4
Angle3 mAngle
u32 _bc
u32 mAngleY
u32 _c4
sead::BoundBox2f _c8
u8 _d8
Protected Attributes inherited from ActorBase
sead::Heap * mActorHeap
 Personal heap for this actor of type sead::FrameHeap. Capacity of 0x20200, but profiles in the player whitelist get 0x1A0200.
ActorUniqueID mActorUniqueID
 The unique identifier handle for this actor.
Profile * mActorProfile
 The specific profile which this actor was instantiated from.
bool mCreatedImmediately
 Whether the actor was created with ActorMgr::createImmediately(), rather than deferred with ActorMgr::createLater().
bool mIsMapActor
 Whether the actor was spawned from the level with ActorCreateMgr, rather than dynamically spawned by another actor.
bool mIsActive
 Whether the create operation has completed and the actor is executing.
bool mDeleteRequestFlag
 Whether to delete this actor on the next frame.
u32 mParam0
 Level designer configuration. Also known as "nybbles" or "spritedata".
u32 mParam1
 Level designer configuration. Also known as "nybbles" or "spritedata".
ActorParamEx1 mParamEx
 Extra level designer configuration. Also known as "nybbles" or "spritedata".
List mChildList
 sead::OffsetList used for holding child actors spawned by this actor. Managed automatically if param.parent_id is set when spawning.
sead::ListNode mChildNode
 Implementation detail. Used to track our position in the parent's mChildList.
ActorBase * mParent
 The parent actor if this actor is a child. Automatically set to nullptr if orphaned.
sead::ListNode mExecuteNode
 Implementation detail. Used to track our position in ActorMgr lists.
sead::ListNode mDrawNode
 Implementation detail. Used to track our position in ActorMgr mDrawManage list.
sead::BitFlag32 mFlag
 Properties which control execution policy during events. See ActorBase::Flag enum.

Member Enumeration Documentation

◆ AnimType

Enumerator
cAnimType_Clear 
cAnimType_Help 
cAnimType_Open 
cAnimType_Appear 
cAnimType_AppearBlack 

Constructor & Destructor Documentation

◆ CourseSelectCoursePoint()

CourseSelectCoursePoint::CourseSelectCoursePoint ( const ActorCreateParam & param)
protected

◆ ~CourseSelectCoursePoint()

CourseSelectCoursePoint::~CourseSelectCoursePoint ( )
overrideprotected

Member Function Documentation

◆ SEAD_RTTI_OVERRIDE()

CourseSelectCoursePoint::SEAD_RTTI_OVERRIDE ( CourseSelectDemoActor ,
CourseSelectActor  )
private

◆ getNodeModel()

AnimModel * CourseSelectCoursePoint::getNodeModel ( ) const
inline

◆ getRingModel()

AnimModel * CourseSelectCoursePoint::getRingModel ( ) const
inline

◆ getStarCoinModel()

AnimModel * CourseSelectCoursePoint::getStarCoinModel ( ) const
inline

◆ getColorAnm()

ShaderParamAnimation * CourseSelectCoursePoint::getColorAnm ( ) const
inline

◆ getAnimType()

AnimType CourseSelectCoursePoint::getAnimType ( ) const
inline

◆ getName()

const sead::SafeString & CourseSelectCoursePoint::getName ( ) const
inline

◆ playAnim()

void CourseSelectCoursePoint::playAnim ( AnimType anim,
f32 = 1.0f )

Member Data Documentation

◆ mNodeModel

AnimModel* CourseSelectCoursePoint::mNodeModel

◆ mRingModel

AnimModel* CourseSelectCoursePoint::mRingModel

◆ mStarCoinModel

AnimModel* CourseSelectCoursePoint::mStarCoinModel

◆ _118

u32 CourseSelectCoursePoint::_118

◆ _11c

u32 CourseSelectCoursePoint::_11c

◆ _120

u32 CourseSelectCoursePoint::_120

◆ mColorAnm

ShaderParamAnimation* CourseSelectCoursePoint::mColorAnm

◆ _128

f32 CourseSelectCoursePoint::_128

◆ _12c

f32 CourseSelectCoursePoint::_12c

◆ _130

f32 CourseSelectCoursePoint::_130

◆ mAnimType

AnimType CourseSelectCoursePoint::mAnimType

◆ _138

f32 CourseSelectCoursePoint::_138

◆ _13c

u32 CourseSelectCoursePoint::_13c

◆ _140

f32 CourseSelectCoursePoint::_140

◆ _144

f32 CourseSelectCoursePoint::_144

◆ _148

u32 CourseSelectCoursePoint::_148

◆ mName

sead::FixedSafeString<5> CourseSelectCoursePoint::mName

◆ mEffect

Effect CourseSelectCoursePoint::mEffect

◆ _1a0

u8 CourseSelectCoursePoint::_1a0

◆ _1a1

u8 CourseSelectCoursePoint::_1a1

◆ _1a2

u8 CourseSelectCoursePoint::_1a2

◆ _1a3

u8 CourseSelectCoursePoint::_1a3