Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JPAExtraShape.h
Go to the documentation of this file.
1
#ifndef JPAEXTRASHAPE_H
2
#define JPAEXTRASHAPE_H
3
4
#include "
dolphin/types.h
"
5
6
class
JPAEmitterWorkData
;
7
class
JPABaseParticle
;
8
13
struct
JPAExtraShapeData
{
14
// Common header.
15
/* 0x00 */
u8
mMagic
[4];
16
/* 0x04 */
u32
mSize
;
17
18
/* 0x08 */
u32
mFlags
;
19
/* 0x0C */
f32
mScaleInTiming
;
20
/* 0x10 */
f32
mScaleOutTiming
;
21
/* 0x14 */
f32
mScaleInValueX
;
22
/* 0x18 */
f32
mScaleOutValueX
;
23
/* 0x1C */
f32
mScaleInValueY
;
24
/* 0x20 */
f32
mScaleOutValueY
;
25
/* 0x24 */
f32
mScaleOutRandom
;
26
/* 0x28 */
s16
mScaleAnmCycleX
;
27
/* 0x2A */
s16
mScaleAnmCycleY
;
28
/* 0x2C */
f32
mAlphaInTiming
;
29
/* 0x30 */
f32
mAlphaOutTiming
;
30
/* 0x34 */
f32
mAlphaInValue
;
31
/* 0x38 */
f32
mAlphaBaseValue
;
32
/* 0x3C */
f32
mAlphaOutValue
;
33
/* 0x40 */
f32
mAlphaWaveFrequency
;
34
/* 0x44 */
f32
mAlphaWaveRandom
;
35
/* 0x48 */
f32
mAlphaWaveAmplitude
;
36
/* 0x4C */
f32
mRotateAngle
;
37
/* 0x50 */
f32
mRotateAngleRandom
;
38
/* 0x54 */
f32
mRotateSpeed
;
39
/* 0x58 */
f32
mRotateSpeedRandom
;
40
/* 0x5C */
f32
mRotateDirection
;
41
};
42
47
class
JPAExtraShape
{
48
public
:
49
/* 8027AD88 */
JPAExtraShape
(
u8
const
*);
50
/* 8027ADBC */
void
init
();
51
52
f32
getScaleInTiming
()
const
{
return
mpData
->
mScaleInTiming
; }
53
f32
getScaleOutTiming
()
const
{
return
mpData
->
mScaleOutTiming
; }
54
f32
getScaleInValueX
()
const
{
return
mpData
->
mScaleInValueX
; }
55
f32
getScaleInValueY
()
const
{
return
mpData
->
mScaleInValueY
; }
56
f32
getScaleOutValueX
()
const
{
return
mpData
->
mScaleOutValueX
; }
57
f32
getScaleOutValueY
()
const
{
return
mpData
->
mScaleOutValueY
; }
58
f32
getScaleRndm
()
const
{
return
mpData
->
mScaleOutRandom
; }
59
s16
getScaleAnmCycleX
()
const
{
return
mpData
->
mScaleAnmCycleX
; }
60
s16
getScaleAnmCycleY
()
const
{
return
mpData
->
mScaleAnmCycleY
; }
61
f32
getAlphaInTiming
()
const
{
return
mpData
->
mAlphaInTiming
; }
62
f32
getAlphaOutTiming
()
const
{
return
mpData
->
mAlphaOutTiming
; }
63
f32
getAlphaInValue
()
const
{
return
mpData
->
mAlphaInValue
; }
64
f32
getAlphaOutValue
()
const
{
return
mpData
->
mAlphaOutValue
; }
65
f32
getAlphaBaseValue
()
const
{
return
mpData
->
mAlphaBaseValue
; }
66
f32
getAlphaFreq
()
const
{
return
mpData
->
mAlphaWaveFrequency
; }
67
f32
getAlphaFreqRndm
()
const
{
return
mpData
->
mAlphaWaveRandom
; }
68
f32
getAlphaAmp
()
const
{
return
mpData
->
mAlphaWaveAmplitude
; }
69
f32
getRotateInitAngle
()
const
{
return
mpData
->
mRotateAngle
; }
70
f32
getRotateRndmAngle
()
const
{
return
mpData
->
mRotateAngleRandom
; }
71
f32
getRotateInitSpeed
()
const
{
return
mpData
->
mRotateSpeed
; }
72
f32
getRotateRndmSpeed
()
const
{
return
mpData
->
mRotateSpeedRandom
; }
73
f32
getRotateDirection
()
const
{
return
mpData
->
mRotateDirection
; }
74
f32
getScaleIncRateX
()
const
{
return
mScaleIncRateX
; }
75
f32
getScaleDecRateX
()
const
{
return
mScaleDecRateX
; }
76
f32
getScaleIncRateY
()
const
{
return
mScaleIncRateY
; }
77
f32
getScaleDecRateY
()
const
{
return
mScaleDecRateY
; }
78
f32
getAlphaIncRate
()
const
{
return
mAlphaIncRate
; }
79
f32
getAlphaDecRate
()
const
{
return
mAlphaDecRate
; }
80
81
BOOL
isEnableScaleAnm
()
const
{
return
mpData
->
mFlags
& 1; }
82
BOOL
isScaleXYDiff
()
const
{
return
mpData
->
mFlags
& 2; }
83
u32
getScaleAnmTypeX
()
const
{
return
(
mpData
->
mFlags
>> 8) & 3; }
84
u32
getScaleAnmTypeY
()
const
{
return
(
mpData
->
mFlags
>> 10) & 3; }
85
u32
getScaleCenterX
()
const
{
return
(
mpData
->
mFlags
>> 12) & 3; }
86
u32
getScaleCenterY
()
const
{
return
(
mpData
->
mFlags
>> 14) & 3; }
87
BOOL
isEnableAlphaAnm
()
const
{
return
mpData
->
mFlags
& 0x10000; }
88
BOOL
isEnableAlphaFlick
()
const
{
return
mpData
->
mFlags
& 0x20000; }
89
BOOL
isEnableRotateAnm
()
const
{
return
mpData
->
mFlags
& 0x1000000; }
90
91
private
:
92
/* 0x00 */
const
JPAExtraShapeData
*
mpData
;
93
/* 0x04 */
f32
mAlphaIncRate
;
94
/* 0x08 */
f32
mAlphaDecRate
;
95
/* 0x0C */
f32
mScaleIncRateX
;
96
/* 0x10 */
f32
mScaleIncRateY
;
97
/* 0x14 */
f32
mScaleDecRateX
;
98
/* 0x18 */
f32
mScaleDecRateY
;
99
};
100
101
void
JPACalcAlphaFlickAnm
(
JPAEmitterWorkData
*,
JPABaseParticle
*);
102
void
JPACalcAlphaAnm
(
JPAEmitterWorkData
*,
JPABaseParticle
*);
103
void
JPACalcScaleX
(
JPAEmitterWorkData
*,
JPABaseParticle
*);
104
void
JPACalcScaleY
(
JPAEmitterWorkData
*,
JPABaseParticle
*);
105
void
JPACalcScaleCopy
(
JPAEmitterWorkData
*,
JPABaseParticle
*);
106
void
JPACalcScaleAnmNormal
(
JPAEmitterWorkData
*,
JPABaseParticle
*);
107
void
JPACalcScaleAnmRepeatX
(
JPAEmitterWorkData
*,
JPABaseParticle
*);
108
void
JPACalcScaleAnmReverseX
(
JPAEmitterWorkData
*,
JPABaseParticle
*);
109
void
JPACalcScaleAnmRepeatY
(
JPAEmitterWorkData
*,
JPABaseParticle
*);
110
void
JPACalcScaleAnmReverseY
(
JPAEmitterWorkData
*,
JPABaseParticle
*);
111
112
#endif
/* JPAEXTRASHAPE_H */
JPACalcScaleY
void JPACalcScaleY(JPAEmitterWorkData *, JPABaseParticle *)
Definition
JPAExtraShape.cpp:30
JPACalcAlphaAnm
void JPACalcAlphaAnm(JPAEmitterWorkData *, JPABaseParticle *)
Definition
JPAExtraShape.cpp:91
JPACalcScaleAnmNormal
void JPACalcScaleAnmNormal(JPAEmitterWorkData *, JPABaseParticle *)
Definition
JPAExtraShape.cpp:53
JPACalcScaleAnmReverseX
void JPACalcScaleAnmReverseX(JPAEmitterWorkData *, JPABaseParticle *)
Definition
JPAExtraShape.cpp:73
JPACalcScaleCopy
void JPACalcScaleCopy(JPAEmitterWorkData *, JPABaseParticle *)
Definition
JPAExtraShape.cpp:46
JPACalcAlphaFlickAnm
void JPACalcAlphaFlickAnm(JPAEmitterWorkData *, JPABaseParticle *)
Definition
JPAExtraShape.cpp:107
JPACalcScaleAnmRepeatX
void JPACalcScaleAnmRepeatX(JPAEmitterWorkData *, JPABaseParticle *)
Definition
JPAExtraShape.cpp:59
JPACalcScaleAnmRepeatY
void JPACalcScaleAnmRepeatY(JPAEmitterWorkData *, JPABaseParticle *)
Definition
JPAExtraShape.cpp:66
JPACalcScaleX
void JPACalcScaleX(JPAEmitterWorkData *, JPABaseParticle *)
Definition
JPAExtraShape.cpp:14
JPACalcScaleAnmReverseY
void JPACalcScaleAnmReverseY(JPAEmitterWorkData *, JPABaseParticle *)
Definition
JPAExtraShape.cpp:82
JPABaseParticle
Definition
JPAParticle.h:20
JPAExtraShape
Definition
JPAExtraShape.h:47
JPAExtraShape::getScaleCenterY
u32 getScaleCenterY() const
Definition
JPAExtraShape.h:86
JPAExtraShape::getRotateInitAngle
f32 getRotateInitAngle() const
Definition
JPAExtraShape.h:69
JPAExtraShape::getScaleInTiming
f32 getScaleInTiming() const
Definition
JPAExtraShape.h:52
JPAExtraShape::init
void init()
Definition
JPAExtraShape.cpp:131
JPAExtraShape::getScaleInValueY
f32 getScaleInValueY() const
Definition
JPAExtraShape.h:55
JPAExtraShape::isScaleXYDiff
BOOL isScaleXYDiff() const
Definition
JPAExtraShape.h:82
JPAExtraShape::getScaleAnmCycleY
s16 getScaleAnmCycleY() const
Definition
JPAExtraShape.h:60
JPAExtraShape::mScaleDecRateY
f32 mScaleDecRateY
Definition
JPAExtraShape.h:98
JPAExtraShape::getScaleOutValueX
f32 getScaleOutValueX() const
Definition
JPAExtraShape.h:56
JPAExtraShape::getScaleOutTiming
f32 getScaleOutTiming() const
Definition
JPAExtraShape.h:53
JPAExtraShape::isEnableAlphaFlick
BOOL isEnableAlphaFlick() const
Definition
JPAExtraShape.h:88
JPAExtraShape::getAlphaAmp
f32 getAlphaAmp() const
Definition
JPAExtraShape.h:68
JPAExtraShape::getAlphaIncRate
f32 getAlphaIncRate() const
Definition
JPAExtraShape.h:78
JPAExtraShape::mScaleDecRateX
f32 mScaleDecRateX
Definition
JPAExtraShape.h:97
JPAExtraShape::getScaleAnmTypeX
u32 getScaleAnmTypeX() const
Definition
JPAExtraShape.h:83
JPAExtraShape::getScaleCenterX
u32 getScaleCenterX() const
Definition
JPAExtraShape.h:85
JPAExtraShape::mpData
const JPAExtraShapeData * mpData
Definition
JPAExtraShape.h:92
JPAExtraShape::mAlphaIncRate
f32 mAlphaIncRate
Definition
JPAExtraShape.h:93
JPAExtraShape::isEnableScaleAnm
BOOL isEnableScaleAnm() const
Definition
JPAExtraShape.h:81
JPAExtraShape::getRotateRndmAngle
f32 getRotateRndmAngle() const
Definition
JPAExtraShape.h:70
JPAExtraShape::getScaleOutValueY
f32 getScaleOutValueY() const
Definition
JPAExtraShape.h:57
JPAExtraShape::getScaleRndm
f32 getScaleRndm() const
Definition
JPAExtraShape.h:58
JPAExtraShape::getScaleDecRateX
f32 getScaleDecRateX() const
Definition
JPAExtraShape.h:75
JPAExtraShape::getAlphaFreq
f32 getAlphaFreq() const
Definition
JPAExtraShape.h:66
JPAExtraShape::getAlphaFreqRndm
f32 getAlphaFreqRndm() const
Definition
JPAExtraShape.h:67
JPAExtraShape::getScaleAnmCycleX
s16 getScaleAnmCycleX() const
Definition
JPAExtraShape.h:59
JPAExtraShape::getAlphaOutTiming
f32 getAlphaOutTiming() const
Definition
JPAExtraShape.h:62
JPAExtraShape::mScaleIncRateY
f32 mScaleIncRateY
Definition
JPAExtraShape.h:96
JPAExtraShape::getScaleInValueX
f32 getScaleInValueX() const
Definition
JPAExtraShape.h:54
JPAExtraShape::getRotateDirection
f32 getRotateDirection() const
Definition
JPAExtraShape.h:73
JPAExtraShape::getScaleDecRateY
f32 getScaleDecRateY() const
Definition
JPAExtraShape.h:77
JPAExtraShape::isEnableRotateAnm
BOOL isEnableRotateAnm() const
Definition
JPAExtraShape.h:89
JPAExtraShape::isEnableAlphaAnm
BOOL isEnableAlphaAnm() const
Definition
JPAExtraShape.h:87
JPAExtraShape::getScaleIncRateX
f32 getScaleIncRateX() const
Definition
JPAExtraShape.h:74
JPAExtraShape::getAlphaInValue
f32 getAlphaInValue() const
Definition
JPAExtraShape.h:63
JPAExtraShape::getAlphaBaseValue
f32 getAlphaBaseValue() const
Definition
JPAExtraShape.h:65
JPAExtraShape::getRotateRndmSpeed
f32 getRotateRndmSpeed() const
Definition
JPAExtraShape.h:72
JPAExtraShape::getScaleAnmTypeY
u32 getScaleAnmTypeY() const
Definition
JPAExtraShape.h:84
JPAExtraShape::getAlphaDecRate
f32 getAlphaDecRate() const
Definition
JPAExtraShape.h:79
JPAExtraShape::getScaleIncRateY
f32 getScaleIncRateY() const
Definition
JPAExtraShape.h:76
JPAExtraShape::getRotateInitSpeed
f32 getRotateInitSpeed() const
Definition
JPAExtraShape.h:71
JPAExtraShape::getAlphaInTiming
f32 getAlphaInTiming() const
Definition
JPAExtraShape.h:61
JPAExtraShape::getAlphaOutValue
f32 getAlphaOutValue() const
Definition
JPAExtraShape.h:64
JPAExtraShape::mScaleIncRateX
f32 mScaleIncRateX
Definition
JPAExtraShape.h:95
JPAExtraShape::mAlphaDecRate
f32 mAlphaDecRate
Definition
JPAExtraShape.h:94
JPAEmitterWorkData
Definition
JPAEmitter.h:21
JPAExtraShapeData
Definition
JPAExtraShape.h:13
JPAExtraShapeData::mScaleAnmCycleX
s16 mScaleAnmCycleX
Definition
JPAExtraShape.h:26
JPAExtraShapeData::mRotateSpeed
f32 mRotateSpeed
Definition
JPAExtraShape.h:38
JPAExtraShapeData::mScaleAnmCycleY
s16 mScaleAnmCycleY
Definition
JPAExtraShape.h:27
JPAExtraShapeData::mRotateSpeedRandom
f32 mRotateSpeedRandom
Definition
JPAExtraShape.h:39
JPAExtraShapeData::mAlphaOutTiming
f32 mAlphaOutTiming
Definition
JPAExtraShape.h:29
JPAExtraShapeData::mRotateAngle
f32 mRotateAngle
Definition
JPAExtraShape.h:36
JPAExtraShapeData::mAlphaWaveRandom
f32 mAlphaWaveRandom
Definition
JPAExtraShape.h:34
JPAExtraShapeData::mScaleOutRandom
f32 mScaleOutRandom
Definition
JPAExtraShape.h:25
JPAExtraShapeData::mScaleInTiming
f32 mScaleInTiming
Definition
JPAExtraShape.h:19
JPAExtraShapeData::mScaleInValueY
f32 mScaleInValueY
Definition
JPAExtraShape.h:23
JPAExtraShapeData::mMagic
u8 mMagic[4]
Definition
JPAExtraShape.h:15
JPAExtraShapeData::mRotateDirection
f32 mRotateDirection
Definition
JPAExtraShape.h:40
JPAExtraShapeData::mScaleOutValueY
f32 mScaleOutValueY
Definition
JPAExtraShape.h:24
JPAExtraShapeData::mSize
u32 mSize
Definition
JPAExtraShape.h:16
JPAExtraShapeData::mRotateAngleRandom
f32 mRotateAngleRandom
Definition
JPAExtraShape.h:37
JPAExtraShapeData::mFlags
u32 mFlags
Definition
JPAExtraShape.h:18
JPAExtraShapeData::mScaleInValueX
f32 mScaleInValueX
Definition
JPAExtraShape.h:21
JPAExtraShapeData::mAlphaBaseValue
f32 mAlphaBaseValue
Definition
JPAExtraShape.h:31
JPAExtraShapeData::mAlphaWaveAmplitude
f32 mAlphaWaveAmplitude
Definition
JPAExtraShape.h:35
JPAExtraShapeData::mScaleOutTiming
f32 mScaleOutTiming
Definition
JPAExtraShape.h:20
JPAExtraShapeData::mAlphaInTiming
f32 mAlphaInTiming
Definition
JPAExtraShape.h:28
JPAExtraShapeData::mScaleOutValueX
f32 mScaleOutValueX
Definition
JPAExtraShape.h:22
JPAExtraShapeData::mAlphaOutValue
f32 mAlphaOutValue
Definition
JPAExtraShape.h:32
JPAExtraShapeData::mAlphaInValue
f32 mAlphaInValue
Definition
JPAExtraShape.h:30
JPAExtraShapeData::mAlphaWaveFrequency
f32 mAlphaWaveFrequency
Definition
JPAExtraShape.h:33
types.h
BOOL
int BOOL
Definition
types.h:27
u32
unsigned long u32
Definition
types.h:10
f32
float f32
Definition
types.h:22
s16
signed short s16
Definition
types.h:5
u8
unsigned char u8
Definition
types.h:8
include
JSystem
JParticle
JPAExtraShape.h
Generated by
1.9.8