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

#include <EnemyChibiYoshiAwaData.h>

Inherits ChibiYoshiAwaData.

Public Member Functions

 EnemyChibiYoshiAwaData (ActorUniqueID owner_id)
void setAwaHit (Actor *awa) override
 Called when a bubble hits the actor and either catches it or breaks.
void awaCatchMove (Actor *awa) override
 Called as the bubble is swallowing the actor.
void setAwaCatchEnd (Actor *awa) override
 Called when the bubble finishes swallowing the actor, and the actor should die.
void setAwaInvalid (Actor *awa) override
 Called when the bubble cannot catch the actor and breaks instead.
Public Member Functions inherited from ChibiYoshiAwaData
 ChibiYoshiAwaData (ActorUniqueID owner_id)
 Constructs the ChibiYoshiAwaData and parents it to an owner by ID.
AwaType getAwaType () const
 The type of interaction the bubble will have upon contact with the actor.
void setAwaType (AwaType type)
 Set the type of interaction the bubble will have upon contact with the actor.
State getState () const
 Which stage of interaction we are currently in.
void setState (State state)
 Set which stage of interaction we are currently in.
ItemType getItemType () const
 The type of powerup item which has a chance to spawn in the bubble when caught.
void setItemType (ItemType type)
 Set the type of powerup item which has a chance to spawn in the bubble when caught.
sead::Vector2fgetPosOffset ()
 An offset to the actor's center position, which modulates the target position the bubble should drift towards the moment it catches onto the actor.
const sead::Vector2fgetPosOffset () const
 An offset to the actor's center position, which modulates the target position the bubble should drift towards the moment it catches onto the actor.

Additional Inherited Members

Public Types inherited from ChibiYoshiAwaData
enum  AwaType { cAwaType_Invalid = 0 , cAwaType_Catch , cAwaType_CatchBig , cAwaType_Num }
 Defines the type of interaction the bubble will have upon contact with the actor. More...
enum  State { cState_None = 0 , cState_Catch }
 Defines which stage of interaction we are currently in. More...
enum  ItemType { cItemType_Normal = 0 , cItemType_ForceMusasabi , cItemType_ForceKinoko }
 Defines the type of powerup item which has a chance to spawn in the bubble when caught. More...
Protected Attributes inherited from ChibiYoshiAwaData
ActorUniqueID mOwnerID
 The ID of the actor which this data belongs to.
ActorUniqueID mChibiYoshiAwaID
 The ID of the bubble which we are currently interacting with.
AwaType mAwaType
 The type of interaction the bubble will have upon contact with the actor.
State mState
 Which stage of interaction we are currently in.
ItemType mItemType
 The type of powerup item which has a chance to spawn in the bubble when caught.
sead::Vector2f mPosOffset
 An offset to the actor's center position, which modulates the target position the bubble should drift towards the moment it catches onto the actor.

Constructor & Destructor Documentation

◆ EnemyChibiYoshiAwaData()

EnemyChibiYoshiAwaData::EnemyChibiYoshiAwaData ( ActorUniqueID owner_id)

Member Function Documentation

◆ setAwaHit()

void EnemyChibiYoshiAwaData::setAwaHit ( Actor * awa)
overridevirtual

Called when a bubble hits the actor and either catches it or breaks.

Address: 0x0272D730

Reimplemented from ChibiYoshiAwaData.

◆ awaCatchMove()

void EnemyChibiYoshiAwaData::awaCatchMove ( Actor * awa)
overridevirtual

Called as the bubble is swallowing the actor.

Address: 0x0272D734

Reimplemented from ChibiYoshiAwaData.

◆ setAwaCatchEnd()

void EnemyChibiYoshiAwaData::setAwaCatchEnd ( Actor * awa)
overridevirtual

Called when the bubble finishes swallowing the actor, and the actor should die.

Address: 0x0272D700

Reimplemented from ChibiYoshiAwaData.

◆ setAwaInvalid()

void EnemyChibiYoshiAwaData::setAwaInvalid ( Actor * awa)
overridevirtual

Called when the bubble cannot catch the actor and breaks instead.

Address: 0x0272D738

Reimplemented from ChibiYoshiAwaData.