New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
EffectObj.h
Go to the documentation of this file.
1#pragma once
2
3#include <effect/EffectObjBase.h>
4
5class EffectObj : public EffectObjBase
6{
7 // NSMBW: Other part of mEf::levelEffect_c & dEf::dLevelEffect_c
8
9public:
12 {
13 }
14
16 {
17 }
18
19 // getRuntimeTypeInfoStatic()::typeInfo initialization guard variable Address: Deleted
20 // getRuntimeTypeInfoStatic()::typeInfo Address: Deleted
21 SEAD_RTTI_OVERRIDE(EffectObj, EffectObjBase)
22
23public:
24 // Address: 0x022AB52C
25 bool createEffect(EffectID id, const sead::Vector3f* trans = nullptr, const Angle3* angle = nullptr, const sead::Vector3f* scale = nullptr);
26 // Address: 0x022AB6EC
27 bool createEffect(EffectID id, const sead::Matrixf* mtx = nullptr, bool mtx_has_scale = false);
28
29 bool createEffect(EffectID id, const sead::Matrixf& mtx, bool mtx_has_scale)
30 {
31 return createEffect(id, &mtx, mtx_has_scale);
32 }
33
34 // Address: 0x022AB448
35 bool follow(const sead::Vector3f* trans = nullptr, const Angle3* angle = nullptr, const sead::Vector3f* scale = nullptr);
36 // Address: 0x022AB608
37 bool follow(const sead::Matrixf& mtx, bool mtx_has_scale);
38
39 bool follow(const sead::Matrixf* mtx, bool mtx_has_scale)
40 {
41 if (mtx == nullptr)
42 mtx = &sead::Matrixf::ident;
43
44 return follow(*mtx, mtx_has_scale);
45 }
46};
47static_assert(sizeof(EffectObj) == sizeof(EffectObjBase));
Definition EffectObj.h:6
bool createEffect(EffectID id, const sead::Matrixf *mtx=nullptr, bool mtx_has_scale=false)
~EffectObj() override
Definition EffectObj.h:15
bool follow(const sead::Vector3f *trans=nullptr, const Angle3 *angle=nullptr, const sead::Vector3f *scale=nullptr)
bool createEffect(EffectID id, const sead::Matrixf &mtx, bool mtx_has_scale)
Definition EffectObj.h:29
EffectObj()
Definition EffectObj.h:10
bool follow(const sead::Matrixf &mtx, bool mtx_has_scale)
bool follow(const sead::Matrixf *mtx, bool mtx_has_scale)
Definition EffectObj.h:39