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

The camera, which follows an actor or looks at a spot, and shakes. More...

#include "field/field_mode.h"
Include dependency graph for camera.c:

Go to the source code of this file.

Functions

void FIELDSTG_scrollCamera (Camera *task)
 Scrolls the map layer to the camera's center, kept inside the map, and shakes it while shaking with its sound.
 
void FIELDSTG_updateCamera (Camera *task)
 The camera's update: it follows its target actor (substate 0) or looks at a spot (1), panning there unless it snaps.
 
Camera * FIELDSTG_createCamera (void)
 Creates the camera.
 
void FIELDSTG_followWithCamera (s32 snap, s32 id)
 Points the camera at the actor id, at once if snap.
 
void FIELDSTG_pointCamera (s32 snap, s32 x, s32 y)
 Points the camera at the spot (x, y), at once if snap.
 
void FIELDSTG_shakeCamera (s32 shaking)
 Starts or stops the camera's shake.
 

Detailed Description

The camera, which follows an actor or looks at a spot, and shakes.

Definition in file camera.c.

Function Documentation

◆ FIELDSTG_scrollCamera()

void FIELDSTG_scrollCamera ( Camera *  task)

Scrolls the map layer to the camera's center, kept inside the map, and shakes it while shaking with its sound.

camera.c

< the map, its objects and characters, and the menus

< FIELDSTG_createMapStreamer's

< held while the camera shakes

< held while the camera shakes

Definition at line 7 of file camera.c.

Referenced by FIELDSTG_updateCamera().

Here is the caller graph for this function:

◆ FIELDSTG_updateCamera()

void FIELDSTG_updateCamera ( Camera *  task)

The camera's update: it follows its target actor (substate 0) or looks at a spot (1), panning there unless it snaps.

< every character (FIELDSTG_createActor)

< held while the camera shakes

Definition at line 61 of file camera.c.

Referenced by FIELDSTG_createCamera().

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

◆ FIELDSTG_createCamera()

Camera * FIELDSTG_createCamera ( void  )

Creates the camera.

Definition at line 139 of file camera.c.

Referenced by FIELDSTG_updateField().

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

◆ FIELDSTG_followWithCamera()

void FIELDSTG_followWithCamera ( s32  snap,
s32  id 
)

Points the camera at the actor id, at once if snap.

< every character (FIELDSTG_createActor)

Definition at line 147 of file camera.c.

Referenced by FIELDSTG_runActorAction(), FIELDSTG_runEvent(), and runClimbOffTop().

Here is the caller graph for this function:

◆ FIELDSTG_pointCamera()

void FIELDSTG_pointCamera ( s32  snap,
s32  x,
s32  y 
)

Points the camera at the spot (x, y), at once if snap.

Definition at line 161 of file camera.c.

Referenced by FIELDSTG_runEvent().

Here is the caller graph for this function:

◆ FIELDSTG_shakeCamera()

void FIELDSTG_shakeCamera ( s32  shaking)

Starts or stops the camera's shake.

Definition at line 175 of file camera.c.

Referenced by FIELDSTG_handleFieldCommand().

Here is the caller graph for this function: