Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
jstudio-control.h
Go to the documentation of this file.
1#ifndef JSTUDIO_CONTROL_H
2#define JSTUDIO_CONTROL_H
3
7#include "dolphin/gx.h"
8
9namespace JStudio {
10struct TObject;
13 /* 80285488 */ virtual ~TCreateObject() = 0;
15
16 template<class AdaptorT>
17 static typename AdaptorT::ObjectType* createFromAdaptor(JStudio::stb::data::TParse_TBlock_object const& param_1, AdaptorT* param_2) {
18 typename AdaptorT::ObjectType* rv = new typename AdaptorT::ObjectType(param_1, param_2);
19 if (rv == NULL) {
20 return NULL;
21 }
22 rv->prepareAdaptor();
23 return rv;
24 }
25
27}; // Size: 0xC
28
29struct TFactory : public stb::TFactory {
31
32 /* 802854D0 */ virtual ~TFactory();
33 /* 802855AC */ virtual TObject* create(JStudio::stb::data::TParse_TBlock_object const&);
34
35 /* 80285560 */ void appendCreateObject(JStudio::TCreateObject*);
36
40};
41
42class TControl : public stb::TControl {
43public:
49 struct TTransform_position : public Vec {};
54
55 /* 80285114 */ TControl();
56 /* 802851AC */ virtual ~TControl();
57 /* 80285228 */ void setFactory(JStudio::TFactory*);
58 /* 80285250 */ int transformOnSet_setOrigin_TxyzRy(Vec const&, f32);
59 /* 802852D0 */ int transformOnGet_setOrigin_TxyzRy(Vec const&, f32);
60 /* 80285368 */ int transform_setOrigin_ctb(JStudio::ctb::TObject const&);
61 /* 8028543C */ bool transform_setOrigin_ctb_index(u32);
62
66
72
75
80
85
86 void transform_setOrigin(const Vec& xyz, f32 rotY) {
88 }
89
92
96
100
104
107 if (obj == NULL) {
108 return NULL;
109 }
110 return obj->referFunctionValue();
111 }
112
115 if (obj == NULL) {
116 return NULL;
117 }
118 return obj->referFunctionValue();
119 }
120
123
129
131 JUT_ASSERT(232, pDst!=0);
132 JUT_ASSERT(233, &rSrc!=pDst);
133 pDst->x = rSrc.x;
135 pDst->z = rSrc.z;
136 }
137
139 JUT_ASSERT(240, pDst!=0);
140 JUT_ASSERT(241, &rSrc!=pDst);
141 *pDst = rSrc;
142 }
143
147
154
163
164 TTransform_translation_rotation_scaling*
173
176
182
188
195
196 TTransform_position_direction*
205
210
211 TTransform_position*
220
222 JUT_ASSERT(302, pDst!=0);
223 JUT_ASSERT(303, &rSrc!=pDst);
224 pDst->x = rSrc.x;
226 pDst->z = rSrc.z;
227 }
228
230 JUT_ASSERT(310, pDst!=0);
231 JUT_ASSERT(311, &rSrc!=pDst);
232 *pDst = rSrc;
233 }
234
242
243 TTransform_translation_rotation_scaling*
252
258
265
266 TTransform_position_direction*
275
279 /* 0x88 */ bool mTransformOnSet;
280 /* 0x89 */ bool mTransformOnGet;
281 /* 0x8C */ Vec field_0x8c;
282 /* 0x98 */ Vec field_0x98;
287};
288
289struct TParse : public stb::TParse {
290 /* 8028566C */ TParse(JStudio::TControl*);
293
294 /* 802856A8 */ virtual ~TParse();
295 /* 80285708 */ virtual bool parseHeader(JStudio::stb::data::TParse_THeader const&, u32);
296 /* 802857E4 */ virtual bool parseBlock_block(JStudio::stb::data::TParse_TBlock const&, u32);
297
299};
300
301}; // namespace JStudio
302
303#endif /* JSTUDIO_CONTROL_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition jstudio-control.h:42
void fvb_destroyObject_all()
Definition jstudio-control.h:64
Vec field_0x98
Definition jstudio-control.h:282
fvb::TControl fvb_Control
Definition jstudio-control.h:277
TTransform_translation_rotation_scaling * transformOnSet_transform_ifEnabled(TTransform_translation_rotation_scaling *param_1, TTransform_translation_rotation_scaling *param_2) const
Definition jstudio-control.h:165
f64 getSecondPerFrame() const
Definition jstudio-control.h:91
TTransform_position * transformOnSet_transform_ifEnabled(TTransform_position *param_1, TTransform_position *param_2) const
Definition jstudio-control.h:155
void transformOnSet_transform(TTransform_position *param_1, TTransform_position *param_2) const
Definition jstudio-control.h:144
int transformOnGet_setOrigin_TxyzRy(Vec const &, f32)
Definition jstudio-control.cpp:46
Mtx mTransformOnGet_Matrix
Definition jstudio-control.h:286
void transformOnGet_transform(TTransform_position_direction *param_1, TTransform_position_direction *pDst) const
Definition jstudio-control.h:189
void setSecondPerFrame(f64 param_0)
Definition jstudio-control.h:90
fvb::TObject * fvb_getObject_index(u32 index)
Definition jstudio-control.h:101
void transformOnSet_enable(bool param_0)
Definition jstudio-control.h:73
TTransform_position_direction * transformOnSet_transform_ifEnabled(TTransform_position_direction *param_1, TTransform_position_direction *param_2) const
Definition jstudio-control.h:267
void transformOnGet_enable(bool param_0)
Definition jstudio-control.h:74
void transformOnGet_transformRotation(const Vec &rSrc, Vec *pDst) const
Definition jstudio-control.h:221
bool transformOnSet_isEnabled() const
Definition jstudio-control.h:121
bool transform_setOrigin_ctb_index(u32)
Definition jstudio-control.cpp:75
TFunctionValue * getFunctionValue(const void *param_1, u32 param_2)
Definition jstudio-control.h:105
void transformOnSet_transformRotation(const Vec &rSrc, Vec *pDst) const
Definition jstudio-control.h:130
bool mTransformOnGet
Definition jstudio-control.h:280
void setFactory(JStudio::TFactory *)
Definition jstudio-control.cpp:23
fvb::TObject * fvb_getObject(const void *param_1, u32 param_2)
Definition jstudio-control.h:97
void transformOnSet_transform(TTransform_translation_rotation_scaling *param_1, TTransform_translation_rotation_scaling *param_2) const
Definition jstudio-control.h:148
int transformOnSet_setOrigin_TxyzRy(Vec const &, f32)
Definition jstudio-control.cpp:37
void destroyObject_all()
Definition jstudio-control.h:67
void transformOnSet_transformDirection(const Vec &rSrc, Vec *pDst) const
Definition jstudio-control.h:253
void transformOnGet_transformScaling(const Vec &rSrc, Vec *pDst) const
Definition jstudio-control.h:229
int transform_setOrigin_ctb(JStudio::ctb::TObject const &)
Definition jstudio-control.cpp:57
void transformOnSet_transformTranslation(const Vec &rSrc, Vec *pDst) const
Definition jstudio-control.h:124
ctb::TObject * ctb_getObject_index(u32 index)
Definition jstudio-control.h:93
void transformOnGet_transformTranslation(const Vec &rSrc, Vec *pDst) const
Definition jstudio-control.h:177
void transform_setOrigin(const Vec &xyz, f32 rotY)
Definition jstudio-control.h:86
void transformOnSet_transformScaling(const Vec &rSrc, Vec *pDst) const
Definition jstudio-control.h:138
TControl()
Definition jstudio-control.cpp:11
void transform_enable(bool param_0)
Definition jstudio-control.h:76
Vec field_0x8c
Definition jstudio-control.h:281
bool mTransformOnSet
Definition jstudio-control.h:279
ctb::TControl ctb_Control
Definition jstudio-control.h:278
f32 mTransformOnGet_RotationY
Definition jstudio-control.h:284
Mtx mTransformOnSet_Matrix
Definition jstudio-control.h:285
f32 mTransformOnSet_RotationY
Definition jstudio-control.h:283
void transformOnGet_transform(TTransform_translation_rotation_scaling *param_1, TTransform_translation_rotation_scaling *pDst) const
Definition jstudio-control.h:235
void stb_destroyObject_all()
Definition jstudio-control.h:63
TTransform_position_direction * transformOnGet_transform_ifEnabled(TTransform_position_direction *param_1, TTransform_position_direction *param_2) const
Definition jstudio-control.h:197
void transformOnGet_transform(TTransform_position *param_1, TTransform_position *pDst) const
Definition jstudio-control.h:206
f64 mSecondPerFrame
Definition jstudio-control.h:276
void ctb_destroyObject_all()
Definition jstudio-control.h:65
void transform_setOrigin_TxyzRy(const Vec &xyz, f32 rotY)
Definition jstudio-control.h:81
CMtxP transformOnSet_getMatrix() const
Definition jstudio-control.h:122
CMtxP transformOnGet_getMatrix() const
Definition jstudio-control.h:175
virtual ~TControl()
Definition jstudio-control.cpp:19
TTransform_translation_rotation_scaling * transformOnGet_transform_ifEnabled(TTransform_translation_rotation_scaling *param_1, TTransform_translation_rotation_scaling *param_2) const
Definition jstudio-control.h:244
TFunctionValue * getFunctionValue_index(u32 index)
Definition jstudio-control.h:113
void transformOnGet_transformDirection(const Vec &rSrc, Vec *pDst) const
Definition jstudio-control.h:183
bool transformOnGet_isEnabled() const
Definition jstudio-control.h:174
void transformOnSet_transform(TTransform_position_direction *param_1, TTransform_position_direction *pDst) const
Definition jstudio-control.h:259
TTransform_position * transformOnGet_transform_ifEnabled(TTransform_position *param_1, TTransform_position *param_2) const
Definition jstudio-control.h:212
Definition functionvalue.h:19
Definition jstudio-object.h:104
Definition fvb.h:58
TObject * getObject(void const *, u32)
Definition fvb.cpp:672
void destroyObject_all()
Definition fvb.cpp:667
TObject * getObject_index(u32)
Definition fvb.cpp:678
Definition fvb.h:49
Definition fvb.h:26
Definition stb.h:125
void destroyObject_all()
Definition stb.cpp:355
Definition stb.h:109
Definition stb.h:15
TControl * getControl() const
Definition stb.h:25
Definition stb-data-parse.h:82
Definition stb-data-parse.h:27
Definition stb-data-parse.h:14
const f32(* CMtxP)[4]
Definition mtx.h:20
f32 Mtx[3][4]
Definition mtx.h:15
Definition functionvalue.cpp:318
Definition linklist.h:7
Vec direction
Definition jstudio-control.h:52
Vec position
Definition jstudio-control.h:51
Definition jstudio-control.h:49
Definition jstudio-control.h:11
virtual ~TCreateObject()=0
Definition jstudio-control.cpp:86
JGadget::TLinkListNode mNode
Definition jstudio-control.h:26
TCreateObject()
Definition jstudio-control.h:12
static AdaptorT::ObjectType * createFromAdaptor(JStudio::stb::data::TParse_TBlock_object const &param_1, AdaptorT *param_2)
Definition jstudio-control.h:17
virtual bool create(TObject **, JStudio::stb::data::TParse_TBlock_object const &)=0
Definition jstudio-control.h:29
fvb::TFactory fvb_Factory
Definition jstudio-control.h:38
virtual TObject * create(JStudio::stb::data::TParse_TBlock_object const &)
Definition jstudio-control.cpp:99
void appendCreateObject(JStudio::TCreateObject *)
Definition jstudio-control.cpp:93
virtual ~TFactory()
Definition jstudio-control.cpp:89
TFactory()
Definition jstudio-control.h:30
JGadget::TLinkList< TCreateObject, -4 > mList
Definition jstudio-control.h:37
ctb::TFactory ctb_Factory
Definition jstudio-control.h:39
Definition jstudio-control.h:289
virtual ~TParse()
Definition jstudio-control.cpp:117
virtual bool parseHeader(JStudio::stb::data::TParse_THeader const &, u32)
Definition jstudio-control.cpp:121
virtual bool parseBlock_block(JStudio::stb::data::TParse_TBlock const &, u32)
Definition jstudio-control.cpp:145
bool parseBlock_block_ctb_(JStudio::stb::data::TParse_TBlock const &, u32)
Definition jstudio-control.cpp:184
bool parseBlock_block_fvb_(JStudio::stb::data::TParse_TBlock const &, u32)
Definition jstudio-control.cpp:159
TControl * getControl()
Definition jstudio-control.h:298
Definition ctb.h:127
void destroyObject_all()
Definition ctb.cpp:162
JStudio::ctb::TObject * getObject_index(u32)
Definition ctb.cpp:188
Definition ctb.h:119
Definition ctb.h:11
Definition d_a_hozelda.cpp:18
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
double f64
Definition types.h:23