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

The balloons over an actor's head. More...

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

Go to the source code of this file.

Functions

s32 FIELDSTG_stepBalloonAnim (Balloon *task)
 Steps a balloon's animation (FIELDSTG_triggerAnims) and returns its frame.
 
void FIELDSTG_drawBalloon (Balloon *task)
 Draws a balloon over its actor: its frame, and once open, its animation.
 
void FIELDSTG_updateBalloon (Balloon *task)
 A balloon's update: it pops open over the player (or another actor), stays while the trigger is on offer and pops shut in TASK_DONE.
 
Balloon * FIELDSTG_createBalloon (s32 kind, s32 anim, s32 id)
 Creates a balloon of a kind (its sprites) with an animation, under a task id.
 
void FIELDSTG_createPlayerBalloon (s32 id)
 The balloon over the player: script commands 803 to 806 (FIELDSTG_scriptCommands)
 
void FIELDSTG_balloonCommand (Balloon *task, s32 command, s32 id)
 A balloon's script commands: 0x325 and 0x327 put it over the actor id with animation 0 or 1, 0x326 pops it shut.
 

Detailed Description

The balloons over an actor's head.

Definition in file balloon.c.

Function Documentation

◆ FIELDSTG_stepBalloonAnim()

s32 FIELDSTG_stepBalloonAnim ( Balloon *  task)

Steps a balloon's animation (FIELDSTG_triggerAnims) and returns its frame.

balloon.c

Definition at line 6 of file balloon.c.

Referenced by FIELDSTG_drawBalloon().

Here is the caller graph for this function:

◆ FIELDSTG_drawBalloon()

void FIELDSTG_drawBalloon ( Balloon *  task)

Draws a balloon over its actor: its frame, and once open, its animation.

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

Definition at line 19 of file balloon.c.

Referenced by FIELDSTG_updateBalloon().

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

◆ FIELDSTG_updateBalloon()

void FIELDSTG_updateBalloon ( Balloon *  task)

A balloon's update: it pops open over the player (or another actor), stays while the trigger is on offer and pops shut in TASK_DONE.

< every character (FIELDSTG_createActor)

< a balloon

Definition at line 38 of file balloon.c.

Referenced by FIELDSTG_createBalloon().

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

◆ FIELDSTG_createBalloon()

Balloon * FIELDSTG_createBalloon ( s32  kind,
s32  anim,
s32  id 
)

Creates a balloon of a kind (its sprites) with an animation, under a task id.

Definition at line 99 of file balloon.c.

Referenced by FIELDSTG_createPlayerBalloon(), FIELDSTG_offerTrigger(), and runGauge().

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

◆ FIELDSTG_createPlayerBalloon()

void FIELDSTG_createPlayerBalloon ( s32  id)

The balloon over the player: script commands 803 to 806 (FIELDSTG_scriptCommands)

Definition at line 108 of file balloon.c.

Here is the call graph for this function:

◆ FIELDSTG_balloonCommand()

void FIELDSTG_balloonCommand ( Balloon *  task,
s32  command,
s32  id 
)

A balloon's script commands: 0x325 and 0x327 put it over the actor id with animation 0 or 1, 0x326 pops it shut.

< every character (FIELDSTG_createActor)

Definition at line 114 of file balloon.c.