SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
FlashingCtrl Class Reference
Inheritance diagram for FlashingCtrl:
NameObj

Public Member Functions

 FlashingCtrl (LiveActor *, bool)
 
virtual void movement ()
 
void start (int)
 
void end ()
 
s32 getCurrentInterval () const
 
bool isNowFlashing () const
 
bool isNowOn () const
 
void updateFlashing ()
 
- Public Member Functions inherited from NameObj
 NameObj (const char *pName)
 Constructs a new NameObj instance.
 
virtual void init (const JMapInfoIter &rIter)
 Intializes the NameObj and can set various settings and construct necessary classes.
 
virtual void initAfterPlacement ()
 
virtual void draw () const
 Draws the object. Does nothing until overridden.
 
virtual void calcAnim ()
 
virtual void calcViewAndEntry ()
 
void initWithoutIter ()
 Initializes a NameObj without a JMapInfoIter instance.
 
void setName (const char *pName)
 Sets the NameObj's mName.
 
void executeMovement ()
 
void requestSuspend ()
 
void requestResume ()
 
void syncWithFlags ()
 

Public Attributes

LiveActormActor
 
bool mToggleDraw
 
bool mIsEnded
 
u8 mOverrideInterval
 
u8 _13
 
s32 mTimer
 
s32 mFlashStartTime
 
- Public Attributes inherited from NameObj
const char * mName
 A string to identify the NameObj.
 
volatile u16 mFlags
 Flags in relation to movement.
 
s16 mExecutorIdx
 The index into the NameObjExecuteInfo array.
 

Detailed Description

Definition at line 5 of file FlashingCtrl.hpp.

Constructor & Destructor Documentation

◆ FlashingCtrl()

FlashingCtrl::FlashingCtrl ( LiveActor * pActor,
bool toggleDraw )

Definition at line 4 of file FlashingCtrl.cpp.

◆ ~FlashingCtrl()

FlashingCtrl::~FlashingCtrl ( )
virtual

Definition at line 80 of file FlashingCtrl.cpp.

Member Function Documentation

◆ movement()

void FlashingCtrl::movement ( )
virtual

Reimplemented from NameObj.

Definition at line 14 of file FlashingCtrl.cpp.

◆ start()

void FlashingCtrl::start ( int timer)

Definition at line 32 of file FlashingCtrl.cpp.

◆ end()

void FlashingCtrl::end ( )

Definition at line 39 of file FlashingCtrl.cpp.

◆ getCurrentInterval()

s32 FlashingCtrl::getCurrentInterval ( ) const

Definition at line 48 of file FlashingCtrl.cpp.

◆ isNowFlashing()

bool FlashingCtrl::isNowFlashing ( ) const

Definition at line 61 of file FlashingCtrl.cpp.

◆ isNowOn()

bool FlashingCtrl::isNowOn ( ) const

Definition at line 65 of file FlashingCtrl.cpp.

◆ updateFlashing()

void FlashingCtrl::updateFlashing ( )

Definition at line 69 of file FlashingCtrl.cpp.

Member Data Documentation

◆ mActor

LiveActor* FlashingCtrl::mActor

Definition at line 19 of file FlashingCtrl.hpp.

◆ mToggleDraw

bool FlashingCtrl::mToggleDraw

Definition at line 20 of file FlashingCtrl.hpp.

◆ mIsEnded

bool FlashingCtrl::mIsEnded

Definition at line 21 of file FlashingCtrl.hpp.

◆ mOverrideInterval

u8 FlashingCtrl::mOverrideInterval

Definition at line 22 of file FlashingCtrl.hpp.

◆ _13

u8 FlashingCtrl::_13

Definition at line 23 of file FlashingCtrl.hpp.

◆ mTimer

s32 FlashingCtrl::mTimer

Definition at line 24 of file FlashingCtrl.hpp.

◆ mFlashStartTime

s32 FlashingCtrl::mFlashStartTime

Definition at line 25 of file FlashingCtrl.hpp.