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

FIGHTSTG's shot camera, which goes through lists of shots while the player picks a command. More...

Include dependency graph for shot_camera.c:

Go to the source code of this file.

Functions

static void startNextShot (ShotCamera *task)
 Shows both models again and starts the list's next shot, or the first shot of a list picked at random among those that can follow.
 
static void turnAroundFighters (ShotCamera *task)
 Shot 1: turns around the fighters from the enemy's view, going on from where the last turn stopped (in stage 4, a half turn ends the shot).
 
static void viewFromSide (ShotCamera *task)
 Shot 2: a fixed view, set off to the side of the enemy's view.
 
static void viewFromAbove (ShotCamera *task)
 Shot 9: a turning view, set high above the enemy's view.
 
static void viewPartnerSide (ShotCamera *task)
 Views the partner's side, with the enemy's model hidden.
 
static void viewEnemySide (ShotCamera *task)
 Views the enemy's side, with the partner's model hidden.
 
static void spinView (ShotCamera *task)
 Turns the view around at the shot's speed.
 
static void spinViewBack (ShotCamera *task)
 Turns the view around the other way at the shot's speed.
 
void FIGHTSTG_updateShotCamera (ShotCamera *task)
 A camera that plays lists of shots (FIGHTSTG_cameraShots): turns around the fighters, fixed views and views of one side with the other side's model hidden.
 
ShotCamera * FIGHTSTG_createShotCamera (void)
 Starts the camera that plays lists of shots (FIGHTSTG_updateShotCamera)
 

Variables

CameraShot FIGHTSTG_cameraShots [4][6]
 FIGHTSTG_updateShotCamera's shots: how long each lasts and the substate that makes it, in four lists that end with a time of -1.
 
u8 FIGHTSTG_nextShotLists [8][3]
 the lists that can follow each one
 

Detailed Description

FIGHTSTG's shot camera, which goes through lists of shots while the player picks a command.

Definition in file shot_camera.c.

Function Documentation

◆ startNextShot()

static void startNextShot ( ShotCamera *  task)
inlinestatic

Shows both models again and starts the list's next shot, or the first shot of a list picked at random among those that can follow.

Definition at line 21 of file shot_camera.c.

Referenced by FIGHTSTG_updateShotCamera().

Here is the caller graph for this function:

◆ turnAroundFighters()

static void turnAroundFighters ( ShotCamera *  task)
inlinestatic

Shot 1: turns around the fighters from the enemy's view, going on from where the last turn stopped (in stage 4, a half turn ends the shot).

Definition at line 34 of file shot_camera.c.

Referenced by FIGHTSTG_updateShotCamera().

Here is the caller graph for this function:

◆ viewFromSide()

static void viewFromSide ( ShotCamera *  task)
inlinestatic

Shot 2: a fixed view, set off to the side of the enemy's view.

Definition at line 55 of file shot_camera.c.

Referenced by FIGHTSTG_updateShotCamera().

Here is the caller graph for this function:

◆ viewFromAbove()

static void viewFromAbove ( ShotCamera *  task)
inlinestatic

Shot 9: a turning view, set high above the enemy's view.

Definition at line 67 of file shot_camera.c.

Referenced by FIGHTSTG_updateShotCamera().

Here is the caller graph for this function:

◆ viewPartnerSide()

static void viewPartnerSide ( ShotCamera *  task)
inlinestatic

Views the partner's side, with the enemy's model hidden.

Definition at line 81 of file shot_camera.c.

Referenced by FIGHTSTG_updateShotCamera().

Here is the caller graph for this function:

◆ viewEnemySide()

static void viewEnemySide ( ShotCamera *  task)
inlinestatic

Views the enemy's side, with the partner's model hidden.

Definition at line 91 of file shot_camera.c.

Referenced by FIGHTSTG_updateShotCamera().

Here is the caller graph for this function:

◆ spinView()

static void spinView ( ShotCamera *  task)
inlinestatic

Turns the view around at the shot's speed.

Definition at line 101 of file shot_camera.c.

Referenced by FIGHTSTG_updateShotCamera().

Here is the caller graph for this function:

◆ spinViewBack()

static void spinViewBack ( ShotCamera *  task)
inlinestatic

Turns the view around the other way at the shot's speed.

Definition at line 109 of file shot_camera.c.

Referenced by FIGHTSTG_updateShotCamera().

Here is the caller graph for this function:

◆ FIGHTSTG_updateShotCamera()

void FIGHTSTG_updateShotCamera ( ShotCamera *  task)

A camera that plays lists of shots (FIGHTSTG_cameraShots): turns around the fighters, fixed views and views of one side with the other side's model hidden.

Shared between the overlay's objects.

< the fighters'

Definition at line 119 of file shot_camera.c.

Referenced by FIGHTSTG_createShotCamera().

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

◆ FIGHTSTG_createShotCamera()

ShotCamera * FIGHTSTG_createShotCamera ( void  )

Starts the camera that plays lists of shots (FIGHTSTG_updateShotCamera)

Definition at line 223 of file shot_camera.c.

Referenced by runCommandMenu(), runConfusedMenu(), and runKnockOutSwitchMenu().

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

Variable Documentation

◆ FIGHTSTG_cameraShots

CameraShot FIGHTSTG_cameraShots[4][6]
Initial value:
= {
{ { 1800, 1 }, { 480, 9 }, { 360, 3 }, { 300, 4 }, { 480, 9 }, { -1, 0 } },
{ { 360, 6 }, { 900, 1 }, { 300, 5 }, { 480, 9 }, { -1, 0 }, { 0, 0 } },
{ { 1920, 1 }, { 360, 6 }, { 180, 7 }, { 480, 9 }, { -1, 0 }, { 0, 0 } },
{ { 90, 10 }, { 90, 5 }, { -1, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },
}

FIGHTSTG_updateShotCamera's shots: how long each lasts and the substate that makes it, in four lists that end with a time of -1.

Definition at line 8 of file shot_camera.c.

Referenced by FIGHTSTG_updateShotCamera(), and startNextShot().

◆ FIGHTSTG_nextShotLists

u8 FIGHTSTG_nextShotLists[8][3]
Initial value:
= {
{ 1, 2, 1 }, { 0, 2, 2 }, { 0, 1, 0 }, { 0, 1, 2 },
}

the lists that can follow each one

Definition at line 15 of file shot_camera.c.

Referenced by startNextShot().