Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
models.c File Reference

FIGHTSTG's models task (FIGHTSTG_createModels): the fighters' models and their controls. More...

Include dependency graph for models.c:

Go to the source code of this file.

Functions

void FIGHTSTG_updateModels (Models *task)
 The fighters' models' task: nothing to do but start.
 
s32 FIGHTSTG_findModelSlot (Models *task, s32 id)
 The slot of the fighter model registered as ID, or -1.
 
s32 FIGHTSTG_findFreeModelSlot (Models *task)
 A free fighter model slot, or -1.
 
void FIGHTSTG_removeFighterModel (Models *task, s32 id)
 Models.remove: kills the model registered as ID and frees its slot.
 
void FIGHTSTG_addFighterModel (Models *task, s32 id, s32 fighter, s32 visible)
 Models.add: replaces the model registered as ID with FIGHTER's, in a free slot with that slot's textures, drawn on layer BATTLE_LAYER_MODELS when VISIBLE.
 
ModelControl * FIGHTSTG_getModelControl (Models *task, s32 id)
 Models.get: the control of the model registered as ID, or NULL.
 
void FIGHTSTG_setModelId (Models *task, s32 id, s32 newId)
 Models.setId: registers the model ID as NEWID instead, removing the one that had it.
 
s32 FIGHTSTG_getModelFighter (Models *task, s32 id)
 Models.getFighter: the fighter of the model registered as ID, or 0.
 
void FIGHTSTG_faceModel (Models *task, s32 id)
 Models.face: puts the model registered as ID at its side's place, facing the other side, as its home.
 
void FIGHTSTG_setModelIdleMotion (Models *task, s32 id, s32 motion)
 Models.setIdleMotion.
 
Models * FIGHTSTG_createModels (void)
 Creates the fighters' models (Models), with no fighters yet.
 

Variables

Vec2 FIGHTSTG_fighterTexPos []
 the fighters' models' texture places
 

Detailed Description

FIGHTSTG's models task (FIGHTSTG_createModels): the fighters' models and their controls.

Definition in file models.c.

Function Documentation

◆ FIGHTSTG_updateModels()

void FIGHTSTG_updateModels ( Models *  task)

The fighters' models' task: nothing to do but start.

Definition at line 7 of file models.c.

Referenced by FIGHTSTG_createModels().

Here is the caller graph for this function:

◆ FIGHTSTG_findModelSlot()

s32 FIGHTSTG_findModelSlot ( Models *  task,
s32  id 
)

The slot of the fighter model registered as ID, or -1.

Definition at line 21 of file models.c.

Referenced by FIGHTSTG_getModelControl(), FIGHTSTG_getModelFighter(), FIGHTSTG_removeFighterModel(), and FIGHTSTG_setModelId().

Here is the caller graph for this function:

◆ FIGHTSTG_findFreeModelSlot()

s32 FIGHTSTG_findFreeModelSlot ( Models *  task)

A free fighter model slot, or -1.

Definition at line 33 of file models.c.

Referenced by FIGHTSTG_addFighterModel().

Here is the caller graph for this function:

◆ FIGHTSTG_removeFighterModel()

void FIGHTSTG_removeFighterModel ( Models *  task,
s32  id 
)

Models.remove: kills the model registered as ID and frees its slot.

Definition at line 45 of file models.c.

Referenced by FIGHTSTG_addFighterModel(), FIGHTSTG_createModels(), and FIGHTSTG_setModelId().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIGHTSTG_addFighterModel()

void FIGHTSTG_addFighterModel ( Models *  task,
s32  id,
s32  fighter,
s32  visible 
)

Models.add: replaces the model registered as ID with FIGHTER's, in a free slot with that slot's textures, drawn on layer BATTLE_LAYER_MODELS when VISIBLE.

Definition at line 64 of file models.c.

Referenced by FIGHTSTG_createModels().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIGHTSTG_getModelControl()

ModelControl * FIGHTSTG_getModelControl ( Models *  task,
s32  id 
)

Models.get: the control of the model registered as ID, or NULL.

Definition at line 88 of file models.c.

Referenced by FIGHTSTG_createModels(), FIGHTSTG_faceModel(), and FIGHTSTG_setModelIdleMotion().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIGHTSTG_setModelId()

void FIGHTSTG_setModelId ( Models *  task,
s32  id,
s32  newId 
)

Models.setId: registers the model ID as NEWID instead, removing the one that had it.

Definition at line 99 of file models.c.

Referenced by FIGHTSTG_createModels().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIGHTSTG_getModelFighter()

s32 FIGHTSTG_getModelFighter ( Models *  task,
s32  id 
)

Models.getFighter: the fighter of the model registered as ID, or 0.

Definition at line 105 of file models.c.

Referenced by FIGHTSTG_createModels().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIGHTSTG_faceModel()

void FIGHTSTG_faceModel ( Models *  task,
s32  id 
)

Models.face: puts the model registered as ID at its side's place, facing the other side, as its home.

Definition at line 116 of file models.c.

Referenced by FIGHTSTG_createModels().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIGHTSTG_setModelIdleMotion()

void FIGHTSTG_setModelIdleMotion ( Models *  task,
s32  id,
s32  motion 
)

Models.setIdleMotion.

Definition at line 145 of file models.c.

Referenced by FIGHTSTG_createModels().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIGHTSTG_createModels()

Models * FIGHTSTG_createModels ( void  )

Creates the fighters' models (Models), with no fighters yet.

The tasks FIGHTSTG starts for WFIGHTMN and WFIGHTTS.

< the fighters'

Definition at line 154 of file models.c.

Referenced by setUpBattle(), and WFIGHTMN_updateMenu().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ FIGHTSTG_fighterTexPos

Vec2 FIGHTSTG_fighterTexPos[]
Initial value:
= {
{ 832, 0 }, { 896, 0 }, { 960, 0 }, { 960, 256 },
}

the fighters' models' texture places

Definition at line 58 of file models.c.

Referenced by FIGHTSTG_addFighterModel().