Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
update_tile_cursors.inc.c
Go to the documentation of this file.
1/* Plays the sequences of the map objects with animations 1 to 5 */
3 StageTile *tile;
4
5 switch (task->state) {
6 case TASK_INIT:
7 default:
8 task->cursors[0].seq = 0;
9 task->cursors[0].index = 0;
11 task->cursors[1].seq = 0;
12 task->cursors[1].index = 0;
14 task->cursors[2].seq = 0;
15 task->cursors[2].index = 0;
17 task->cursors[3].seq = 0;
18 task->cursors[3].index = 0;
20 task->cursors[4].seq = 0;
21 task->cursors[4].index = 0;
23 task->nextState(task);
24 break;
25 case TASK_RUN:
26 for (tile = FIELDSTG_state.objects; tile->margin != 0; tile++) {
27 switch (tile->anim) {
28 case 1:
30 break;
31 case 2:
33 break;
34 case 3:
36 break;
37 case 4:
39 break;
40 case 5:
42 break;
43 }
44 }
45 break;
46 case TASK_DONE:
47 case TASK_KILL:
48 break;
49 }
50}
#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
FieldState FIELDSTG_state
Definition fieldstg.c:2641
void stepTileSequences(StageTile *tile, StageTileFrame **seqs, StageTileCursor *cur, s32 depth)
Plays a sequence of StageTileFrame animations on tile.
StageTile * objects
the map objects, up to the first margin 0
Definition field_map.h:446
The map objects with animations 1 to 5, each playing a sequence.
Definition stage.h:616
void(* nextState)(struct StageTileCursors *task)
Definition stage.h:617
StageTileCursor cursors[5]
Definition stage.h:618
An object of a map, which FIELDSTG draws: a record of the table at FieldState.objects,...
Definition field_map.h:208
u8 margin
how far off the view it is still drawn; 0 ends the table
Definition field_map.h:214
u8 anim
which of a stage's animations sets frame (1-3); FIELDSTG finds objects by it (its lift,...
Definition field_map.h:210
void updateTileCursors(StageTileCursors *task)
Plays the sequences of the map objects with animations 1 to 5.
StageTileFrame ** updateTileCursorsFrames[]
Defined below, after the code that uses them.
Definition wstag480.c:253