Alchemy
Loading...
Searching...
No Matches

object_waitidle.h

Go to the documentation of this file.
1#include "types.h"
2#include "field_obj.h"
3#include "field_event.h"
4
5// Babi Lighthouse and Venus Lighthouse.
6
7/// Waits until the object stops rising or falling, a second at most.
8static void OverlayObject_WaitUntilIdle(struct FieldActor *obj) {
9 s32 cnt;
10 s32 busy;
11
12 cnt = 60;
13 while (cnt != 0) {
15 busy = obj->velocityY;
16 cnt--;
17 if (busy == 0)
18 break;
19 }
20}
The scene script layer: the engine services a scene's events call, declared once (Engine_EventBegin,...
Field objects and actors, and the scene transition styles.
static void OverlayObject_WaitUntilIdle(struct FieldActor *obj)
Waits until the object stops rising or falling, a second at most.
void Engine_TaskWait()
A field actor: a person or thing on the field with a position, motion toward a target,...
Definition field_obj.h:30
s32 velocityY
16.16 fixed-point pixels per frame
Definition field_obj.h:53
The integer types, TRUE, UNUSED and the fixed-address macros.
signed int s32
Definition types.h:14