Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
Model Struct Reference

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>

Collaboration diagram for Model:
[legend]

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 )()
 

Detailed Description

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.

Definition at line 132 of file model.h.

Field Documentation

◆ id

s32 Model::id

Definition at line 133 of file model.h.

◆ key1

s32 Model::key1

Definition at line 133 of file model.h.

◆ key2

s32 Model::key2

Definition at line 133 of file model.h.

◆ state

s32 Model::state

Definition at line 133 of file model.h.

Referenced by FIGHTSTG_updateModel().

◆ substate

s32 Model::substate

Definition at line 133 of file model.h.

◆ step

s32 Model::step

Definition at line 133 of file model.h.

◆ counter

s32 Model::counter

Definition at line 133 of file model.h.

◆ paused

s32 Model::paused

Definition at line 133 of file model.h.

◆ childCount

s32 Model::childCount

Definition at line 133 of file model.h.

◆ children

void* Model::children

Definition at line 133 of file model.h.

Referenced by FIGHTSTG_setBoneNoBoundsCheck(), and FIGHTSTG_setModelColor().

◆ setState

void(* Model::setState) (struct Model *task, s32 state)

Definition at line 133 of file model.h.

Referenced by FIGHTSTG_removeFighterModel(), and FIGHTSTG_updateStage().

◆ setSubstate

void(* Model::setSubstate) (struct Model *task, s32 substate)

Definition at line 133 of file model.h.

◆ setStep

void(* Model::setStep) (struct Model *task, s32 step)

Definition at line 133 of file model.h.

◆ setCounter

void(* Model::setCounter) (struct Model *task, s32 counter)

Definition at line 133 of file model.h.

◆ nextState

void(* Model::nextState) (struct Model *task)

Definition at line 133 of file model.h.

Referenced by FIGHTSTG_updateModel().

◆ nextSubstate

void(* Model::nextSubstate) (struct Model *task)

Definition at line 133 of file model.h.

◆ nextStep

void(* Model::nextStep) (struct Model *task)

Definition at line 133 of file model.h.

◆ tickCounter

void(* Model::tickCounter) (struct Model *task)

Definition at line 133 of file model.h.

◆ update

void(* Model::update) ()

Definition at line 133 of file model.h.

◆ destroy

void(* Model::destroy) (struct Model *task)

Definition at line 133 of file model.h.

◆ boneCount

◆ bones

◆ v

SVECTOR Model::v

moves the root bone, along its rotation

Definition at line 137 of file model.h.

Referenced by FIGHTSTG_poseBones().

◆ xy

s32 Model::xy

vx and vy as one word

Definition at line 138 of file model.h.

Referenced by FIGHTSTG_poseBones().

◆ [union]

union { ... } Model::move

Referenced by FIGHTSTG_poseBones().

◆ hasIdle

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().

◆ control

◆ texPos

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().

◆ texFile

s32 Model::texFile

Definition at line 143 of file model.h.

Referenced by FIGHTSTG_createModel(), and FIGHTSTG_updateModel().

◆ motionFile

s32 Model::motionFile

Definition at line 144 of file model.h.

Referenced by FIGHTSTG_createModel(), FIGHTSTG_setMotion(), and FIGHTSTG_updateModel().

◆ motion

s32 Model::motion

Definition at line 145 of file model.h.

Referenced by FIGHTSTG_getEyesFrame(), FIGHTSTG_setMotion(), and FIGHTSTG_updateModel().

◆ motionDone

s32 Model::motionDone

Definition at line 146 of file model.h.

Referenced by FIGHTSTG_isMotionDone(), FIGHTSTG_setMotion(), and FIGHTSTG_stepMotion().

◆ keyframe

s32 Model::keyframe

Definition at line 147 of file model.h.

Referenced by FIGHTSTG_setMotion(), and FIGHTSTG_stepMotion().

◆ frame

s32 Model::frame

the pose's

Definition at line 148 of file model.h.

Referenced by FIGHTSTG_blendBone(), FIGHTSTG_poseBones(), and FIGHTSTG_stepMotion().

◆ idleFrames

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().

◆ blendTarget

s32 Model::blendTarget

the frame it blends into, 0 for none

Definition at line 150 of file model.h.

Referenced by FIGHTSTG_stepMotion().

◆ blending

s32 Model::blending

Definition at line 151 of file model.h.

Referenced by FIGHTSTG_poseBones(), and FIGHTSTG_stepMotion().

◆ blend

s32 Model::blend

how far, in 4096ths

Definition at line 152 of file model.h.

Referenced by FIGHTSTG_blendBone(), and FIGHTSTG_stepMotion().

◆ toIdle

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().

◆ keyframeCount

s32 Model::keyframeCount

Definition at line 154 of file model.h.

Referenced by FIGHTSTG_setMotion(), and FIGHTSTG_stepMotion().

◆ keyframes

u16 Model::keyframes[0x640]

Definition at line 155 of file model.h.

Referenced by FIGHTSTG_setMotion(), and FIGHTSTG_stepMotion().

◆ blendTargets

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().

◆ blendSources

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().

◆ setMotion

void(* Model::setMotion) (struct Model *model, s32 motion, s32 restart)

Definition at line 158 of file model.h.

Referenced by FIGHTSTG_createModel().

◆ isMotionDone

s32(* Model::isMotionDone) (struct Model *model)

Definition at line 159 of file model.h.

Referenced by FIGHTSTG_createModel().

◆ setColor

void(* Model::setColor) ()

(model, mode, color): its meshes'

Definition at line 160 of file model.h.

Referenced by FIGHTSTG_createModel(), FIGHTSTG_fadeStage(), and prepareStageModel().

◆ setBoneNoBoundsCheck

void(* Model::setBoneNoBoundsCheck) ()

Definition at line 161 of file model.h.

Referenced by FIGHTSTG_createModel(), and prepareStageModel().


The documentation for this struct was generated from the following file: