New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
ChibiYoshiEatData.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
9class ChibiYoshiEatData // vtbl Address: 0x1000145C
10{
11public:
13 {
14 cEatType_None = 0, ///< Damages the player when trying to eat
15 cEatType_Drink, ///< Swallow the food
16 };
17 static_assert(sizeof(EatType) == 4);
18
25 static_assert(sizeof(ScoreType) == 4);
26
27 // Address: 0x0200CF1C
28 ChibiYoshiEatData(ActorUniqueID owner_id);
29
30 // Address: 0x0200D308
31 virtual u32 vf0C();
32 // Address: 0x0200D034
33 virtual void* vf14(void*);
34 // Address: 0x0200D094
35 virtual void* vf1C(void*);
36 // Address: 0x0200D310
37 virtual void vf24();
38 // Address: 0x0200D314
39 virtual void setEatSpitOut(Actor* chibi_yoshi);
40 // Address: 0x0200D1B4
41 virtual bool handleEaten(Actor* chibi_yoshi);
42 // Address: 0x0200D318
43 virtual void vf3C();
44
45 u32 getState() const
46 {
47 return mState;
48 }
49
50 void setState(u32 state)
51 {
52 mState = state;
53 }
54
56 {
57 return mEatType;
58 }
59
60 void setEatType(EatType eat_type)
61 {
62 mEatType = eat_type;
63 }
64
66 {
67 return mScale;
68 }
69
70 const sead::Vector3f& getScale() const
71 {
72 return mScale;
73 }
74
76 {
77 return mScoreType;
78 }
79
80 void setScoreType(ScoreType score_type)
81 {
82 mScoreType = score_type;
83 }
84
85protected:
92};
93static_assert(sizeof(ChibiYoshiEatData) == 0x24);
Definition Actor.h:19
Definition ChibiYoshiEatData.h:10
EatType
Definition ChibiYoshiEatData.h:13
@ cEatType_Drink
Swallow the food.
Definition ChibiYoshiEatData.h:15
@ cEatType_None
Damages the player when trying to eat.
Definition ChibiYoshiEatData.h:14
u32 mYoshiChibiID
Definition ChibiYoshiEatData.h:87
ScoreType getScoreType() const
Definition ChibiYoshiEatData.h:75
void setState(u32 state)
Definition ChibiYoshiEatData.h:50
virtual void * vf1C(void *)
const sead::Vector3f & getScale() const
Definition ChibiYoshiEatData.h:70
sead::Vector3f & getScale()
Definition ChibiYoshiEatData.h:65
ActorUniqueID mOwnerID
Definition ChibiYoshiEatData.h:86
ChibiYoshiEatData(ActorUniqueID owner_id)
void setScoreType(ScoreType score_type)
Definition ChibiYoshiEatData.h:80
sead::Vector3f mScale
Definition ChibiYoshiEatData.h:88
void setEatType(EatType eat_type)
Definition ChibiYoshiEatData.h:60
virtual bool handleEaten(Actor *chibi_yoshi)
virtual void vf3C()
EatType getEatType() const
Definition ChibiYoshiEatData.h:55
virtual void * vf14(void *)
virtual u32 vf0C()
virtual void vf24()
u32 getState() const
Definition ChibiYoshiEatData.h:45
ScoreType
Definition ChibiYoshiEatData.h:20
@ cScoreType_Point_1000
Definition ChibiYoshiEatData.h:22
@ cScoreType_None
Definition ChibiYoshiEatData.h:23
@ cScoreType_Point_200
Definition ChibiYoshiEatData.h:21
u32 mState
Definition ChibiYoshiEatData.h:89
virtual void setEatSpitOut(Actor *chibi_yoshi)
ScoreType mScoreType
Definition ChibiYoshiEatData.h:91
EatType mEatType
Definition ChibiYoshiEatData.h:90