include/scene/scene_actors.h
The views of actors, sprites, maps and script state that scenes read in their own way, and actor script helpers shared across towns.
Included by scene.h.
Structures
| Name | Description | |
|---|---|---|
struct | SPR_ATTR2_HIGH | A field sprite's byte 9: the top of its first tile and its priority (OAM attribute 2), read as bit-fields. |
struct | MAP_BITS | The map state (MAP_STATE) with its ground marks as bit-fields, for rooms that set the kind of wading. |
union | SCRIPT_LINE | A script's message counter, read as a word or as its halfword (Gabomba Catacombs' centred lines). |
struct | FADE_PALETTE | The palette fade's state (heap slot paletteFade) as 256 colours. |
union | ACTOR_COORDINATE | An actor's coordinate read as its word or its low halfword, through a union so that a store to it may alias a read after it. |
union | VIEW_COORDINATE | A coordinate as the scenes' actor views read it: FIELD_COORDINATE's layout as a union, whose members may alias anything. |
struct | BOBBING_MARKER | The World Map's Echo (scWorldMapCircleEcho), which circles and bobs where it waits: ACTOR with its timer and userValue words named. |
struct | YAMPI_DESERT_VISUAL | A field sprite (FIELD_SPR) read a byte at a time, as Yampi Desert's scorpion sets its colour mode and priority and loads its tiles. |
Macros
| Name | Description | |
|---|---|---|
#define | fdActorAnimateThenWait (id, animation, ticks) | Plays an actor's animation and lets ticks pass before the script goes on. |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { CHILD_SEES_CHILD_RANGE, CHILD_SEES_LEADER_RANGE, CHILD_WALKS … } | How near, in pixels, the two walking children of Lemuria and of Contigo heed: the other child they face, the leader they face, and the leader come so near that they walk on (scLemuriaNoticeLeader, scContigoPauseWhenFaced). |
Description
The views of actors, sprites, maps and script state that scenes read in their own way, and actor script helpers shared across towns.
Macros in detail
fdActorAnimateThenWait
#define fdActorAnimateThenWait(id, animation, ticks)
Plays an actor's animation and lets ticks pass before the script goes on.
Referenced by scGarohFollowWerewolfIntoCave(), scGarohMahaTellsTheLegend(), scGarohWerewolfRunsPast(), scGarohWerewolvesRevealThemselves(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseJennaJoinsTheFight(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthouseKarstAndAgatioWait(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthouseShebaJoinsTheFight(), scJupiterLighthouseWeBeatThem() and scMadraMeetKarst().
Definition at line 145 of file scene_actors.h.
Enumerations in detail
anonymous enum
enum { CHILD_SEES_CHILD_RANGE, CHILD_SEES_LEADER_RANGE, CHILD_WALKS_ON_RANGE }
How near, in pixels, the two walking children of Lemuria and of Contigo heed:
the other child they face, the leader they face, and the leader come so near
that they walk on (scLemuriaNoticeLeader, scContigoPauseWhenFaced).
| Enumerator | Value | Description |
|---|---|---|
CHILD_SEES_CHILD_RANGE | 18 | |
CHILD_SEES_LEADER_RANGE | 26 | |
CHILD_WALKS_ON_RANGE | 11 |
Definition at line 155 of file scene_actors.h.