Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
update_stage_places.inc.c
Go to the documentation of this file.
1/*
2 * The update of the stage's task (startStage) in the stages that only copy
3 * the points of the place the player comes from (GAME.place and placeArg) to
4 * their triggers (FIELDSTG_state.slots), before the task moves on
5 */
6void updateStage(StageTask *task) {
7 switch (task->state) {
8 case TASK_INIT:
9 default:
11 task->nextState(task);
12 break;
13 case TASK_RUN:
14 case TASK_DONE:
15 case TASK_KILL:
16 break;
17 }
18}
void copyPlacePoints(StageSlot *slots, StagePoints **list, s32 place, s32 placeArg)
Copies the points of PLACE (with PLACEARG) in LIST to SLOTS, one each.
GameState GAME
The save data, the game mode and the methods.
Definition state.c:64
#define TASK_RUN
Definition task.h:35
#define TASK_KILL
Definition task.h:37
#define TASK_INIT
Tasks: every game object is a task, a heap block that starts with this header and is updated once per...
Definition task.h:34
#define TASK_DONE
Definition task.h:36
void updateStage()
The names every stage defines, each its own (config/<version>/stages/<stage>.txt).
FieldState FIELDSTG_state
Definition fieldstg.c:2641
StageSlot * slots
up to the first type 0
Definition field_map.h:447
u16 place
where the last warp or trigger put the player (FieldBattles.id)
Definition game_state.h:506
u16 placeArg
the place's argument, which the stage reads with it
Definition game_state.h:507
The task a stage starts (startStage), updated by its updateStage.
Definition stage.h:26
void(* nextState)(struct StageTask *task)
Definition stage.h:27
s32 state
Definition stage.h:27
StagePoints * placePoints[]
Names some stages define.
Definition wstag825.c:69