Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JPAResource.h
Go to the documentation of this file.
1#ifndef JPARESOURCE_H
2#define JPARESOURCE_H
3
4#include "dolphin/types.h"
5
6class JKRHeap;
10
11class JPABaseShape;
12class JPAExtraShape;
13class JPAChildShape;
14class JPAExTexShape;
16class JPAFieldBlock;
17class JPAKeyBlock;
18
24public:
25 /* 80274010 */ JPAResource();
26 /* 80274080 */ void init(JKRHeap*);
27 /* 802755E8 */ bool calc(JPAEmitterWorkData*, JPABaseEmitter*);
28 /* 80275A94 */ void draw(JPAEmitterWorkData*, JPABaseEmitter*);
29 /* 80275B74 */ void drawP(JPAEmitterWorkData*);
30 /* 80275EB0 */ void drawC(JPAEmitterWorkData*);
31 /* 802761A8 */ void setPTev();
32 /* 8027642C */ void setCTev(JPAEmitterWorkData*);
33 /* 8027658C */ void calc_p(JPAEmitterWorkData*, JPABaseParticle*);
34 /* 80276608 */ void calc_c(JPAEmitterWorkData*, JPABaseParticle*);
35 /* 80276684 */ void calcField(JPAEmitterWorkData*, JPABaseParticle*);
36 /* 80276700 */ void calcKey(JPAEmitterWorkData*);
37 /* 80276840 */ void calcWorkData_c(JPAEmitterWorkData*);
38 /* 80276A0C */ void calcWorkData_d(JPAEmitterWorkData*);
39
40 JPABaseShape* getBsp() const { return mpBaseShape; }
41 JPAExtraShape* getEsp() const { return mpExtraShape; }
42 JPAChildShape* getCsp() const { return mpChildShape; }
43 JPAExTexShape* getEts() const { return mpExTexShape; }
45
46 u32 getTexIdx(u32 idx) const { return mpTDB1[idx]; }
47 u16 getUsrIdx() const { return mUsrIdx; }
48
49public:
59
67 /* 0x38 */ u16 const* mpTDB1;
68 /* 0x3C */ u16 mUsrIdx;
69 /* 0x3E */ u8 mFieldBlockNum;
70 /* 0x3F */ u8 mKeyBlockNum;
71 /* 0x40 */ u8 mTDB1Num;
79};
80
81#endif /* JPARESOURCE_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JKRHeap.h:16
Definition JPAEmitter.h:94
Definition JPAParticle.h:20
Definition JPAChildShape.h:43
Definition JPADynamicsBlock.h:61
Definition JPAExTexShape.h:28
Definition JPAExtraShape.h:47
Definition JPAFieldBlock.h:120
Definition JPAResource.h:23
void calc_p(JPAEmitterWorkData *, JPABaseParticle *)
Definition JPAResource.cpp:1017
JPAFieldBlock ** mpFieldBlocks
Definition JPAResource.h:65
void calcWorkData_d(JPAEmitterWorkData *)
Definition JPAResource.cpp:1113
u8 mKeyBlockNum
Definition JPAResource.h:70
void drawC(JPAEmitterWorkData *)
Definition JPAResource.cpp:872
u8 mpDrawEmitterChildFuncListNum
Definition JPAResource.h:74
u8 mpDrawEmitterFuncListNum
Definition JPAResource.h:73
u8 mpDrawParticleFuncListNum
Definition JPAResource.h:76
void calcWorkData_c(JPAEmitterWorkData *)
Definition JPAResource.cpp:1082
u8 mpCalcParticleFuncListNum
Definition JPAResource.h:75
JPAExtraShape * mpExtraShape
Definition JPAResource.h:61
ParticleFunc * mpDrawParticleChildFuncList
Definition JPAResource.h:58
JPAExTexShape * getEts() const
Definition JPAResource.h:43
u16 mUsrIdx
Definition JPAResource.h:68
u8 mpCalcParticleChildFuncListNum
Definition JPAResource.h:77
ParticleFunc * mpDrawParticleFuncList
Definition JPAResource.h:56
JPADynamicsBlock * getDyn() const
Definition JPAResource.h:44
JPABaseShape * mpBaseShape
Definition JPAResource.h:60
u8 mTDB1Num
Definition JPAResource.h:71
void calcKey(JPAEmitterWorkData *)
Definition JPAResource.cpp:1045
void draw(JPAEmitterWorkData *, JPABaseEmitter *)
Definition JPAResource.cpp:790
EmitterFunc * mpCalcEmitterFuncList
Definition JPAResource.h:52
bool calc(JPAEmitterWorkData *, JPABaseEmitter *)
Definition JPAResource.cpp:703
void setCTev(JPAEmitterWorkData *)
Definition JPAResource.cpp:994
u8 mFieldBlockNum
Definition JPAResource.h:69
u32 getTexIdx(u32 idx) const
Definition JPAResource.h:46
ParticleFunc * mpCalcParticleFuncList
Definition JPAResource.h:55
void drawP(JPAEmitterWorkData *)
Definition JPAResource.cpp:808
EmitterFunc * mpDrawEmitterChildFuncList
Definition JPAResource.h:54
u16 getUsrIdx() const
Definition JPAResource.h:47
JPADynamicsBlock * mpDynamicsBlock
Definition JPAResource.h:64
JPAChildShape * mpChildShape
Definition JPAResource.h:62
JPAExtraShape * getEsp() const
Definition JPAResource.h:41
JPAExTexShape * mpExTexShape
Definition JPAResource.h:63
void(* EmitterFunc)(JPAEmitterWorkData *)
Definition JPAResource.h:50
JPAChildShape * getCsp() const
Definition JPAResource.h:42
ParticleFunc * mpCalcParticleChildFuncList
Definition JPAResource.h:57
void setPTev()
Definition JPAResource.cpp:935
void(* ParticleFunc)(JPAEmitterWorkData *, JPABaseParticle *)
Definition JPAResource.h:51
JPAResource()
Definition JPAResource.cpp:20
u16 const * mpTDB1
Definition JPAResource.h:67
JPAKeyBlock ** mpKeyBlocks
Definition JPAResource.h:66
EmitterFunc * mpDrawEmitterFuncList
Definition JPAResource.h:53
void calcField(JPAEmitterWorkData *, JPABaseParticle *)
Definition JPAResource.cpp:1037
JPABaseShape * getBsp() const
Definition JPAResource.h:40
u8 mpCalcEmitterFuncListNum
Definition JPAResource.h:72
u8 mpDrawParticleChildFuncListNum
Definition JPAResource.h:78
void calc_c(JPAEmitterWorkData *, JPABaseParticle *)
Definition JPAResource.cpp:1027
static initFunc init[]
Definition d_menu_collect.cpp:42
Definition JPABaseShape.h:47
Definition JPAEmitter.h:21
Definition JPAKeyBlock.h:10
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8