Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
update_stage.inc.c
Go to the documentation of this file.
1/*
2 * The update of the stage's task (startStage) where it has nothing to do:
3 * the stages that have something (the events they create as its children)
4 * have their own.
5 */
6void updateStage(StageTask *task) {
7 switch (task->state) {
8 case TASK_INIT:
9 default:
10 task->nextState(task);
11 break;
12 case TASK_RUN:
13 case TASK_DONE:
14 case TASK_KILL:
15 break;
16 }
17}
#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).
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