3#include <actor/ActorUniqueID.h>
5#include <math/seadVector.h>
10
11
12
17
18
26 static_assert(
sizeof(
AwaType) == 4);
29
30
36 static_assert(
sizeof(
State) == 4);
39
40
47 static_assert(
sizeof(
ItemType) == 4);
51
52
53
54
58
59
60
63
64
65
68
69
70
73
74
75
79
80
87
88
95
96
103
104
111
112
119
120
127
128
135
136
Defines parameters for interaction with bubbles from the blue Baby Yoshi.
Definition ChibiYoshiAwaData.h:14
State
Defines which stage of interaction we are currently in.
Definition ChibiYoshiAwaData.h:32
@ cState_Catch
Definition ChibiYoshiAwaData.h:34
@ cState_None
Definition ChibiYoshiAwaData.h:33
void setAwaType(AwaType type)
Set the type of interaction the bubble will have upon contact with the actor.
Definition ChibiYoshiAwaData.h:89
const sead::Vector2f & getPosOffset() const
An offset to the actor's center position, which modulates the target position the bubble should drift...
Definition ChibiYoshiAwaData.h:137
virtual void setAwaInvalid(Actor *awa)
Called when the bubble cannot catch the actor and breaks instead.
sead::Vector2f mPosOffset
An offset to the actor's center position, which modulates the target position the bubble should drift...
Definition ChibiYoshiAwaData.h:148
State mState
Which stage of interaction we are currently in.
Definition ChibiYoshiAwaData.h:146
void setState(State state)
Set which stage of interaction we are currently in.
Definition ChibiYoshiAwaData.h:105
sead::Vector2f & getPosOffset()
An offset to the actor's center position, which modulates the target position the bubble should drift...
Definition ChibiYoshiAwaData.h:129
ActorUniqueID mOwnerID
The ID of the actor which this data belongs to.
Definition ChibiYoshiAwaData.h:143
virtual void setAwaHit(Actor *awa)
Called when a bubble hits the actor and either catches it or breaks.
AwaType mAwaType
The type of interaction the bubble will have upon contact with the actor.
Definition ChibiYoshiAwaData.h:145
State getState() const
Which stage of interaction we are currently in.
Definition ChibiYoshiAwaData.h:97
ItemType getItemType() const
The type of powerup item which has a chance to spawn in the bubble when caught.
Definition ChibiYoshiAwaData.h:113
ActorUniqueID mChibiYoshiAwaID
The ID of the bubble which we are currently interacting with.
Definition ChibiYoshiAwaData.h:144
AwaType
Defines the type of interaction the bubble will have upon contact with the actor.
Definition ChibiYoshiAwaData.h:20
@ cAwaType_Invalid
Bubble cannot catch the actor and breaks instead.
Definition ChibiYoshiAwaData.h:21
@ cAwaType_Catch
Bubble catches the actor and spawns low value random content.
Definition ChibiYoshiAwaData.h:22
@ cAwaType_Num
Definition ChibiYoshiAwaData.h:24
@ cAwaType_CatchBig
Bubble catches the actor and spawns high value random content.
Definition ChibiYoshiAwaData.h:23
virtual void setAwaCatchEnd(Actor *awa)
Called when the bubble finishes swallowing the actor, and the actor should die.
AwaType getAwaType() const
The type of interaction the bubble will have upon contact with the actor.
Definition ChibiYoshiAwaData.h:81
void setItemType(ItemType type)
Set the type of powerup item which has a chance to spawn in the bubble when caught.
Definition ChibiYoshiAwaData.h:121
ItemType
Defines the type of powerup item which has a chance to spawn in the bubble when caught.
Definition ChibiYoshiAwaData.h:42
@ cItemType_Normal
Random item.
Definition ChibiYoshiAwaData.h:43
@ cItemType_ForceMusasabi
Always acorn.
Definition ChibiYoshiAwaData.h:44
@ cItemType_ForceKinoko
Always mushroom.
Definition ChibiYoshiAwaData.h:45
ItemType mItemType
The type of powerup item which has a chance to spawn in the bubble when caught.
Definition ChibiYoshiAwaData.h:147
virtual void awaCatchMove(Actor *awa)
Called as the bubble is swallowing the actor.
ChibiYoshiAwaData(ActorUniqueID owner_id)
Constructs the ChibiYoshiAwaData and parents it to an owner by ID.