New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
FollowEffect.h
Go to the documentation of this file.
1#pragma once
2
3#include <effect/Effect.h>
4
5class FollowEffect : public Effect
6{
7 // NSMBW: mEf::effect_c + dEf::followEffect_c
8
9public:
10 // Address: 0x022AB980
11 bool createEffect(EffectID id, const sead::Vector3f* trans = nullptr, const Angle3* angle = nullptr, const sead::Vector3f* scale = nullptr);
12 // Address: 0x022AB9F0
13 bool createEffect(EffectID id, const sead::Matrixf* mtx = nullptr, bool mtx_has_scale = false);
14
15 bool createEffect(EffectID id, const sead::Matrixf& mtx, bool mtx_has_scale)
16 {
17 return createEffect(id, &mtx, mtx_has_scale);
18 }
19
20 using Effect::follow;
21
22 bool follow(const sead::Matrixf* mtx, bool mtx_has_scale)
23 {
24 if (mtx == nullptr)
25 mtx = &sead::Matrixf::ident;
26
27 return follow(*mtx, mtx_has_scale);
28 }
29};
30static_assert(sizeof(FollowEffect) == sizeof(Effect));
Definition FollowEffect.h:6
bool createEffect(EffectID id, const sead::Matrixf &mtx, bool mtx_has_scale)
Definition FollowEffect.h:15
bool createEffect(EffectID id, const sead::Vector3f *trans=nullptr, const Angle3 *angle=nullptr, const sead::Vector3f *scale=nullptr)
bool createEffect(EffectID id, const sead::Matrixf *mtx=nullptr, bool mtx_has_scale=false)
bool follow(const sead::Matrixf *mtx, bool mtx_has_scale)
Definition FollowEffect.h:22