Defines parameters for interaction with bubbles from the blue Baby Yoshi.
More...
#include <ChibiYoshiAwaData.h>
Inherited by EnemyChibiYoshiAwaData.
|
| | 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::Vector2f & | getPosOffset () |
| | 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::Vector2f & | getPosOffset () 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.
|
|
| 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.
|
Defines parameters for interaction with bubbles from the blue Baby Yoshi.
- vtable Address: 0x10108190
◆ 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.
|
◆ ChibiYoshiAwaData()
Constructs the ChibiYoshiAwaData and parents it to an owner by ID.
- Parameters
-
| owner_id | The ID of the actor which this data belongs to. |
- Address: 0x0272D5EC
◆ 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 |
◆ 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]
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]
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.
◆ mOwnerID
The ID of the actor which this data belongs to.
◆ mChibiYoshiAwaID
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
The type of powerup item which has a chance to spawn in the bubble when caught.
◆ 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.