include/scene/pushed_actor.h
The packed push step the scenes' push tables are written in, how many kinds of thing they push, and the target a push works out before rolling.
Included by eastern_alhafra.c, islets.c, jupiter_lighthouse_left_tower_lower.c, jupiter_lighthouse_side_halls.c, magma_rock.c, magma_rock_inside.c, mars_lighthouse_towers.c, venus_lighthouse.c and yampi_desert_cave.c.
Structures
| Name | Description | |
|---|---|---|
struct | PUSH_TARGET | A push, as scPushTargetFindStop works it out: where the pushed actor comes to rest, how big it is and which actor it is. |
Macros
| Name | Description | |
|---|---|---|
#define | PUSH_STEP (x, z) (((Uint32)(x) << 16) | ((Uint32)(z) & 0xffff)) | One step of the leader as he pushes, packed as one word: x pixels in the upper halfword, z in the lower. |
#define | PUSH_STEP_X (step) ((Sint32)(step) >> 16) | A PUSH_STEP's x, in pixels. |
#define | PUSH_STEP_Z (step) ((Sint16)(step)) | A PUSH_STEP's z, in pixels. |
#define | PUSH_KINDS 6 | The kinds of thing the leader can push, each with its rectangle: the rows of a scene's PushKinds and PushRectangles, a log, a pipe and a fallen column, each lying west to east and north to south. |
Description
The packed push step the scenes' push tables are written in, how many kinds of thing they push, and the target a push works out before rolling.
Macros in detail
PUSH_STEP
#define PUSH_STEP(x, z) (((Uint32)(x) << 16) | ((Uint32)(z) & 0xffff))
One step of the leader as he pushes, packed as one word: x pixels in the upper halfword, z in the lower. Packed through Uint32, so a negative step is its two's-complement bits.
Referenced by PushLeaderSteps.
Definition at line 14 of file pushed_actor.h.
PUSH_STEP_X
#define PUSH_STEP_X(step) ((Sint32)(step) >> 16)
A PUSH_STEP's x, in pixels.
Referenced by scPushTargetFindAhead(), scPushTargetPush(), scYampiDesertCaveFindPushedLog() and scYampiDesertCavePushLog().
Definition at line 16 of file pushed_actor.h.
PUSH_STEP_Z
#define PUSH_STEP_Z(step) ((Sint16)(step))
A PUSH_STEP's z, in pixels.
Referenced by scPushTargetFindAhead(), scPushTargetPush(), scYampiDesertCaveFindPushedLog() and scYampiDesertCavePushLog().
Definition at line 18 of file pushed_actor.h.
PUSH_KINDS
#define PUSH_KINDS 6
The kinds of thing the leader can push, each with its rectangle: the rows of
a scene's PushKinds and PushRectangles, a log, a pipe and a fallen column,
each lying west to east and north to south.
Referenced by PushKinds, scActorStopAtPushTarget(), scPushTargetFillRectangle(), scPushTargetFindAhead(), scYampiDesertCaveFindPushedLog(), scYampiDesertCaveSetLogMetatiles() and scYampiDesertCaveStopLeaderAtLog().
Definition at line 22 of file pushed_actor.h.