include/scene/flame_throwers.h
The state of the Mars Lighthouse rooms' flame throwers and of the fireballs that knock the leader back, or carry him along on a ride, when they hit him; it is kept in the inventory snapshot's spare space.
Included by mars_lighthouse_entrance.c, mars_lighthouse_hall.c, mars_lighthouse_star_room.c and mars_lighthouse_towers.c.
Structures
| Name | Description | |
|---|---|---|
struct | FLAME_THROWER | One of the state's four flame throwers. |
struct | KNOCK_BACK_DIRECTION | The way the leader was last knocked back along x and z, 1 or -1; the other axis is 0. |
struct | FLAME_STOP | An actor the flames check against as they move: a flame stops beside it unless it is marked blocked, which sets the state's own blocked flag. |
struct | FLAME_HIT_STATE | The flame throwers' state: the hit counter, what a flame met, the flame throwers and the actors they stop at, and the fireball carrying the leader. |
Macros
| Name | Description | |
|---|---|---|
#define | FLAME_THROWER_REACH_BITS 0xf | A flame thrower's packed state: the flame's reach in the low four bits, FLAME_THROWER_FLAGS in the next four. |
#define | FLAME_THROWER_FLAG_BITS 0xf0 | |
#define | FLAME_THROWERS_STATE | The flame-hit state, in the inventory snapshot's spare space. |
#define | KNOCK_BACK fdLeaderKnockBack | The knock-back (shared/leader_knock_back.c) as the four Mars Lighthouse rooms that keep a copy name it, and what it calls: the fall damage the leader takes, the update hook that blinks him while he is thrown, his animation, the terrain of his metatile, and the collision check a step ahead. |
#define | KNOCK_BACK_TAKE_DAMAGE gmPartyTakeFallDamage | |
#define | KNOCK_BACK_BLINK fdActorBlink | |
#define | KNOCK_BACK_SET_ANIMATION fdActorSelectAnimation | |
#define | KNOCK_BACK_METATILE_ATTRIBUTE fdMapGridGetTerrainKindOrBumpAt | |
#define | KNOCK_BACK_CHECK_COLLISION fdMapGridCheckCollision |
Enumerations
| Name | Description | |
|---|---|---|
enum | FLAME_THROWER_FLAGS { FLAME_FORWARD, FLAME_EAST, FLAME_WEST, FLAME_BACKWARD, FLAME … } | A flame thrower's flags (the flame thrower tables): the flame's reach in the low four bits, and which flame it sends, or none. |
enum | anonymous enum { STEP_CUE_FLAME_HIT, STEP_CUE_FIREBALL_HIT } | The step cues the flame throwers raise: a flame that hits the leader raises the cue scFlameThrowersStart is given, a rolling fireball that reaches him two more. |
Description
The state of the Mars Lighthouse rooms' flame throwers and of the fireballs that knock the leader back, or carry him along on a ride, when they hit him; it is kept in the inventory snapshot's spare space.
Macros in detail
FLAME_THROWER_REACH_BITS
#define FLAME_THROWER_REACH_BITS 0xf
A flame thrower's packed state: the flame's reach in the low four bits,
FLAME_THROWER_FLAGS in the next four.
Referenced by scFlameThrowerSet() and scFlameThrowersStart().
Definition at line 28 of file flame_throwers.h.
FLAME_THROWER_FLAG_BITS
#define FLAME_THROWER_FLAG_BITS 0xf0
Referenced by scFlameThrowerSet(), scFlameThrowersPuff() and scFlameThrowersStart().
Definition at line 29 of file flame_throwers.h.
FLAME_THROWERS_STATE
#define FLAME_THROWERS_STATE
The flame-hit state, in the inventory snapshot's spare space.
Referenced by KNOCK_BACK(), scActorRollAndCrumble(), scActorScatterCrumbs(), scFireballCarryLeader(), scFireballCarryLeaderIfHit(), scFlameThrowerGetFlags(), scFlameThrowerIsActive(), scFlameThrowersAdvanceCounter(), scFlameThrowersCreate(), scFlameThrowerSet(), scFlameThrowerSetActive(), scFlameThrowerSetPuffsOffScreen(), scFlameThrowersGetCounter(), scFlameThrowersHasHitLeader(), scFlameThrowersPuff(), scFlameThrowersRelease(), scFlameThrowersReleaseFlame(), scFlameThrowersSetMode(), scFlameThrowersSetStop(), scFlameThrowersStart(), scFlameUpdateForward(), scFlameUpdateSideways(), scMarsLighthouseEntranceKnockBackIfHit(), scMarsLighthouseEntranceRideFireball(), scMarsLighthouseEntranceRideFireballIfHit(), scMarsLighthouseHallKnockBackIfHit(), scMarsLighthouseStarRoomIsLeaderHit(), scMarsLighthouseStarRoomKnockBackIfHit() and scMarsLighthouseTowersKnockBackIfHit().
Definition at line 102 of file flame_throwers.h.
KNOCK_BACK
#define KNOCK_BACK fdLeaderKnockBack
The knock-back (shared/leader_knock_back.c) as the four Mars Lighthouse rooms
that keep a copy name it, and what it calls: the fall damage the leader
takes, the update hook that blinks him while he is thrown, his animation, the
terrain of his metatile, and the collision check a step ahead.
Definition at line 109 of file flame_throwers.h.
KNOCK_BACK_TAKE_DAMAGE
#define KNOCK_BACK_TAKE_DAMAGE gmPartyTakeFallDamage
Referenced by KNOCK_BACK().
Definition at line 110 of file flame_throwers.h.
KNOCK_BACK_BLINK
#define KNOCK_BACK_BLINK fdActorBlink
Referenced by KNOCK_BACK().
Definition at line 111 of file flame_throwers.h.
KNOCK_BACK_SET_ANIMATION
#define KNOCK_BACK_SET_ANIMATION fdActorSelectAnimation
Referenced by KNOCK_BACK().
Definition at line 112 of file flame_throwers.h.
KNOCK_BACK_METATILE_ATTRIBUTE
#define KNOCK_BACK_METATILE_ATTRIBUTE fdMapGridGetTerrainKindOrBumpAt
Referenced by KNOCK_BACK().
Definition at line 113 of file flame_throwers.h.
KNOCK_BACK_CHECK_COLLISION
#define KNOCK_BACK_CHECK_COLLISION fdMapGridCheckCollision
Referenced by KNOCK_BACK().
Definition at line 114 of file flame_throwers.h.
Enumerations in detail
FLAME_THROWER_FLAGS
enum FLAME_THROWER_FLAGS
A flame thrower's flags (the flame thrower tables): the flame's reach in the low four bits, and which flame it sends, or none.
| Enumerator | Value | Description |
|---|---|---|
FLAME_FORWARD | 0x00 | scFlameThrowerSendForward |
FLAME_EAST | 0x10 | scFlameThrowerSendEast |
FLAME_WEST | 0x20 | scFlameThrowerSendWest |
FLAME_BACKWARD | 0x30 | scFlameThrowerSendBackward |
FLAME_THROWER_DRY | 0x40 | nothing comes out of it |
FLAME_SPARK | 0x80 | scFlameThrowerSendSpark |
Definition at line 16 of file flame_throwers.h.
anonymous enum
enum { STEP_CUE_FLAME_HIT, STEP_CUE_FIREBALL_HIT }
The step cues the flame throwers raise: a flame that hits the leader raises
the cue scFlameThrowersStart is given, a rolling fireball that reaches him
two more.
| Enumerator | Value | Description |
|---|---|---|
STEP_CUE_FLAME_HIT | 88 | |
STEP_CUE_FIREBALL_HIT | STEP_CUE_FLAME_HIT + 2 |
Definition at line 95 of file flame_throwers.h.