include/field/actor.h
Actors, their flags and the screen transition styles.
#include "field/field_coordinate.h"#include "fixed_math.h"#include "types.h"#include "static_assert.h"
Included by battle_internal.h, battle_effect_internal.h, actor_scripts.c, actor_step_angle.c, field_engine_internal.h, field_internal.h, field_psynergy_internal.h, script_commands_internal.h, title_intro.c, actor_find_at_metatile.c, actor_wait_until_landed.c, cracked_tile_mask.c, world_map_objects.c, window_internal.h, field.h, field_engine.h, field_script.h, script_commands.h, jupiter_lighthouse_aerie.h, mars_lighthouse_shared.h, trial_road.h and tundaria_tower.h.
Structures
| Name | Description | |
|---|---|---|
struct | ACTOR | An actor on the field: its script, position, motion toward a target, sprites and update hook. |
Macros
| Name | Description | |
|---|---|---|
#define | SCENE_TRANSITION (style, variant) ((style) << 8 | (variant)) | A scene transition as FIELD_STATE.transition holds it. |
#define | SCENE_TRANSITION_STYLE (transition) (((transition) >> 8) & 0xff) | The two bytes of a SCENE_TRANSITION: its SCREEN_TRANSITION_STYLE, and the variant that style reads. |
#define | SCENE_TRANSITION_VARIANT (transition) ((transition) & 0xff) | |
#define | ACTOR_NO_TARGET ((Sint32)0x80000000) | ACTOR.targetX, targetY and targetZ when it has no movement target. |
#define | ACTOR_LIST_END 65535 | The actor id that ends a list of actors, or of rows that start with one. |
#define | ACTOR_COUNT 64 | The actors of RamHeapSlots->actors. |
#define | SET_ACTOR_POSITION (p, fixedX, fixedY, fixedZ) | Sets an actor's position in one statement, as SET_POSITION does for a particle. |
Typedefs
| Name | Description | |
|---|---|---|
typedef void (* | OBJECT_UPDATE )(union FIELD_OBJECT *object); | An actor's per-tick hook, called with the actor (fdActorUpdateAllOnField). |
Enumerations
| Name | Description | |
|---|---|---|
enum | SCREEN_TRANSITION_STYLE { TRANSITION_FADE, TRANSITION_BACKDROP_FADE, TRANSITION_WINDOW … } | How a scene fades in and out: SCENE_TRANSITION's high byte, which fdScreenTransitionStart and fdScreenTransitionFinish read. |
enum | CENTRE_LINE_VARIANT { CENTRE_LINE_STEADY, CENTRE_LINE_FLICKERING } | TRANSITION_CENTRE_LINE's variants: the lines open or close steadily, or flicker every other tick as they close (fdScreenTransitionUpdateFromCenter). |
enum | ACTOR_PRIORITY_FLAG { ACTOR_PRIORITY_AUTOMATIC, ACTOR_PRIORITY_UNDERFOOT, ACTOR_PR … } | ACTOR.priorityFlags bits. |
enum | ACTOR_MOTION_FLAG { ACTOR_FOLLOWS_TERRAIN, ACTOR_FALLS, ACTOR_FLOATS, ACTOR_FLOA … } | ACTOR.motionFlags bits. |
enum | ACTOR_COLLISION_FLAG { ACTOR_SOLID, ACTOR_PUSHABLE, ACTOR_NEAR_TALK, ACTOR_NOT_TARG … } | ACTOR.collisionFlags bits. |
enum | ACTOR_STEERING_FLAG { ACTOR_FACES_MOTION } | ACTOR.steeringFlags bits. |
enum | anonymous enum { ACTOR_SNAPSHOT_CAPACITY, ACTOR_SNAPSHOT_EMPTY } | The actor snapshot (SnapshotObjects), as The Broken Seal's ActorSnapshot: how many actors it keeps, and the slot id that marks an empty place and ends its list. |
enum | ARRIVAL_AXIS { ARRIVAL_AXIS_NONE, ARRIVAL_AXIS_X, ARRIVAL_AXIS_Y, ARRIVAL_A … } | The axis a moving actor watches to know it has arrived at its target: the one along which it has the furthest to go. |
enum | ACTOR_SPR_CACHE_FLAG { ACTOR_KEEP_SPRITE_VRAM, ACTOR_COMPOSE_OFF_SCREEN } | ACTOR.retainSpriteCache's bits, read by fdActorSystemPlaceSprites. |
Functions
| Name | Description | |
|---|---|---|
void | fdActorMoveHalfwayTowardTarget (ACTOR *actor) | Per-tick update: halves the actor's distance to its watched actor along x, y and z. |
void | fdActorMoveHalfwayTowardTargetCopy (ACTOR *actor) | Moves the actor halfway to the actor it watches; a copy of fdActorMoveHalfwayTowardTarget. |
void | fdActorStartIdleStub (ACTOR *) | |
void | fdActorSetMoveTargetStub (ACTOR *, Sint32, Sint32, Sint32) | |
void | fdActorWaitForMoveStub (ACTOR *) | Waits up to 600 ticks for an actor to reach its movement target. |
void | fdActorSelectAnimationStub (ACTOR *, Sint32) | Switches every sprite of an actor, one or a group of four, to an animation. |
void | fdActorWaitForScriptEndStub (ACTOR *) | |
void | scActorWaitUntilLanded (ACTOR *actor) | Waits until the actor stops rising or falling, sixty ticks at most. |
void | fdActorSetTargetPosFromMagnitudeAngle (ACTOR *actor, Sint32 magnitude, Sint32 angle) | Sends the actor toward the point magnitude away from it at angle. |
ACTOR * | scPlaceTranslucentBlackActorFX (Sint32 x, Sint32 y, Sint32 z, Sint32 type) | Creates an actor of sprite type at a 16.16 position to stand as a silhouette: at drawing priority 0, still, skipped by target searches, with no outline or shadow, all black and translucent. |
static inline void | fdActorFlagsSet (Uint8 *flags, Uint8 bits) | Sets bits in one of an actor's flag bytes. |
Variables
| Name | Description | |
|---|---|---|
extern const Sint32 | ActorLaunchScript [] | The launch script (fdActorLaunchFromLeader): waits for the actor to arrive and a tick more, stands it, then turns it a step toward the facing in its timer. |
extern const Sint32 | ActorFaceWatchedScript [] | Faces the watched actor every tick, forever. |
extern const Sint32 | ActorOffsetScript [] | The walk-by script (fdActorWalkByById): waits for the actor to arrive, then stands it in its first animation. |
extern const Uint8 | RepeatedSquashScript [] |
Description
Actors, their flags and the screen transition styles.
Macros in detail
SCENE_TRANSITION
#define SCENE_TRANSITION(style, variant) ((style) << 8 | (variant))
A scene transition as FIELD_STATE.transition holds it.
Referenced by dbIncreaseItemAndLevelRequestExit(), fdEngineRun(), fdStartEncounterTransition(), mnInnPlaySleep(), scAirsRockInsideLandInHall(), scAlhafraManorBriggsEscapes(), scAnkohlRuinsLandFromFall(), scApojiiIslandsEnterSeaOfTimeIsletHouse(), scChampaCliffCavesAskIfBriggsLearned(), scContigoInitLuckyDice(), scContigoInitShops(), scCrackedTileDropIn(), scCrackedTileFall(), scDehkanPlateauCannonDropsPoundCube(), scDehkanPlateauCannonPoundsLeaderThrough(), scDehkanPlateauInitCannon(), scDehkanPlateauInitCaves(), scDehkanPlateauInitPoundCube(), scDehkanPlateauLandFromFall(), scDehkanPlateauStepOnCrack(), scEasternAlhafraWorkersTellMayor(), scFadeInAndClearFlag(), scGabombaStatueChamberAkafubuOffersToHelp(), scGabombaStatueChamberGabombaNamesWitchDoctor(), scGabombaStatueChamberWhereIsTheOrb(), scGabombaStatueEndRide(), scGabombaStatueHearTheOffering(), scGabombaStatueInitEyes(), scGabombaStatueLandFromFall(), scGabombaStatueSawEnergyFlow(), scGabombaStatueSeeHowItWorks(), scGabombaStatueWatchTheChargesStick(), scGaiaRockInsideRaiseDust(), scGarohEnterOpening(), scGarohInitVillage(), scInit(), scIsletsArriveAtSecretSpot(), scIsletsArriveBackAtIsland(), scIsletsRideBackToIsland(), scIsletsSinkInSea(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthouseWeBeatThem(), scKandoreanTempleFindTheRopeOnTheFloor(), scKandoreanTempleLandFromAbove(), scKandoreanTempleLeaveBySteam(), scKandoreanTempleMeetPoi(), scKandoreanTemplePassTheTest(), scKandoreanTempleRideEastLiftDown(), scKandoreanTempleRideWestLiftDown() and 44 more.
Definition at line 32 of file actor.h.
SCENE_TRANSITION_STYLE
#define SCENE_TRANSITION_STYLE(transition) (((transition) >> 8) & 0xff)
The two bytes of a SCENE_TRANSITION: its SCREEN_TRANSITION_STYLE, and the
variant that style reads.
Referenced by fdScreenTransitionFinish() and fdScreenTransitionStart().
Definition at line 35 of file actor.h.
SCENE_TRANSITION_VARIANT
#define SCENE_TRANSITION_VARIANT(transition) ((transition) & 0xff)
Referenced by fdScreenTransitionFinish() and fdScreenTransitionStart().
Definition at line 36 of file actor.h.
ACTOR_NO_TARGET
#define ACTOR_NO_TARGET ((Sint32)0x80000000)
ACTOR.targetX, targetY and targetZ when it has no movement target.
Referenced by btMotionApplyPairMidpoint(), fdActorClearDestinationAndStand(), fdActorCrossRope(), fdActorCrossTightrope(), fdActorFlyOnWorldMap(), fdActorIsTargetUnset(), fdActorMoveAsSand(), fdActorMoveAsSandOnWorldMap(), fdActorMoveByKeys(), fdActorMoveOnWorldMap(), fdActorResetTargetsAndVelocity(), fdActorSailOnMap(), fdActorSailOnWorldMap(), fdActorScriptWaitForArrival(), fdActorSetMoveTarget(), fdActorSetPosAndResetMotion(), fdActorUpdateAllMotion(), fdActorUpdateAllOnField(), fdActorUpdateHoverControl(), fdActorUpdatePlayerControl(), fdActorUpdateWalkingControl(), fdCameraFollowLeaderInBounds(), fdCameraFollowWatchedInBounds(), fdDjinnRunBattleStartHop(), fdExitPrepareActorAnimation(), fdExitPrepareAnimation(), fdLeaderSlideOnIce(), fdLeaderSlideOnIceAhead(), fdLeaderStopMoving(), fdMindReadUpdateCrescent(), fdPsynergyRetreat(), fdTreasureSpotMoveLeaderAway(), fdUpdateWalking(), scActorRollAndCrumble(), scActorStopWhereItStands(), scCavernsPlaceAngaraBlocks(), scGondowanCliffsLeapStumpIntoWater(), scJupiterLighthouseCastTheJupiterStar(), scLeaderSlideOnIceFromEdge(), scMagmaRockInsidePushBlockOnto(), scMagmaRockLandLeader(), scPushedActorAdvancePair(), scTaopoSwampTremorPillar(), scYallamHasArrived() and scYampiDesertHasArrived().
Definition at line 39 of file actor.h.
ACTOR_LIST_END
#define ACTOR_LIST_END 65535
The actor id that ends a list of actors, or of rows that start with one.
Referenced by AirsRockInsidePairedStakesStakes, AlhafranCavePoundStakes, DehkanPlateauCannonCrumblingPillar, DehkanPlateauCannonStakes, DehkanPlateauEntranceCrumblingPillars, DehkanPlateauEntranceStakes, DehkanPlateauPillarsBlocks, DehkanPlateauPillarsCrumblingPillars, DehkanPlateauPillarsStakes, DehkanPlateauPoundCubeStakes, DehkanPlateauTightropesCrumblingPillars, DehkanPlateauTightropesPillars, DehkanPlateauTightropesStakes, DehkanPlateauTightropesVinePillars, EasternAlhafraPoundStakes, EasternAlhafraUnusedActorList, fdActorLiftTargetBlock(), fdActorPlaceBlocks(), fdFlagBlockApplyFlags(), fdFlagBlockPlaceAll(), fdFlagBlockPlaceAllMarkingEdges(), fdPoundSinkTarget(), MadraCatacombsPuddles, MadraCatacombsPushedPillar, MadraCatacombsVinePillar, MarsLighthouseBalmIceCones, MarsLighthouseDragonFaceIceCones, MarsLighthouseEntranceIceCones, MarsLighthouseIceShaftIceCones, scActorsSetMetatilesOpen(), scAirsRockInsidePlaceStakes(), scAirsRockInsideStepOntoStake(), scBlocksMarkMetatiles(), scCavernsPlaceAngaraBlocks(), scCavernsStartMovingAngaraBlock(), scCrumblingPillarCollapse(), scCrumblingPillarPlace(), scCrumblingPillarPlaceWithStandIn(), scCrumblingPillarStep(), scCrumblingPillarStepWithStandIn(), scIzumoRuinsPlaceStakes(), scLeaderCheckCrumblingStep(), scMagmaRockCrumblePillar(), scMagmaRockInsideCrumblePillar(), scMagmaRockInsideRaiseActorMetatiles(), scMagmaRockInsideRestoreCrumblingPillars(), scMagmaRockInsideRestorePillars(), scMagmaRockInsideStepOnTrap(), scMagmaRockLookUpMetatileStatue(), scMagmaRockRestoreCrumblingPillars() and 23 more.
Definition at line 42 of file actor.h.
ACTOR_COUNT
#define ACTOR_COUNT 64
The actors of RamHeapSlots->actors.
Referenced by fdActorCheckBlocked(), fdActorFindFree(), fdActorFindNearestFacingTarget(), fdActorFlyOnWorldMap(), fdActorMoveWithCarriers(), fdActorSailOnMap(), fdActorScriptCheckOverlap(), fdActorScriptFindOverlappingActor(), fdActorSetRevealSpriteColor(), fdActorSystemInit(), fdActorSystemPlaceSprites(), fdActorSystemProjectSprites(), fdActorUpdateAllOnField(), fdActorUpdateHoverControl(), fdActorUpdatePlayerControl(), fdActorUpdateWalkingControl(), fdClimbDown(), fdClimbUp(), fdItemDisplayShowItemInFront(), fdLeaderSlideOnIce(), fdLeaderSlideOnIceAhead(), fdTryJumpForward(), KNOCK_BACK(), scGarohOpenDoorAndEnter() and scLeaderSlideOnIceFromEdge().
Definition at line 45 of file actor.h.
SET_ACTOR_POSITION
#define SET_ACTOR_POSITION(p, fixedX, fixedY, fixedZ)
Sets an actor's position in one statement, as SET_POSITION does for a
particle.
Referenced by btEffectRunCharon(), fdActorDescendInWhirlwind(), fdActorMoveWithCarriers(), fdActorResetForLeader(), fdActorSetMoveTarget(), fdActorUpdateAllMotion(), fdActorUpdateAllOnField(), fdCameraFollow(), fdCameraFollowActor(), fdCameraFollowLeaderInBounds(), fdCameraFollowWatchedInBounds(), fdCameraMoveWithinMapBounds(), fdCycloneCarryLeader(), fdCycloneLiftLeader(), fdEffectRunSparkEmitter(), fdEffectUpdateOrbitingParticleLeft(), fdEffectUpdateOrbitingParticleRight(), fdPsynergyCatch(), fdPsynergyDouse(), fdPsynergyGrowFromCaster(), fdPsynergyHalt(), fdPsynergyShrinkToCaster(), fdPsynergyUpdateLash(), fdPsynergyWhirlwind(), fdScoopDigUpItem(), fdScoopDropFromHand(), fdViewMoveSwing(), scActorPark(), scAirsRockInsideFollowGust(), scAnemosInnerSanctumCircleOrb(), scInit(), scJupiterLighthouseCircleTheBeam(), scJupiterLighthouseCircleUpTheBeam(), scJupiterLighthouseRestartSpark(), scMagmaRockBlastWayIn(), scMagmaRockBurstCrackedPillar(), scMagmaRockInsideBurstCrackedPillar(), scShrineOfTheSeaGodKeepFlameOnTorch(), scShrineOfTheSeaGodKeepWithLeader(), scTrialRoadFollowPillar() and scYallamPlaceFallenLog().
Definition at line 49 of file actor.h.
Typedefs in detail
OBJECT_UPDATE
typedef void (*OBJECT_UPDATE)(union FIELD_OBJECT *object);
An actor's per-tick hook, called with the actor (fdActorUpdateAllOnField).
Referenced by fdActorLaunchAhead(), fdActorUpdateAllOnField(), fdAvoidDropRing(), fdBattleEffectSetObjectUpdateMode(), fdDjinnRunBattleStartHop(), fdDjinnRunJupiterJoinEffect(), fdDjinnRunMarsJoinEffect(), fdDjinnRunMercuryJoinEffect(), fdDjinnRunVenusJoinEffect(), fdEffectCircleAnchor(), fdEffectRunSparkEmitter(), fdEffectSetAttached(), fdEffectSpawnDustPuff(), fdEffectUpdateOrbitingParticleLeft(), fdEffectUpdateOrbitingParticleRight(), fdPsynergyAvoid(), fdPsynergyDouse(), fdPsynergyFrost(), fdPsynergyHaltActor(), fdPsynergyPly(), fdPsynergyResumeHaltedActor(), fdPsynergyRetreat(), fdPsynergySteerPushedTarget(), fdPsynergyUpdateMindReadWave(), fdPsynergyWhirlwind(), scActorAttach(), scActorSetFlightMode(), scApojiiIslandsFatherSeesTheStone(), scAquaRockArriveFromPassage(), scAquaRockDouseSummitWaterStone(), scAquaRockDouseWaterStone(), scAquaRockEnterSparklingPassage(), scAquaRockMoaiStepAside(), scAquaRockSpawnSparkleAtRandom(), scAquaRockStartFish(), scCavernsFinishMovingAngaraBlock(), scChampaEnterDoor(), scFireballCarryLeader(), scFlameThrowerSendSpark(), scGaiaRockInsideCaskPours(), scGaiaRockInsidePlantPointsTheWay(), scInit(), scIsletsArriveBackAtIsland(), scIsletsRideBackToIsland(), scJupiterLighthousePushColumnOffTheLedge(), scJupiterLighthouseSendUpBeamLights(), scJupiterLighthouseSpawnSparks(), scJupiterLighthouseStartBeamFlicker(), scKandoreanTempleBlowSteam(), scKandoreanTempleBlowStreamSteam() and 30 more.
Definition at line 139 of file actor.h.
Enumerations in detail
SCREEN_TRANSITION_STYLE
enum SCREEN_TRANSITION_STYLE
How a scene fades in and out: SCENE_TRANSITION's high byte, which
fdScreenTransitionStart and fdScreenTransitionFinish read.
| Enumerator | Value | Description |
|---|---|---|
TRANSITION_FADE | 0 | from or to black |
TRANSITION_BACKDROP_FADE | 1 | from or to the backdrop colour |
TRANSITION_WINDOW | 2 | a window shape the variant chooses |
TRANSITION_DISSOLVE | 3 | |
TRANSITION_CENTRE_LINE | 4 | opens from or closes to centre line; variant picks how |
Definition at line 13 of file actor.h.
CENTRE_LINE_VARIANT
enum CENTRE_LINE_VARIANT
TRANSITION_CENTRE_LINE's variants: the lines open or close steadily, or
flicker every other tick as they close (fdScreenTransitionUpdateFromCenter).
| Enumerator | Value | Description |
|---|---|---|
CENTRE_LINE_STEADY | 0 | |
CENTRE_LINE_FLICKERING | 1 |
Definition at line 25 of file actor.h.
ACTOR_PRIORITY_FLAG
enum ACTOR_PRIORITY_FLAG
ACTOR.priorityFlags bits.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_PRIORITY_AUTOMATIC | 0x01 | The sprite takes its priority from the map metatile under it. |
ACTOR_PRIORITY_UNDERFOOT | 0x02 | The depth sort treats it as 320 pixels higher on the screen. |
ACTOR_PRIORITY_OVERHEAD | 0x04 | The depth sort treats it as 320 pixels lower on the screen. |
ACTOR_PRIORITY_OWN_DEPTH | 0x08 | Drawn at the depth its sceneByte holds, not its own place |
ACTOR_PRIORITY_NOT_DRAWN | 0x10 | (fdRenderApplyProjectedPlacementAtDepth). Placed nowhere, as if off screen. |
ACTOR_PRIORITY_IGNORES_RISES | 0x20 | With ACTOR_PRIORITY_AUTOMATIC, takes the priority of the metatiles under it even where the ground in front rises, which would put it behind. |
ACTOR_PRIORITY_WALKS_ON_PLATFORMS | 0x40 | The actor steps up onto platform actors a metatile below it, as the leader does onto pushed blocks and statues. |
ACTOR_PRIORITY_PLATFORM | 0x80 | Others with ACTOR_PRIORITY_WALKS_ON_PLATFORMS may stand on it. |
Definition at line 53 of file actor.h.
ACTOR_MOTION_FLAG
enum ACTOR_MOTION_FLAG
ACTOR.motionFlags bits.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FOLLOWS_TERRAIN | 0x01 | Moves with the ground height under it. |
ACTOR_FALLS | 0x02 | Falls by its gravity and bounces. |
ACTOR_FLOATS | 0x04 | Bobs up and down by its gravity. |
ACTOR_FLOATS_HIGH | 0x08 | With ACTOR_FLOATS, four times as far. |
ACTOR_KEEPS_SPEED_ON_SLOPES | 0x10 | Keeps its speed on slopes, which slow others down. |
ACTOR_MOTION_SPARE | 0x80 | Unused: nothing sets or reads it; a jump clears it with ACTOR_FOLLOWS_TERRAIN. |
ACTOR_JUMP_KEEPS_MOTION | (Uint8)~(ACTOR_FOLLOWS_TERRAIN | ACTOR_MOTION_SPARE) | The motion flags a jump keeps as the actor leaves the ground: all but ACTOR_FOLLOWS_TERRAIN and the spare bit. |
Definition at line 80 of file actor.h.
ACTOR_COLLISION_FLAG
enum ACTOR_COLLISION_FLAG
ACTOR.collisionFlags bits.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_SOLID | 0x01 | blocks other actors and the player |
ACTOR_PUSHABLE | 0x02 | the player pushes it |
ACTOR_NEAR_TALK | 0x04 | nearer to talk to |
ACTOR_NOT_TARGETED | 0x08 | never a talk or Psynergy target |
ACTOR_NEAR_PSYNERGY | 0x10 | nearer for Psynergy targets |
ACTOR_BLOCKED_BY_SOLID | 0x80 | Refuses to move into a solid actor (ACTOR.refused) |
Definition at line 99 of file actor.h.
ACTOR_STEERING_FLAG
enum ACTOR_STEERING_FLAG
ACTOR.steeringFlags bits.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FACES_MOTION | 0x01 | turns toward its velocity, 1/16 turn a tick |
Definition at line 111 of file actor.h.
anonymous enum
enum { ACTOR_SNAPSHOT_CAPACITY, ACTOR_SNAPSHOT_EMPTY }
The actor snapshot (SnapshotObjects), as The Broken Seal's ActorSnapshot: how
many actors it keeps, and the slot id that marks an empty place and ends its
list.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_SNAPSHOT_CAPACITY | 32 | actors a snapshot keeps |
ACTOR_SNAPSHOT_EMPTY | 255 | an empty slot, and the end of the list |
Definition at line 119 of file actor.h.
ARRIVAL_AXIS
enum ARRIVAL_AXIS
The axis a moving actor watches to know it has arrived at its target: the one along which it has the furthest to go.
| Enumerator | Value | Description |
|---|---|---|
ARRIVAL_AXIS_NONE | 0 | no arrival test; set again once it arrives |
ARRIVAL_AXIS_X | 16 | |
ARRIVAL_AXIS_Y | 17 | |
ARRIVAL_AXIS_Z | 18 |
Definition at line 127 of file actor.h.
ACTOR_SPR_CACHE_FLAG
enum ACTOR_SPR_CACHE_FLAG
ACTOR.retainSpriteCache's bits, read by fdActorSystemPlaceSprites.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_KEEP_SPRITE_VRAM | 0x1 | Keeps the sprite's VRAM cache entry while the field is suspended or the actor is off screen (fdActorSetItemIcon sets it). |
ACTOR_COMPOSE_OFF_SCREEN | 0x2 | Keeps composing its picture while it is off screen. |
Definition at line 142 of file actor.h.
Functions in detail
fdActorWaitForMoveStub
void fdActorWaitForMoveStub(ACTOR *)
Waits up to 600 ticks for an actor to reach its movement target.
Referenced by fdActorCenterOnColumn(), fdActorJumpDownLedge(), fdActorMoveToAndWaitById(), fdActorWaitForMoveById(), fdActorWalkByAndWaitById(), fdActorWalkToAndWaitById(), fdCameraWaitForArrival(), fdEffectGrowHandAndWait(), fdEntranceEndArrivalAnimation(), fdLeaderPushObjectAhead(), fdLeaderStepOffRope(), fdLeaderStepOffTightrope(), fdLeaderStepOntoRope(), fdLeaderStepOntoTightrope(), fdPsynergyCarry(), fdPsynergyLift(), fdPsynergyLiftOnTarget(), fdPsynergyPly(), fdPsynergySteerLiftedTarget() and fdPsynergySteerPushedTarget().
Definition at line 606 of file actor.h.
fdActorSelectAnimationStub
void fdActorSelectAnimationStub(ACTOR *, Sint32)
Switches every sprite of an actor, one or a group of four, to an animation.
Referenced by btActionRunBuild(), btAutoBattleApplyDamage(), btAutoBattleRunAttackOrItem(), btAutoBattleRunPsynergy(), btDjinnRecoveryCountDownSide(), btEffectHopBackToSpot(), btEffectRunAgingGas(), btEffectRunAstralBlast(), btEffectRunCastingImpact(), btEffectRunDeathPlunge(), btEffectRunFireDance(), btEffectRunFlashingStrike(), btEffectRunGaspFamily(), btEffectRunLeapingStrike(), btEffectRunMineBall(), btEffectRunOdyssey(), btEffectRunRagnarok(), btEffectRunRisingDragon(), btEffectRunSerac(), btEffectRunStoneJustice(), btEffectRunVolleyWithAction(), btEffectSetApproachMotion(), btEffectStartActorMotion(), btEffectStartActorMotionOutward(), btEffectStartActorMotionRandomDistance(), btMotionApplyKnockback(), btMotionApproachTarget(), btMotionCallBeast(), btMotionFlashHit(), btMotionLeapBack(), btMotionLeapToward(), btMotionRestartLeap(), btMotionSetupEscapeObject(), btObjectUpdatePose(), btPlaybackRun(), btProcessTurnEnd(), btStagingRunAttack(), btStagingRunFullScreen(), btStagingRunItem(), btStagingRunPsynergyCast(), btUnitProcessActionEnd(), fdActorAppearInWhirlwind(), fdActorCenterOnColumn(), fdActorClearDestinationAndStand(), fdActorDescendInWhirlwind(), fdActorFallOverById(), fdActorFallOverWithAnimationById(), fdActorInitSparkle(), fdActorJumpDownLedge(), fdActorLaunchFromLeader() and 89 more.
Definition at line 608 of file actor.h.
fdActorWaitForScriptEndStub
void fdActorWaitForScriptEndStub(ACTOR *)
Referenced by fdActorSetMovementTypeAndWaitById() and fdActorWaitForScriptEndById().
Definition at line 609 of file actor.h.
fdActorFlagsSet
static inline void fdActorFlagsSet(Uint8 *flags, Uint8 bits)
Sets bits in one of an actor's flag bytes.
Referenced by scMagmaRockInsideDrainLava(), scMarsLighthouseTowersMeltPuddle() and scVenusLighthouseRepelLeader().
Definition at line 623 of file actor.h.
Variables in detail
RepeatedSquashScript
extern const Uint8 RepeatedSquashScript[]
Referenced by fdActorStartRepeatedMotion().
Definition at line 620 of file actor.h.