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

Defines parameters for interaction with bubbles from the blue Baby Yoshi. More...

#include <ChibiYoshiAwaData.h>

Inherited by EnemyChibiYoshiAwaData.

Public Types

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...

Public Member Functions

 ChibiYoshiAwaData (ActorUniqueID owner_id)
 Constructs the ChibiYoshiAwaData and parents it to an owner by ID.
virtual void setAwaHit (Actor *awa)
 Called when a bubble hits the actor and either catches it or breaks.
virtual void awaCatchMove (Actor *awa)
 Called as the bubble is swallowing the actor.
virtual void setAwaCatchEnd (Actor *awa)
 Called when the bubble finishes swallowing the actor, and the actor should die.
virtual void setAwaInvalid (Actor *awa)
 Called when the bubble cannot catch the actor and breaks instead.
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.

Protected Attributes

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.

Detailed Description

Defines parameters for interaction with bubbles from the blue Baby Yoshi.

vtable Address: 0x10108190

Member Enumeration Documentation

◆ AwaType

Defines the type of interaction the bubble will have upon contact with the actor.

Enumerator
cAwaType_Invalid 

Bubble cannot catch the actor and breaks instead.

cAwaType_Catch 

Bubble catches the actor and spawns low value random content.

cAwaType_CatchBig 

Bubble catches the actor and spawns high value random content.

cAwaType_Num 

◆ State

Defines which stage of interaction we are currently in.

Enumerator
cState_None 
cState_Catch 

◆ ItemType

Defines the type of powerup item which has a chance to spawn in the bubble when caught.

Enumerator
cItemType_Normal 

Random item.

cItemType_ForceMusasabi 

Always acorn.

cItemType_ForceKinoko 

Always mushroom.

Constructor & Destructor Documentation

◆ ChibiYoshiAwaData()

ChibiYoshiAwaData::ChibiYoshiAwaData ( ActorUniqueID owner_id)

Constructs the ChibiYoshiAwaData and parents it to an owner by ID.

Parameters
owner_idThe ID of the actor which this data belongs to.
Address: 0x0272D5EC

Member Function Documentation

◆ setAwaHit()

virtual void ChibiYoshiAwaData::setAwaHit ( Actor * awa)
virtual

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

Address: 0x0272D730

Reimplemented in EnemyChibiYoshiAwaData.

◆ awaCatchMove()

virtual void ChibiYoshiAwaData::awaCatchMove ( Actor * awa)
virtual

Called as the bubble is swallowing the actor.

Address: 0x0272D734

Reimplemented in EnemyChibiYoshiAwaData.

◆ setAwaCatchEnd()

virtual void ChibiYoshiAwaData::setAwaCatchEnd ( Actor * awa)
virtual

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

Address: 0x0272D700

Reimplemented in EnemyChibiYoshiAwaData.

◆ setAwaInvalid()

virtual void ChibiYoshiAwaData::setAwaInvalid ( Actor * awa)
virtual

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

Address: 0x0272D738

Reimplemented in EnemyChibiYoshiAwaData.

◆ getAwaType()

AwaType ChibiYoshiAwaData::getAwaType ( ) const
inline

The type of interaction the bubble will have upon contact with the actor.

◆ setAwaType()

void ChibiYoshiAwaData::setAwaType ( AwaType type)
inline

Set the type of interaction the bubble will have upon contact with the actor.

◆ getState()

State ChibiYoshiAwaData::getState ( ) const
inline

Which stage of interaction we are currently in.

◆ setState()

void ChibiYoshiAwaData::setState ( State state)
inline

Set which stage of interaction we are currently in.

◆ getItemType()

ItemType ChibiYoshiAwaData::getItemType ( ) const
inline

The type of powerup item which has a chance to spawn in the bubble when caught.

◆ setItemType()

void ChibiYoshiAwaData::setItemType ( ItemType type)
inline

Set the type of powerup item which has a chance to spawn in the bubble when caught.

◆ getPosOffset() [1/2]

sead::Vector2f & ChibiYoshiAwaData::getPosOffset ( )
inline

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.

◆ getPosOffset() [2/2]

const sead::Vector2f & ChibiYoshiAwaData::getPosOffset ( ) const
inline

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.

Member Data Documentation

◆ mOwnerID

ActorUniqueID ChibiYoshiAwaData::mOwnerID
protected

The ID of the actor which this data belongs to.

◆ mChibiYoshiAwaID

ActorUniqueID ChibiYoshiAwaData::mChibiYoshiAwaID
protected

The ID of the bubble which we are currently interacting with.

◆ mAwaType

AwaType ChibiYoshiAwaData::mAwaType
protected

The type of interaction the bubble will have upon contact with the actor.

◆ mState

State ChibiYoshiAwaData::mState
protected

Which stage of interaction we are currently in.

◆ mItemType

ItemType ChibiYoshiAwaData::mItemType
protected

The type of powerup item which has a chance to spawn in the bubble when caught.

◆ mPosOffset

sead::Vector2f ChibiYoshiAwaData::mPosOffset
protected

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.