New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
EatData.h
Go to the documentation of this file.
1#pragma once
2
3#include <actor/ActorUniqueID.h>
4
5#include <math/seadVector.h>
6
7class Actor;
8
9// vtbl Address: 0x10001594
11{
12public:
21 static_assert(sizeof(State) == 4);
22
24 {
25 cEatType_None = 0, ///< Tongue hits actor with no result
26 cEatType_Eat, ///< Hold the food in Yoshi's mouth
27 cEatType_EatPermanent, ///< Hold the food in Yoshi's mouth, but can't spit it out
28 cEatType_Drink, ///< Swallow the food
29 cEatType_DrinkBig, ///< Swallow the food, plays a longer animation
30 cEatType_YoshiFire, ///< Hold the food in Yoshi's mouth, turns into fire when spat
31 cEatType_YoshiFire_Ice ///< Hold the food in Yoshi's mouth, turns into ice when spat
32 };
33 static_assert(sizeof(EatType) == 4);
34
41 static_assert(sizeof(ScoreType) == 4);
42
43 // Address: 0x0200D6C4
44 EatData(ActorUniqueID owner_id);
45
46 // Address: 0x0200D4B8
47 virtual void setAfterEatScale();
48 // Address: 0x0200D504
49 virtual void calcSpitOutPos(Actor* yoshi);
50 // Address: 0x0200D5F0
51 virtual f32 calcEatScaleRate(Actor* yoshi);
52 // Address: 0x0200D76C
53 virtual void eatMove(Actor* yoshi);
54 // Address: 0x0200DA8C
55 virtual void vf2C();
56 // Address: 0x0200D830
57 virtual bool setEatTongue(Actor* yoshi);
58 // Address: 0x0200DA90
59 virtual void setEatTongueOff(Actor* yoshi);
60 // Address: 0x0200DA94
61 virtual void setEatMouth(Actor* yoshi);
62 // Address: 0x0200DA98
63 virtual bool setEatSpitOut(Actor* yoshi);
64 // Address: 0x0200D880
65 virtual bool setEatGlupDown(Actor* yoshi);
66 // Address: 0x0200D9AC
67 virtual void calcEatInScale(Actor* yoshi);
68
70 {
71 return mYoshiID;
72 }
73
75 {
76 return mState;
77 }
78
79 void setState(State state)
80 {
81 mState = state;
82 }
83
85 {
86 return mEatType;
87 }
88
89 void setEatType(EatType eat_type)
90 {
91 mEatType = eat_type;
92 }
93
95 {
96 return mScale;
97 }
98
99 const sead::Vector3f& getScale() const
100 {
101 return mScale;
102 }
103
105 {
106 return mScoreType;
107 }
108
109 void setScoreType(ScoreType score_type)
110 {
111 mScoreType = score_type;
112 }
113
114protected:
121};
122static_assert(sizeof(EatData) == 0x24);
Definition Actor.h:22
Definition EatData.h:11
EatType
Definition EatData.h:24
@ cEatType_DrinkBig
Swallow the food, plays a longer animation.
Definition EatData.h:29
@ cEatType_None
Tongue hits actor with no result.
Definition EatData.h:25
@ cEatType_YoshiFire_Ice
Hold the food in Yoshi's mouth, turns into ice when spat.
Definition EatData.h:31
@ cEatType_EatPermanent
Hold the food in Yoshi's mouth, but can't spit it out.
Definition EatData.h:27
@ cEatType_YoshiFire
Hold the food in Yoshi's mouth, turns into fire when spat.
Definition EatData.h:30
@ cEatType_Eat
Hold the food in Yoshi's mouth.
Definition EatData.h:26
@ cEatType_Drink
Swallow the food.
Definition EatData.h:28
void setEatType(EatType eat_type)
Definition EatData.h:89
virtual bool setEatSpitOut(Actor *yoshi)
ScoreType getScoreType() const
Definition EatData.h:104
State
Definition EatData.h:14
@ cState_None
Definition EatData.h:15
@ cState_SpitOut
Definition EatData.h:19
@ cState_EatTongue
Definition EatData.h:16
@ cState_DamageSpitOut
Definition EatData.h:18
@ cState_EatMouth
Definition EatData.h:17
EatData(ActorUniqueID owner_id)
virtual void eatMove(Actor *yoshi)
ScoreType mScoreType
Definition EatData.h:120
virtual void calcSpitOutPos(Actor *yoshi)
virtual bool setEatGlupDown(Actor *yoshi)
ActorUniqueID mYoshiID
Definition EatData.h:116
virtual void setAfterEatScale()
const ActorUniqueID & getYoshiID() const
Definition EatData.h:69
sead::Vector3f mScale
Definition EatData.h:119
ActorUniqueID mOwnerID
Definition EatData.h:115
ScoreType
Definition EatData.h:36
@ cScoreType_Point_200
Definition EatData.h:37
@ cScoreType_Point_1000
Definition EatData.h:38
@ cScoreType_None
Definition EatData.h:39
EatType getEatType() const
Definition EatData.h:84
EatType mEatType
Definition EatData.h:118
virtual void calcEatInScale(Actor *yoshi)
virtual f32 calcEatScaleRate(Actor *yoshi)
State mState
Definition EatData.h:117
void setState(State state)
Definition EatData.h:79
sead::Vector3f & getScale()
Definition EatData.h:94
const sead::Vector3f & getScale() const
Definition EatData.h:99
void setScoreType(ScoreType score_type)
Definition EatData.h:109
virtual void setEatMouth(Actor *yoshi)
virtual void vf2C()
State getState() const
Definition EatData.h:74
virtual bool setEatTongue(Actor *yoshi)
virtual void setEatTongueOff(Actor *yoshi)