14 switch (task->
state) {
GfxState GFX
GFX: the graphics state and its methods.
void drawPairSprite(StageSpritePair *task, void *arg, s32 idx)
Draws sprite idx at (x, y)
#define TASK_INIT
Tasks: every game object is a task, a heap block that starts with this header and is updated once per...
#define FIELD_LAYER_MAP
the map, its objects and characters, and the menus
s32 stepAnimationOnce(StageTileAnim *obj, AnimFrame *frames, s32 depth)
Steps OBJ's animation through FRAMES by the frame time (at most 4) and returns its frame,...
struct Layer *(* getLayer)(s32 id)
A drawing layer (GFX.funcs.createLayer): a DRAWENV with a pair of ordering tables,...
void(* addSortedCallback)()
A trap's effect over a partner it leaves at 1 HP (events 9000 to 9015 of WSTAG740 and WSTAG741,...
void(* nextState)(struct StageSpritePair *task)
void(* setState)(struct StageSpritePair *task, s32 state)
void updateSpritePair(StageSpritePair *task)
Plays the two sprites of a StageSpritePair once with the stage's updateSpritePairFrames,...
AnimFrame * updateSpritePairFrames[]
AnimFrame updateSpritePairFrames_1[]
AnimFrame updateSpritePairFrames_0[]