src/field/actor_script.c
Actor scripts: the ones the field starts itself, and the command table.
Variables
| Name | Description | |
|---|---|---|
const Sint32 | ActorDefaultScript [] | The script fdActorCreate gives every new actor: it does nothing and returns to the idle script. |
const Sint32 | ActorKeyCheckScript [] | Runs SC_CHECK_KEYS every tick; started by fdActorStartKeyCheck. |
const Sint32 | ActorKeysScript [] | |
const Sint32 | ActorPlayerScript [] | |
const Sint32 | ActorWorldMapScript [] | |
const Sint32 | ActorCameraScript [] | |
const Sint32 | ActorApproachWatchedScript [] | |
const Sint32 | ActorIdleScript [] | The idle script fdActorStartIdle gives an actor. |
const SCRIPT_COMMAND | ActorScriptCommandTable [47] | The handler for each script command number; the numbers from SCRIPT_COMMAND_COUNT on act as SC_END. |
Description
Actor scripts: the ones the field starts itself, and the command table.
Variables in detail
ActorDefaultScript
const Sint32 ActorDefaultScript[]
The script fdActorCreate gives every new actor: it does nothing and returns
to the idle script.
References Sint32.
Referenced by fdActorCreate().
Definition at line 8 of file actor_script.c.
ActorKeyCheckScript
const Sint32 ActorKeyCheckScript[]
Runs SC_CHECK_KEYS every tick; started by fdActorStartKeyCheck. This and the
scripts below each repeat one command every tick.
References Sint32.
Referenced by fdActorStartKeyCheck().
Definition at line 14 of file actor_script.c.
ActorKeysScript
const Sint32 ActorKeysScript[]
References Sint32.
Referenced by fdActorStartMoveByKeys().
Definition at line 20 of file actor_script.c.
ActorPlayerScript
const Sint32 ActorPlayerScript[]
References Sint32.
Referenced by fdActorStartPlayerControl().
Definition at line 26 of file actor_script.c.
ActorWorldMapScript
const Sint32 ActorWorldMapScript[]
References Sint32.
Referenced by fdActorStartWorldMapControl().
Definition at line 32 of file actor_script.c.
ActorCameraScript
const Sint32 ActorCameraScript[]
References Sint32.
Referenced by fdActorStartCamera().
Definition at line 38 of file actor_script.c.
ActorApproachWatchedScript
const Sint32 ActorApproachWatchedScript[]
References Sint32.
Referenced by fdActorStartApproachWatched().
Definition at line 44 of file actor_script.c.
ActorIdleScript
const Sint32 ActorIdleScript[]
The idle script fdActorStartIdle gives an actor.
References Sint32.
Referenced by fdActorStartIdle().
Definition at line 51 of file actor_script.c.
ActorScriptCommandTable
const SCRIPT_COMMAND ActorScriptCommandTable[47]
The handler for each script command number; the numbers from
SCRIPT_COMMAND_COUNT on act as SC_END.
References fdActorApproachWatchedActor(), fdActorMoveByKeys(), fdActorMoveOnWorldMap(), fdActorScriptApplyOperandAdd(), fdActorScriptApplyOperandCompare(), fdActorScriptApplyOperandSet(), fdActorScriptCheckKeys(), fdActorScriptClearFlagAndTest(), fdActorScriptEnd(), fdActorScriptFaceWatched(), fdActorScriptHideSprites(), fdActorScriptInvokeCallback(), fdActorScriptJumpIfFalse(), fdActorScriptJumpIfTrue(), fdActorScriptJumpToLabel(), fdActorScriptMove(), fdActorScriptMoveBy(), fdActorScriptMoveLocal(), fdActorScriptMoveToWatched(), fdActorScriptNoOperation(), fdActorScriptPlaySound(), fdActorScriptRelease(), fdActorScriptRepeatOrJump(), fdActorScriptSetAnimation(), fdActorScriptSetBase(), fdActorScriptSetFlagAndTest(), fdActorScriptSetPosAndResetMotion(), fdActorScriptShowSprite(), fdActorScriptTestFlag(), fdActorScriptToggleFlagAndTest(), fdActorScriptWait(), fdActorScriptWaitForArrival(), fdActorScriptWanderNearHome(), fdActorUpdatePlayerControl(), fdActorWander() and fdCameraFollowLeaderInBounds().
Referenced by fdActorUpdateAll() and fdActorUpdateAllOnField().
Definition at line 57 of file actor_script.c.