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

#include <EatData.h>

Inherited by EnemyEatData, and PlayerEatData.

Public Types

enum  EatType {
  cEatType_None = 0 , cEatType_Eat , cEatType_EatPermanent , cEatType_Drink ,
  cEatType_DrinkBig , cEatType_YoshiFire , cEatType_YoshiFire_Ice
}
enum  ScoreType { cScoreType_Point_200 = 0 , cScoreType_Point_1000 , cScoreType_None }

Public Member Functions

 EatData (ActorUniqueID owner_id)
virtual void setAfterEatScale ()
virtual void calcSpitOutPos (Actor *yoshi)
virtual f32 calcEatScaleRate (Actor *yoshi)
virtual void eatMove (Actor *yoshi)
virtual void vf2C ()
virtual bool setEatTongue (Actor *yoshi)
virtual void setEatTongueOff (Actor *yoshi)
virtual void setEatMouth (Actor *yoshi)
virtual bool setEatSpitOut (Actor *yoshi)
virtual bool setEatGlupDown (Actor *yoshi)
virtual void calcEatInScale (Actor *yoshi)
const ActorUniqueIDgetYoshiID () const
u32 getState () const
void setState (u32 state)
EatType getEatType () const
void setEatType (EatType eat_type)
sead::Vector3fgetScale ()
const sead::Vector3fgetScale () const
ScoreType getScoreType () const
void setScoreType (ScoreType score_type)

Protected Attributes

ActorUniqueID mOwnerID
ActorUniqueID mYoshiID
u32 mState
EatType mEatType
sead::Vector3f mScale
ScoreType mScoreType

Member Enumeration Documentation

◆ EatType

Enumerator
cEatType_None 

Tongue hits actor with no result.

cEatType_Eat 

Hold the food in Yoshi's mouth.

cEatType_EatPermanent 

Hold the food in Yoshi's mouth, but can't spit it out.

cEatType_Drink 

Swallow the food.

cEatType_DrinkBig 

Swallow the food, plays a longer animation.

cEatType_YoshiFire 

Hold the food in Yoshi's mouth, turns into fire when spat.

cEatType_YoshiFire_Ice 

Hold the food in Yoshi's mouth, turns into ice when spat.

◆ ScoreType

Enumerator
cScoreType_Point_200 
cScoreType_Point_1000 
cScoreType_None 

Constructor & Destructor Documentation

◆ EatData()

EatData::EatData ( ActorUniqueID owner_id)

Member Function Documentation

◆ setAfterEatScale()

virtual void EatData::setAfterEatScale ( )
virtual

◆ calcSpitOutPos()

virtual void EatData::calcSpitOutPos ( Actor * yoshi)
virtual

◆ calcEatScaleRate()

virtual f32 EatData::calcEatScaleRate ( Actor * yoshi)
virtual

◆ eatMove()

virtual void EatData::eatMove ( Actor * yoshi)
virtual

Reimplemented in PlayerEatData.

◆ vf2C()

virtual void EatData::vf2C ( )
virtual

◆ setEatTongue()

virtual bool EatData::setEatTongue ( Actor * yoshi)
virtual

Reimplemented in EnemyEatData, and PlayerEatData.

◆ setEatTongueOff()

virtual void EatData::setEatTongueOff ( Actor * yoshi)
virtual

Reimplemented in EnemyEatData, and PlayerEatData.

◆ setEatMouth()

virtual void EatData::setEatMouth ( Actor * yoshi)
virtual

Reimplemented in PlayerEatData.

◆ setEatSpitOut()

virtual bool EatData::setEatSpitOut ( Actor * yoshi)
virtual

Reimplemented in EnemyEatData, and PlayerEatData.

◆ setEatGlupDown()

virtual bool EatData::setEatGlupDown ( Actor * yoshi)
virtual

◆ calcEatInScale()

virtual void EatData::calcEatInScale ( Actor * yoshi)
virtual

◆ getYoshiID()

const ActorUniqueID & EatData::getYoshiID ( ) const
inline

◆ getState()

u32 EatData::getState ( ) const
inline

◆ setState()

void EatData::setState ( u32 state)
inline

◆ getEatType()

EatType EatData::getEatType ( ) const
inline

◆ setEatType()

void EatData::setEatType ( EatType eat_type)
inline

◆ getScale() [1/2]

sead::Vector3f & EatData::getScale ( )
inline

◆ getScale() [2/2]

const sead::Vector3f & EatData::getScale ( ) const
inline

◆ getScoreType()

ScoreType EatData::getScoreType ( ) const
inline

◆ setScoreType()

void EatData::setScoreType ( ScoreType score_type)
inline

Member Data Documentation

◆ mOwnerID

ActorUniqueID EatData::mOwnerID
protected

◆ mYoshiID

ActorUniqueID EatData::mYoshiID
protected

◆ mState

u32 EatData::mState
protected

◆ mEatType

EatType EatData::mEatType
protected

◆ mScale

sead::Vector3f EatData::mScale
protected

◆ mScoreType

ScoreType EatData::mScoreType
protected