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

#include <ChibiEatCallback.h>

Inherited by EnemyChibiYoshiEatData.

Public Types

enum  State { cState_None = 0 , cState_EatTongue , cState_EatMouth }
enum  EatType { cEatType_None = 0 , cEatType_Drink }
enum  ScoreType { cScoreType_Point_200 = 0 , cScoreType_Point_1000 , cScoreType_None }

Public Member Functions

 ChibiEatCallback (UniqueID owner_id)
Actor * getParentActorPtr_ () const
virtual bool isEatEnable ()
virtual void * setEatIn (Actor *chibi_yoshi)
virtual void * eatMove (Actor *chibi_yoshi)
virtual void setEatMouth (Actor *chibi_yoshi)
virtual void setEatSpitOut (Actor *chibi_yoshi)
virtual bool setEatGlupDown (Actor *chibi_yoshi)
virtual void replaceEatActor ()
State getState () const
void setState (State state)
EatType getEatType () const
void setEatType (EatType eat_type)
sead::Vector3f & getScale ()
const sead::Vector3f & getScale () const
ScoreType getScoreType () const
void setScoreType (ScoreType score_type)

Protected Attributes

UniqueID mOwnerID
u32 mYoshiChibiID
sead::Vector3f mScale
State mState
EatType mEatType
ScoreType mScoreType

Member Enumeration Documentation

◆ State

Enumerator
cState_None 
cState_EatTongue 
cState_EatMouth 

◆ EatType

Enumerator
cEatType_None 

Damages the player when trying to eat.

cEatType_Drink 

Swallow the food.

◆ ScoreType

Enumerator
cScoreType_Point_200 
cScoreType_Point_1000 
cScoreType_None 

Constructor & Destructor Documentation

◆ ChibiEatCallback()

ChibiEatCallback::ChibiEatCallback ( UniqueID owner_id)

Member Function Documentation

◆ getParentActorPtr_()

Actor * ChibiEatCallback::getParentActorPtr_ ( ) const

◆ isEatEnable()

virtual bool ChibiEatCallback::isEatEnable ( )
virtual

◆ setEatIn()

virtual void * ChibiEatCallback::setEatIn ( Actor * chibi_yoshi)
virtual

◆ eatMove()

virtual void * ChibiEatCallback::eatMove ( Actor * chibi_yoshi)
virtual

◆ setEatMouth()

virtual void ChibiEatCallback::setEatMouth ( Actor * chibi_yoshi)
virtual

◆ setEatSpitOut()

virtual void ChibiEatCallback::setEatSpitOut ( Actor * chibi_yoshi)
virtual

Reimplemented in EnemyChibiYoshiEatData.

◆ setEatGlupDown()

virtual bool ChibiEatCallback::setEatGlupDown ( Actor * chibi_yoshi)
virtual

◆ replaceEatActor()

virtual void ChibiEatCallback::replaceEatActor ( )
virtual

◆ getState()

State ChibiEatCallback::getState ( ) const
inline

◆ setState()

void ChibiEatCallback::setState ( State state)
inline

◆ getEatType()

EatType ChibiEatCallback::getEatType ( ) const
inline

◆ setEatType()

void ChibiEatCallback::setEatType ( EatType eat_type)
inline

◆ getScale() [1/2]

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

◆ getScale() [2/2]

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

◆ getScoreType()

ScoreType ChibiEatCallback::getScoreType ( ) const
inline

◆ setScoreType()

void ChibiEatCallback::setScoreType ( ScoreType score_type)
inline

Member Data Documentation

◆ mOwnerID

UniqueID ChibiEatCallback::mOwnerID
protected

◆ mYoshiChibiID

u32 ChibiEatCallback::mYoshiChibiID
protected

◆ mScale

sead::Vector3f ChibiEatCallback::mScale
protected

◆ mState

State ChibiEatCallback::mState
protected

◆ mEatType

EatType ChibiEatCallback::mEatType
protected

◆ mScoreType

ScoreType ChibiEatCallback::mScoreType
protected