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

FIGHTSTG's battle camera and its views of the fighters. More...

Include dependency graph for battle_camera.c:

Go to the source code of this file.

Functions

void FIGHTSTG_updateBattleCamera (BattleCamera *task)
 The battle camera's task: fades its view from from to to (position, reference, translation, rotation, roll and projection) by tStep a frame, sets it on its layer every frame and goes to the next substate once there; set and fade restart it through TASK_DONE.
 
void FIGHTSTG_setBattleCameraView (BattleCamera *task, CameraView *view)
 BattleCamera.set: puts the battle camera at view.
 
void FIGHTSTG_fadeBattleCamera (BattleCamera *task, CameraView *from, CameraView *to, s32 time)
 BattleCamera.fade: fades the battle camera from from (or where it is) to to over time frames.
 
CameraView * FIGHTSTG_getFighterView (BattleCamera *task, s32 id, s32 camera)
 The view of a fighter's camera (id as Models.getFighter takes it), which ends the battle camera's fade.
 
CameraView * FIGHTSTG_getEnemyView (BattleCamera *task)
 The view of the enemy's last camera.
 
BattleCamera * FIGHTSTG_createBattleCamera (s32 layerId)
 Creates the battle camera (BATTLE_TASK_CAMERA) on a layer.
 

Detailed Description

FIGHTSTG's battle camera and its views of the fighters.

Definition in file battle_camera.c.

Function Documentation

◆ FIGHTSTG_updateBattleCamera()

void FIGHTSTG_updateBattleCamera ( BattleCamera *  task)

The battle camera's task: fades its view from from to to (position, reference, translation, rotation, roll and projection) by tStep a frame, sets it on its layer every frame and goes to the next substate once there; set and fade restart it through TASK_DONE.

Definition at line 9 of file battle_camera.c.

Referenced by FIGHTSTG_createBattleCamera().

Here is the caller graph for this function:

◆ FIGHTSTG_setBattleCameraView()

void FIGHTSTG_setBattleCameraView ( BattleCamera *  task,
CameraView *  view 
)

BattleCamera.set: puts the battle camera at view.

Definition at line 117 of file battle_camera.c.

Referenced by FIGHTSTG_createBattleCamera().

Here is the caller graph for this function:

◆ FIGHTSTG_fadeBattleCamera()

void FIGHTSTG_fadeBattleCamera ( BattleCamera *  task,
CameraView *  from,
CameraView *  to,
s32  time 
)

BattleCamera.fade: fades the battle camera from from (or where it is) to to over time frames.

Definition at line 125 of file battle_camera.c.

Referenced by FIGHTSTG_createBattleCamera().

Here is the caller graph for this function:

◆ FIGHTSTG_getFighterView()

CameraView * FIGHTSTG_getFighterView ( BattleCamera *  task,
s32  id,
s32  camera 
)

The view of a fighter's camera (id as Models.getFighter takes it), which ends the battle camera's fade.

< the fighters'

Definition at line 139 of file battle_camera.c.

Referenced by FIGHTSTG_createBattleCamera(), and FIGHTSTG_getEnemyView().

Here is the caller graph for this function:

◆ FIGHTSTG_getEnemyView()

CameraView * FIGHTSTG_getEnemyView ( BattleCamera *  task)

The view of the enemy's last camera.

< the fighters'

Definition at line 188 of file battle_camera.c.

Referenced by FIGHTSTG_createBattleCamera().

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

◆ FIGHTSTG_createBattleCamera()

BattleCamera * FIGHTSTG_createBattleCamera ( s32  layerId)

Creates the battle camera (BATTLE_TASK_CAMERA) on a layer.

Definition at line 209 of file battle_camera.c.

Referenced by setUpBattle(), and WFIGHTMN_updateMenu().

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