Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JPAChildShape.h
Go to the documentation of this file.
1#ifndef JPACHILDSHAPE_H
2#define JPACHILDSHAPE_H
3
5
8
14 // Common header.
15 /* 0x00 */ u8 mMagic[4];
16 /* 0x04 */ u32 mSize;
17
18 /* 0x08 */ u32 mFlags;
19 /* 0x0C */ f32 mPosRndm;
20 /* 0x10 */ f32 mBaseVel;
21 /* 0x14 */ f32 mBaseVelRndm;
22 /* 0x18 */ f32 mVelInfRate;
23 /* 0x1C */ f32 mGravity;
24 /* 0x20 */ f32 mScaleX;
25 /* 0x24 */ f32 mScaleY;
26 /* 0x28 */ f32 mInheritScale;
27 /* 0x2C */ f32 mInheritAlpha;
28 /* 0x30 */ f32 mInheritRGB;
29 /* 0x34 */ GXColor mPrmClr;
30 /* 0x38 */ GXColor mEnvClr;
31 /* 0x3C */ f32 mTiming;
32 /* 0x40 */ s16 mLife;
33 /* 0x42 */ s16 mRate;
34 /* 0x44 */ u8 mStep;
35 /* 0x45 */ u8 mTexIdx;
36 /* 0x46 */ s16 mRotSpeed;
37};
38
44public:
45 /* 8027B038 */ JPAChildShape(u8 const*);
46
47 f32 getPosRndm() const { return mpData->mPosRndm; }
48 f32 getBaseVel() const { return mpData->mBaseVel; }
50 f32 getVelInhRate() const { return mpData->mVelInfRate; }
51 f32 getGravity() const { return mpData->mGravity; }
52 f32 getScaleX() const { return mpData->mScaleX; }
53 f32 getScaleY() const { return mpData->mScaleY; }
57 void getPrmClr(GXColor* dst) const { *dst = mpData->mPrmClr; }
58 u8 getPrmAlpha() const { return mpData->mPrmClr.a; }
59 void getEnvClr(GXColor* dst) const { *dst = mpData->mEnvClr; }
60 f32 getTiming() const { return mpData->mTiming; }
61 s16 getLife() const { return mpData->mLife; }
62 s16 getRate() const { return mpData->mRate; }
63 u8 getStep() const { return mpData->mStep; }
64 u8 getTexIdx() const { return mpData->mTexIdx; }
65 s16 getRotInitSpeed() const { return mpData->mRotSpeed; }
66 u32 getType() const { return mpData->mFlags & 0xF; }
67 u32 getDirType() const { return (mpData->mFlags >> 4) & 7; }
68 u32 getRotType() const { return (mpData->mFlags >> 7) & 7; }
69 u32 getBasePlaneType() const { return (mpData->mFlags >> 10) & 1; }
70
71 BOOL isScaleInherited() const { return mpData->mFlags & 0x10000; }
72 BOOL isAlphaInherited() const { return mpData->mFlags & 0x20000; }
73 BOOL isColorInherited() const { return mpData->mFlags & 0x40000; }
74 BOOL isClipOn() const { return mpData->mFlags & 0x100000; }
75 BOOL isFieldAffected() const { return mpData->mFlags & 0x200000; }
76 BOOL isScaleOutOn() const { return mpData->mFlags & 0x400000; }
77 BOOL isAlphaOutOn() const { return mpData->mFlags & 0x800000; }
78 BOOL isRotateOn() const { return mpData->mFlags & 0x1000000; }
79
80public:
81 /* 0x00 */ const JPAChildShapeData* mpData;
82};
83
85
88
89#endif /* JPACHILDSHAPE_H */
void JPARegistChildPrmEnv(JPAEmitterWorkData *)
Definition JPAChildShape.cpp:14
void JPACalcChildAlphaOut(JPAEmitterWorkData *, JPABaseParticle *)
Definition JPAChildShape.cpp:33
void JPACalcChildScaleOut(JPAEmitterWorkData *, JPABaseParticle *)
Definition JPAChildShape.cpp:40
Definition JPAParticle.h:20
Definition JPAChildShape.h:43
s16 getRotInitSpeed() const
Definition JPAChildShape.h:65
s16 getRate() const
Definition JPAChildShape.h:62
f32 getAlphaInhRate() const
Definition JPAChildShape.h:55
u32 getRotType() const
Definition JPAChildShape.h:68
u32 getType() const
Definition JPAChildShape.h:66
f32 getScaleY() const
Definition JPAChildShape.h:53
BOOL isColorInherited() const
Definition JPAChildShape.h:73
f32 getBaseVelRndm() const
Definition JPAChildShape.h:49
BOOL isAlphaOutOn() const
Definition JPAChildShape.h:77
u8 getPrmAlpha() const
Definition JPAChildShape.h:58
f32 getPosRndm() const
Definition JPAChildShape.h:47
BOOL isAlphaInherited() const
Definition JPAChildShape.h:72
f32 getScaleInhRate() const
Definition JPAChildShape.h:54
BOOL isFieldAffected() const
Definition JPAChildShape.h:75
f32 getColorInhRate() const
Definition JPAChildShape.h:56
u8 getTexIdx() const
Definition JPAChildShape.h:64
f32 getGravity() const
Definition JPAChildShape.h:51
f32 getScaleX() const
Definition JPAChildShape.h:52
BOOL isScaleOutOn() const
Definition JPAChildShape.h:76
BOOL isRotateOn() const
Definition JPAChildShape.h:78
f32 getTiming() const
Definition JPAChildShape.h:60
BOOL isScaleInherited() const
Definition JPAChildShape.h:71
f32 getVelInhRate() const
Definition JPAChildShape.h:50
BOOL isClipOn() const
Definition JPAChildShape.h:74
void getPrmClr(GXColor *dst) const
Definition JPAChildShape.h:57
s16 getLife() const
Definition JPAChildShape.h:61
u32 getDirType() const
Definition JPAChildShape.h:67
f32 getBaseVel() const
Definition JPAChildShape.h:48
u32 getBasePlaneType() const
Definition JPAChildShape.h:69
void getEnvClr(GXColor *dst) const
Definition JPAChildShape.h:59
u8 getStep() const
Definition JPAChildShape.h:63
const JPAChildShapeData * mpData
Definition JPAChildShape.h:81
Definition JPAChildShape.h:13
u8 mStep
Definition JPAChildShape.h:34
f32 mInheritScale
Definition JPAChildShape.h:26
u8 mMagic[4]
Definition JPAChildShape.h:15
GXColor mPrmClr
Definition JPAChildShape.h:29
f32 mGravity
Definition JPAChildShape.h:23
f32 mScaleY
Definition JPAChildShape.h:25
GXColor mEnvClr
Definition JPAChildShape.h:30
s16 mLife
Definition JPAChildShape.h:32
s16 mRotSpeed
Definition JPAChildShape.h:36
u32 mFlags
Definition JPAChildShape.h:18
f32 mBaseVelRndm
Definition JPAChildShape.h:21
f32 mPosRndm
Definition JPAChildShape.h:19
f32 mBaseVel
Definition JPAChildShape.h:20
f32 mTiming
Definition JPAChildShape.h:31
f32 mInheritRGB
Definition JPAChildShape.h:28
s16 mRate
Definition JPAChildShape.h:33
f32 mVelInfRate
Definition JPAChildShape.h:22
u32 mSize
Definition JPAChildShape.h:16
f32 mInheritAlpha
Definition JPAChildShape.h:27
f32 mScaleX
Definition JPAChildShape.h:24
u8 mTexIdx
Definition JPAChildShape.h:35
Definition JPAEmitter.h:21
Definition d_a_ep.cpp:68
u8 a
Definition GXStruct.h:12
int BOOL
Definition types.h:27
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
signed short s16
Definition types.h:5
unsigned char u8
Definition types.h:8