|
Digimon World 3 decomp
The European version, SLES_039.36
|
A training's Digimon (TrainActor), animated from an image set. More...
#include "menus/gym.h"Go to the source code of this file.
Functions | |
| static void | STGTRAIN_setUpActor (TrainActor *actor, TrainActorSprites *sprites) |
| Makes the Digimon's sprite from its loaded image set, and the effect's from set 8, when the file has one. | |
| static void | STGTRAIN_scaleActor (TrainActor *actor, TrainActorSprites *sprites) |
| Mode 2: grows or shrinks the Digimon by scaleStep a frame, about its middle, until it is whole or gone. | |
| static s32 | STGTRAIN_actorAnimDone (TrainActorSprites *sprites) |
| Whether the Digimon's animation (and the effect's) has ended. | |
| static void | STGTRAIN_stopActor (TrainActor *actor, TrainActorSprites *sprites) |
| Pauses the Digimon and its effect on their last frame and goes idle (mode 1) | |
| static void | STGTRAIN_playTraining (TrainActor *actor, TrainActorSprites *sprites) |
| Mode 4: plays the training's two animations, then the one of whether it worked, which the chance decides, then stops. | |
| static void | STGTRAIN_playTrainingEnd (TrainActor *actor, TrainActorSprites *sprites) |
| Mode 8: plays the end of the training, worked (animation 4) or not (5), then stops; without that animation the Digimon goes idle at once. | |
| void | STGTRAIN_updateActor (TrainActor *actor, TrainActorSprites *sprites) |
| A training's Digimon (TrainActor): once its file is loaded and its positions set, makes its sprite (and the effect of set 8); then grows or shrinks (mode 2), plays the training (mode 4: two animations, then the chance decides between the worked and failed ones) or its end (mode 8). | |
| void | STGTRAIN_pauseActor (TrainActor *actor) |
| Pauses the Digimon's sprite and effect. | |
| void | STGTRAIN_playActor (TrainActor *actor) |
| Plays the training on (mode 4), unpausing the sprite and effect. | |
| void | STGTRAIN_setActorPos (TrainActor *actor, s32 x, s32 y) |
| Sets where the Digimon's images go in VRAM. | |
| void | STGTRAIN_setActorClutPos (TrainActor *actor, s32 x, s32 y) |
| Sets where the Digimon's CLUTs go in VRAM. | |
| void | STGTRAIN_setActorChance (TrainActor *actor, s32 chance) |
| Sets the chance that the training works. | |
| void | STGTRAIN_growActor (TrainActor *actor) |
| Makes the Digimon grow from nothing (mode 2) | |
| void | STGTRAIN_shrinkActor (TrainActor *actor) |
| Makes the Digimon shrink to nothing (mode 2) | |
| void | STGTRAIN_setActorScale (TrainActor *actor, s32 scale) |
| Scales the Digimon (0x1000 is its size) | |
| s32 | STGTRAIN_getActorResult (TrainActor *actor) |
| Whether the training worked, once it is done (mode bit 0), else -1. | |
| void | STGTRAIN_endActor (TrainActor *actor) |
| Plays the training's end (mode 8) | |
| TrainActor * | STGTRAIN_createActor (s32 set, s32 file, s32 layerId, s32 depth) |
| Creates an animated sprite of an image set. | |
A training's Digimon (TrainActor), animated from an image set.
Definition in file actor.c.
|
inlinestatic |
Makes the Digimon's sprite from its loaded image set, and the effect's from set 8, when the file has one.
Definition at line 7 of file actor.c.
Referenced by STGTRAIN_updateActor().
|
inlinestatic |
Mode 2: grows or shrinks the Digimon by scaleStep a frame, about its middle, until it is whole or gone.
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
Definition at line 53 of file actor.c.
Referenced by STGTRAIN_updateActor().
|
inlinestatic |
Whether the Digimon's animation (and the effect's) has ended.
Definition at line 77 of file actor.c.
Referenced by STGTRAIN_playTraining(), and STGTRAIN_playTrainingEnd().
|
inlinestatic |
Pauses the Digimon and its effect on their last frame and goes idle (mode 1)
Definition at line 86 of file actor.c.
Referenced by STGTRAIN_playTraining(), and STGTRAIN_playTrainingEnd().
|
inlinestatic |
Mode 4: plays the training's two animations, then the one of whether it worked, which the chance decides, then stops.
Definition at line 100 of file actor.c.
Referenced by STGTRAIN_updateActor().
|
inlinestatic |
Mode 8: plays the end of the training, worked (animation 4) or not (5), then stops; without that animation the Digimon goes idle at once.
Definition at line 146 of file actor.c.
Referenced by STGTRAIN_updateActor().
| void STGTRAIN_updateActor | ( | TrainActor * | actor, |
| TrainActorSprites * | sprites | ||
| ) |
A training's Digimon (TrainActor): once its file is loaded and its positions set, makes its sprite (and the effect of set 8); then grows or shrinks (mode 2), plays the training (mode 4: two animations, then the chance decides between the worked and failed ones) or its end (mode 8).
actor.c
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
Definition at line 183 of file actor.c.
Referenced by STGTRAIN_createActor().
| void STGTRAIN_pauseActor | ( | TrainActor * | actor | ) |
Pauses the Digimon's sprite and effect.
Definition at line 224 of file actor.c.
Referenced by STGTRAIN_createActor().
| void STGTRAIN_playActor | ( | TrainActor * | actor | ) |
Plays the training on (mode 4), unpausing the sprite and effect.
Definition at line 236 of file actor.c.
Referenced by STGTRAIN_createActor().
| void STGTRAIN_setActorPos | ( | TrainActor * | actor, |
| s32 | x, | ||
| s32 | y | ||
| ) |
Sets where the Digimon's images go in VRAM.
Definition at line 249 of file actor.c.
Referenced by STGTRAIN_createActor().
| void STGTRAIN_setActorClutPos | ( | TrainActor * | actor, |
| s32 | x, | ||
| s32 | y | ||
| ) |
Sets where the Digimon's CLUTs go in VRAM.
Definition at line 256 of file actor.c.
Referenced by STGTRAIN_createActor().
| void STGTRAIN_setActorChance | ( | TrainActor * | actor, |
| s32 | chance | ||
| ) |
Sets the chance that the training works.
Definition at line 263 of file actor.c.
Referenced by STGTRAIN_createActor().
| void STGTRAIN_growActor | ( | TrainActor * | actor | ) |
Makes the Digimon grow from nothing (mode 2)
Definition at line 268 of file actor.c.
Referenced by STGTRAIN_createActor().
| void STGTRAIN_shrinkActor | ( | TrainActor * | actor | ) |
Makes the Digimon shrink to nothing (mode 2)
< GTE regards 4096 as 1.0
Definition at line 275 of file actor.c.
Referenced by STGTRAIN_createActor().
| void STGTRAIN_setActorScale | ( | TrainActor * | actor, |
| s32 | scale | ||
| ) |
Scales the Digimon (0x1000 is its size)
Definition at line 282 of file actor.c.
Referenced by STGTRAIN_createActor().
| s32 STGTRAIN_getActorResult | ( | TrainActor * | actor | ) |
Whether the training worked, once it is done (mode bit 0), else -1.
Definition at line 288 of file actor.c.
Referenced by STGTRAIN_createActor().
| void STGTRAIN_endActor | ( | TrainActor * | actor | ) |
Plays the training's end (mode 8)
Definition at line 296 of file actor.c.
Referenced by STGTRAIN_createActor().
| TrainActor * STGTRAIN_createActor | ( | s32 | set, |
| s32 | file, | ||
| s32 | layerId, | ||
| s32 | depth | ||
| ) |
Creates an animated sprite of an image set.
Definition at line 302 of file actor.c.
Referenced by STGTRAIN_updateResult().