|
Digimon World 3 decomp
The European version, SLES_039.36
|
The overlay's images and the files of its image sets; the panels' fades; the gym levels' trainings; and the third object's data, with the state all three objects share. More...
#include "menus/gym.h"#include "shared/start_fade.inc.c"#include "shared/update_fade.inc.c"#include "shared/start_lerp.inc.c"#include "shared/update_lerp.inc.c"Go to the source code of this file.
Functions | |
| void | STGTRAIN_loadImages (void) |
| Loads the overlay's TIM archive into VRAM. | |
| s32 | STGTRAIN_requestFile (s32 index) |
| Starts loading a file of STGTRAIN_files, unless it is the one loaded. | |
| u8 * | STGTRAIN_getFile (void) |
| The requested file, or NULL while it loads. | |
| void | STGTRAIN_freeFile (void) |
| Frees the loaded file of STGTRAIN_files. | |
| s32 | STGTRAIN_readSetBank (TrainSetHeader *header, s32 set) |
| The set's sprite bank, where its sprites start and its size: the two words after the set's offsets. | |
| s32 | STGTRAIN_readSetAnims (TrainSetHeader *header, s32 set) |
| The set's animations. | |
| s32 | STGTRAIN_readSetImages (TrainSetHeader *header, s32 set) |
| The images of a set: the rest of its offsets. | |
| s32 | STGTRAIN_readSet (s32 set) |
| Reads an image set of the loaded file. | |
| s32 | STGTRAIN_loadSet (s32 set, s32 *pos) |
| Loads the images of a set into VRAM side by side, unpacking the run-length encoded ones ("RLEN") first. | |
| s32 | STGTRAIN_getFileId (s32 index) |
| The file of an entry of STGTRAIN_files. | |
| s32 | STGTRAIN_getFilePos (s32 index) |
| Where the image of an entry of STGTRAIN_files goes (y << 16 | x) | |
| s32 | STGTRAIN_getFileEffectSameDepth (s32 index) |
| Whether an entry of STGTRAIN_files draws its effect at the Digimon's depth. | |
| TrainSpriteBank * | STGTRAIN_getBank (s32 set) |
| The sprite bank of an image set. | |
| s32 | STGTRAIN_getBankOffset (s32 set) |
| Where an image set's sprites start in its bank. | |
| s32 | STGTRAIN_getBankSize (s32 set) |
| The size of an image set's sprite bank (nothing calls it) | |
| TrainAnim * | STGTRAIN_getAnim (s32 set, s32 i) |
| An animation of an image set. | |
| TrainEntry * | STGTRAIN_getGymTrainings (s32 index) |
| The trainings of a gym level, counting them. | |
| TrainEntry * | STGTRAIN_findGymTraining (s32 index, s32 id) |
| A training of a gym level, by its id. | |
Variables | |
| s32 | STGTRAIN_intensityCosts [] |
| the points each intensity of a training costs | |
| TrainEntry | STGTRAIN_gymTrainings [14][16] |
| The trainings of each gym level, by STGTRAIN_findGymTraining: {id, stat, other}, 0 ends. | |
| TrainInfo | STGTRAIN_trainings [] |
| The trainings: their name and description in the text file, and the frames of their icon. | |
| TrainFile | STGTRAIN_files [] |
| the discs number their files differently | |
| TrainState | STGTRAIN_state |
| TrainCursor | STGTRAIN_bankCursor = { ((void *)0) } |
| TrainCursor | STGTRAIN_animCursor = { ((void *)0) } |
| TrainCursor | STGTRAIN_imageCursor = { ((void *)0) } |
| TrainCursor | STGTRAIN_setCursor = { ((void *)0) } |
The overlay's images and the files of its image sets; the panels' fades; the gym levels' trainings; and the third object's data, with the state all three objects share.
Definition in file files.c.
| void STGTRAIN_loadImages | ( | void | ) |
| u8 * STGTRAIN_getFile | ( | void | ) |
| void STGTRAIN_freeFile | ( | void | ) |
| s32 STGTRAIN_readSetBank | ( | TrainSetHeader * | header, |
| s32 | set | ||
| ) |
The set's sprite bank, where its sprites start and its size: the two words after the set's offsets.
Definition at line 52 of file files.c.
Referenced by STGTRAIN_readSet().
| s32 STGTRAIN_readSetAnims | ( | TrainSetHeader * | header, |
| s32 | set | ||
| ) |
The set's animations.
Definition at line 63 of file files.c.
Referenced by STGTRAIN_readSet().
| s32 STGTRAIN_readSetImages | ( | TrainSetHeader * | header, |
| s32 | set | ||
| ) |
The images of a set: the rest of its offsets.
Definition at line 79 of file files.c.
Referenced by STGTRAIN_readSet().
| TrainSpriteBank * STGTRAIN_getBank | ( | s32 | set | ) |
| TrainEntry * STGTRAIN_getGymTrainings | ( | s32 | index | ) |
| TrainEntry * STGTRAIN_findGymTraining | ( | s32 | index, |
| s32 | id | ||
| ) |
| s32 STGTRAIN_intensityCosts[] |
the points each intensity of a training costs
Definition at line 245 of file files.c.
Referenced by STGTRAIN_answerToTrain(), and STGTRAIN_pickIntensity().
| TrainEntry STGTRAIN_gymTrainings[14][16] |
The trainings of each gym level, by STGTRAIN_findGymTraining: {id, stat, other}, 0 ends.
Definition at line 249 of file files.c.
Referenced by STGTRAIN_findGymTraining(), and STGTRAIN_getGymTrainings().
| TrainInfo STGTRAIN_trainings[] |
The trainings: their name and description in the text file, and the frames of their icon.
| TrainFile STGTRAIN_files[] |
the discs number their files differently
Definition at line 394 of file files.c.
Referenced by STGTRAIN_freeFile(), STGTRAIN_getFile(), STGTRAIN_getFileEffectSameDepth(), STGTRAIN_getFileId(), STGTRAIN_getFilePos(), and STGTRAIN_requestFile().
| TrainState STGTRAIN_state |
Definition at line 422 of file files.c.
Referenced by STGTRAIN_applyTry(), STGTRAIN_askToTrain(), STGTRAIN_closeIntensities(), STGTRAIN_closeNotice(), STGTRAIN_closePartnerPick(), STGTRAIN_closeQuestion(), STGTRAIN_drawMenu(), STGTRAIN_drawSession(), STGTRAIN_endSession(), STGTRAIN_freeFile(), STGTRAIN_getAnim(), STGTRAIN_getBank(), STGTRAIN_getBankOffset(), STGTRAIN_getBankSize(), STGTRAIN_getFile(), STGTRAIN_getGymTrainings(), STGTRAIN_loadSet(), STGTRAIN_openBattleStats(), STGTRAIN_openParty(), STGTRAIN_openTp(), STGTRAIN_partnerPickClosed(), STGTRAIN_pickTraining(), STGTRAIN_playTraining(), STGTRAIN_playTrainingEnd(), STGTRAIN_readSet(), STGTRAIN_readSetAnims(), STGTRAIN_readSetBank(), STGTRAIN_readSetImages(), STGTRAIN_requestFile(), STGTRAIN_runMenu(), STGTRAIN_runScreen(), STGTRAIN_runSession(), STGTRAIN_runTraining(), STGTRAIN_screenClosed(), STGTRAIN_setUpActor(), STGTRAIN_showGains(), STGTRAIN_showIntensities(), STGTRAIN_showTrainingInfo(), STGTRAIN_showTrainingName(), STGTRAIN_startBonusTry(), STGTRAIN_startClosing(), STGTRAIN_startLeaving(), STGTRAIN_startTraining(), STGTRAIN_updateActor(), STGTRAIN_updateMenu(), and STGTRAIN_updateScreen().
| TrainCursor STGTRAIN_bankCursor = { ((void *)0) } |
Definition at line 430 of file files.c.
Referenced by STGTRAIN_readSetBank().
| TrainCursor STGTRAIN_animCursor = { ((void *)0) } |
Definition at line 431 of file files.c.
Referenced by STGTRAIN_readSetAnims().
| TrainCursor STGTRAIN_imageCursor = { ((void *)0) } |
Definition at line 432 of file files.c.
Referenced by STGTRAIN_readSetImages().
| TrainCursor STGTRAIN_setCursor = { ((void *)0) } |
Definition at line 433 of file files.c.
Referenced by STGTRAIN_readSet().