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

The launchers, which send an actor flying to a tile. More...

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

Go to the source code of this file.

Functions

s32 FIELDSTG_scaleSin (s32 angle, s32 radius)
 radius times the sine of angle
 
static void flyToDest (Launch *task)
 The flight: the distances to the destination taken once, then the player moved along them on a sine curve, spinning and without a shadow, until counter reaches 0x1000 and the player lands on it.
 
void FIELDSTG_runLaunch (Launch *task)
 Sends an actor from the nearest FIELD_TASK_LAUNCHER (y counts twice in the distance) to its dest tile: the actor walks to the task, sets it to TASK_DONE, waits for it to leave that state, then moves along a quarter sine, spinning, until it lands; without such a task it ends at once.
 
Launch * FIELDSTG_createLaunch (Actor *actor, SlotDest *dest)
 Creates the flight of an actor to the tile at dest; two stages' modes (0x26C, 0x2D4) set theirs up.
 

Detailed Description

The launchers, which send an actor flying to a tile.

Definition in file launch.c.

Function Documentation

◆ FIELDSTG_scaleSin()

s32 FIELDSTG_scaleSin ( s32  angle,
s32  radius 
)

radius times the sine of angle

launch.c

Definition at line 7 of file launch.c.

Referenced by flyToDest().

Here is the caller graph for this function:

◆ flyToDest()

static void flyToDest ( Launch *  task)
inlinestatic

The flight: the distances to the destination taken once, then the player moved along them on a sine curve, spinning and without a shadow, until counter reaches 0x1000 and the player lands on it.

Definition at line 16 of file launch.c.

Referenced by FIELDSTG_runLaunch().

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

◆ FIELDSTG_runLaunch()

void FIELDSTG_runLaunch ( Launch *  task)

Sends an actor from the nearest FIELD_TASK_LAUNCHER (y counts twice in the distance) to its dest tile: the actor walks to the task, sets it to TASK_DONE, waits for it to leave that state, then moves along a quarter sine, spinning, until it lands; without such a task it ends at once.

The match depends on the distance written twice.

< a stage's launchers (FIELDSTG_runLaunch)

< TELEPORT

Definition at line 72 of file launch.c.

Referenced by FIELDSTG_createLaunch().

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

◆ FIELDSTG_createLaunch()

Launch * FIELDSTG_createLaunch ( Actor *  actor,
SlotDest *  dest 
)

Creates the flight of an actor to the tile at dest; two stages' modes (0x26C, 0x2D4) set theirs up.

Definition at line 166 of file launch.c.

Referenced by FIELDSTG_launchActor().

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