|
Digimon World 3 decomp
The European version, SLES_039.36
|
A 3D model (FIGHTSTG_createModel), registered with id 0x11: a tree of bones, each drawn by a Mesh child (children[i] for bone i, children[0] the model's face, FIGHTSTG_createFace), and the motion it plays, from the archive of motions in motionFile. More...
#include <battle/battle_mode/model.h>
Data Fields | ||
| s32 | id | |
| s32 | key1 | |
| s32 | key2 | |
| s32 | state | |
| s32 | substate | |
| s32 | step | |
| s32 | counter | |
| s32 | paused | |
| s32 | childCount | |
| void * | children | |
| void(* | setState )(struct Model *task, s32 state) | |
| void(* | setSubstate )(struct Model *task, s32 substate) | |
| void(* | setStep )(struct Model *task, s32 step) | |
| void(* | setCounter )(struct Model *task, s32 counter) | |
| void(* | nextState )(struct Model *task) | |
| void(* | nextSubstate )(struct Model *task) | |
| void(* | nextStep )(struct Model *task) | |
| void(* | tickCounter )(struct Model *task) | |
| void(* | update )() | |
| void(* | destroy )(struct Model *task) | |
| s32 | boneCount | |
| ModelBone * | bones | |
| union { | ||
| SVECTOR v | ||
| moves the root bone, along its rotation More... | ||
| s32 xy | ||
| vx and vy as one word More... | ||
| } | move | |
| s32 | hasIdle | |
| it goes back to its idle motion | ||
| ModelControl * | control | |
| Vec2 | texPos | |
| where its textures go in VRAM | ||
| s32 | texFile | |
| s32 | motionFile | |
| s32 | motion | |
| s32 | motionDone | |
| s32 | keyframe | |
| s32 | frame | |
| the pose's | ||
| s32 | idleFrames [2] | |
| where the two idle motions start | ||
| s32 | blendTarget | |
| the frame it blends into, 0 for none | ||
| s32 | blending | |
| s32 | blend | |
| how far, in 4096ths | ||
| s32 | toIdle | |
| the motion ends in the idle motion | ||
| s32 | keyframeCount | |
| u16 | keyframes [0x640] | |
| u16 | blendTargets [0x640] | |
| the frame a blending keyframe blends into | ||
| u16 | blendSources [0x640] | |
| and the one it blends from, 0xFFFF for the saved pose | ||
| void(* | setMotion )(struct Model *model, s32 motion, s32 restart) | |
| s32(* | isMotionDone )(struct Model *model) | |
| void(* | setColor )() | |
| (model, mode, color): its meshes' | ||
| void(* | setBoneNoBoundsCheck )() | |
A 3D model (FIGHTSTG_createModel), registered with id 0x11: a tree of bones, each drawn by a Mesh child (children[i] for bone i, children[0] the model's face, FIGHTSTG_createFace), and the motion it plays, from the archive of motions in motionFile.
| s32 Model::state |
Definition at line 133 of file model.h.
Referenced by FIGHTSTG_updateModel().
| void* Model::children |
Definition at line 133 of file model.h.
Referenced by FIGHTSTG_setBoneNoBoundsCheck(), and FIGHTSTG_setModelColor().
Definition at line 133 of file model.h.
Referenced by FIGHTSTG_removeFighterModel(), and FIGHTSTG_updateStage().
| void(* Model::nextState) (struct Model *task) |
Definition at line 133 of file model.h.
Referenced by FIGHTSTG_updateModel().
| s32 Model::boneCount |
Definition at line 134 of file model.h.
Referenced by FIGHTSTG_createModel(), FIGHTSTG_poseBones(), FIGHTSTG_saveBlendPose(), FIGHTSTG_setModelColor(), FIGHTSTG_stepMotion(), and FIGHTSTG_updateModel().
| ModelBone* Model::bones |
Definition at line 135 of file model.h.
Referenced by FIGHTSTG_createModel(), FIGHTSTG_poseBones(), FIGHTSTG_saveBlendPose(), FIGHTSTG_stepMotion(), and FIGHTSTG_updateModel().
| SVECTOR Model::v |
moves the root bone, along its rotation
Definition at line 137 of file model.h.
Referenced by FIGHTSTG_poseBones().
| s32 Model::xy |
| union { ... } Model::move |
Referenced by FIGHTSTG_poseBones().
| s32 Model::hasIdle |
it goes back to its idle motion
Definition at line 140 of file model.h.
Referenced by FIGHTSTG_createModel(), FIGHTSTG_stepMotion(), and FIGHTSTG_updateModel().
| ModelControl* Model::control |
Definition at line 141 of file model.h.
Referenced by FIGHTSTG_createModel(), FIGHTSTG_setBoneNoBoundsCheck(), FIGHTSTG_setModelColor(), FIGHTSTG_setMotion(), FIGHTSTG_stepMotion(), and FIGHTSTG_updateModel().
| Vec2 Model::texPos |
where its textures go in VRAM
Definition at line 142 of file model.h.
Referenced by FIGHTSTG_createFace(), FIGHTSTG_createModel(), and FIGHTSTG_updateModel().
| s32 Model::texFile |
Definition at line 143 of file model.h.
Referenced by FIGHTSTG_createModel(), and FIGHTSTG_updateModel().
| s32 Model::motionFile |
Definition at line 144 of file model.h.
Referenced by FIGHTSTG_createModel(), FIGHTSTG_setMotion(), and FIGHTSTG_updateModel().
| s32 Model::motion |
Definition at line 145 of file model.h.
Referenced by FIGHTSTG_getEyesFrame(), FIGHTSTG_setMotion(), and FIGHTSTG_updateModel().
| s32 Model::motionDone |
Definition at line 146 of file model.h.
Referenced by FIGHTSTG_isMotionDone(), FIGHTSTG_setMotion(), and FIGHTSTG_stepMotion().
| s32 Model::keyframe |
Definition at line 147 of file model.h.
Referenced by FIGHTSTG_setMotion(), and FIGHTSTG_stepMotion().
| s32 Model::frame |
the pose's
Definition at line 148 of file model.h.
Referenced by FIGHTSTG_blendBone(), FIGHTSTG_poseBones(), and FIGHTSTG_stepMotion().
| s32 Model::idleFrames[2] |
where the two idle motions start
Definition at line 149 of file model.h.
Referenced by FIGHTSTG_setMotion(), and FIGHTSTG_updateModel().
| s32 Model::blendTarget |
the frame it blends into, 0 for none
Definition at line 150 of file model.h.
Referenced by FIGHTSTG_stepMotion().
| s32 Model::blending |
Definition at line 151 of file model.h.
Referenced by FIGHTSTG_poseBones(), and FIGHTSTG_stepMotion().
| s32 Model::blend |
how far, in 4096ths
Definition at line 152 of file model.h.
Referenced by FIGHTSTG_blendBone(), and FIGHTSTG_stepMotion().
| s32 Model::toIdle |
the motion ends in the idle motion
Definition at line 153 of file model.h.
Referenced by FIGHTSTG_setMotion(), and FIGHTSTG_stepMotion().
| s32 Model::keyframeCount |
Definition at line 154 of file model.h.
Referenced by FIGHTSTG_setMotion(), and FIGHTSTG_stepMotion().
| u16 Model::keyframes[0x640] |
Definition at line 155 of file model.h.
Referenced by FIGHTSTG_setMotion(), and FIGHTSTG_stepMotion().
| u16 Model::blendTargets[0x640] |
the frame a blending keyframe blends into
Definition at line 156 of file model.h.
Referenced by FIGHTSTG_setMotion(), and FIGHTSTG_stepMotion().
| u16 Model::blendSources[0x640] |
and the one it blends from, 0xFFFF for the saved pose
Definition at line 157 of file model.h.
Referenced by FIGHTSTG_setMotion(), and FIGHTSTG_stepMotion().
Definition at line 158 of file model.h.
Referenced by FIGHTSTG_createModel().
Definition at line 159 of file model.h.
Referenced by FIGHTSTG_createModel().
| void(* Model::setColor) () |
(model, mode, color): its meshes'
Definition at line 160 of file model.h.
Referenced by FIGHTSTG_createModel(), FIGHTSTG_fadeStage(), and prepareStageModel().
| void(* Model::setBoneNoBoundsCheck) () |
Definition at line 161 of file model.h.
Referenced by FIGHTSTG_createModel(), and prepareStageModel().