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

#include <Effect.h>

Inherited by EffectObjBase, and FollowEffect.

Public Member Functions

 Effect ()
bool createEffect (EffectID id)
bool isAlive () const
void followFade ()
void fade ()
void kill ()
s32 getGroupID () const
void setColor (const sead::Color4f &color)
void setAlpha (f32 alpha)
void setDirectionalVel (f32 vel)
void setEmitterScale (const sead::Vector3f &scale)
void setParticleScale (const sead::Vector2f &scale)
void setEmissionParticleScale (const sead::Vector2f &scale)
void setRandomSeed (u32 seed)
bool follow (const sead::Vector3f *trans=nullptr, const Angle3 *angle=nullptr, const sead::Vector3f *scale=nullptr)
bool follow (const sead::Matrixf &mtx, bool mtx_has_scale)
const sead::MatrixfgetMtx () const
bool getMtxHasScale () const
void setStopCalc (bool stop_calc)
void setVisible (bool visible, s32 emitter_controller_index)
const PtclParamgetParam () const

Protected Member Functions

void reset_ ()
nw::eft::EmitterSetgetEmitterSet_ ()
bool createEffect_ (EffectID id)
void update_ ()

Protected Attributes

sead::Matrixf mMtx
bool mMtxHasScale
nw::eft::Handle mHandle
const PtclParammParam

Constructor & Destructor Documentation

◆ Effect()

Effect::Effect ( )
inline

Member Function Documentation

◆ reset_()

void Effect::reset_ ( )
protected

◆ getEmitterSet_()

nw::eft::EmitterSet * Effect::getEmitterSet_ ( )
protected

◆ createEffect_()

bool Effect::createEffect_ ( EffectID id)
protected

◆ createEffect()

bool Effect::createEffect ( EffectID id)

◆ isAlive()

bool Effect::isAlive ( ) const

◆ followFade()

void Effect::followFade ( )

◆ fade()

void Effect::fade ( )

◆ kill()

void Effect::kill ( )

◆ getGroupID()

s32 Effect::getGroupID ( ) const

◆ setColor()

void Effect::setColor ( const sead::Color4f & color)

◆ setAlpha()

void Effect::setAlpha ( f32 alpha)

◆ setDirectionalVel()

void Effect::setDirectionalVel ( f32 vel)

◆ setEmitterScale()

void Effect::setEmitterScale ( const sead::Vector3f & scale)

◆ setParticleScale()

void Effect::setParticleScale ( const sead::Vector2f & scale)

◆ setEmissionParticleScale()

void Effect::setEmissionParticleScale ( const sead::Vector2f & scale)

◆ setRandomSeed()

void Effect::setRandomSeed ( u32 seed)

◆ follow() [1/2]

bool Effect::follow ( const sead::Vector3f * trans = nullptr,
const Angle3 * angle = nullptr,
const sead::Vector3f * scale = nullptr )

◆ follow() [2/2]

bool Effect::follow ( const sead::Matrixf & mtx,
bool mtx_has_scale )

◆ getMtx()

const sead::Matrixf & Effect::getMtx ( ) const
inline

◆ getMtxHasScale()

bool Effect::getMtxHasScale ( ) const
inline

◆ update_()

void Effect::update_ ( )
protected

◆ setStopCalc()

void Effect::setStopCalc ( bool stop_calc)

◆ setVisible()

void Effect::setVisible ( bool visible,
s32 emitter_controller_index )

◆ getParam()

const PtclParam * Effect::getParam ( ) const
inline

Member Data Documentation

◆ mMtx

sead::Matrixf Effect::mMtx
protected

◆ mMtxHasScale

bool Effect::mMtxHasScale
protected

◆ mHandle

nw::eft::Handle Effect::mHandle
protected

◆ mParam

const PtclParam* Effect::mParam
protected