Field object scripts: the ones the engine starts itself, and the command table. More...
Go to the source code of this file.
Variables | |
| const s32 | gObjectDispatch_DefaultScript [] |
| The script FieldObject_Create gives every new object: it does nothing and returns to the idle script. | |
| const s32 | gObjectDispatch_KeyCheckScript [] |
| Runs SC_KEY_COUNT every frame; started by ObjectDispatch_StartKeyCheck. | |
| const s32 | gObjectDispatch_KeysScript [] |
| Started by ObjectDispatch_StartMoveByKeys. | |
| const s32 | gObjectDispatch_PlayerScript [] |
| Started by ObjectDispatch_StartPlayerControl. | |
| const s32 | gObjectDispatch_WorldMapScript [] |
| Started by ObjectDispatch_StartWorldMapControl. | |
| const s32 | gObjectDispatch_CameraScript [] |
| Started by ObjectDispatch_StartCamera. | |
| const s32 | gObjectDispatch_ApproachLinkScript [] |
| Started by ObjectDispatch_StartApproachLink. | |
| const s32 | gObjectDispatch_EndScript [] |
| The idle script ObjectDispatch_StartIdle gives an object. | |
| const ScriptCommand | gScriptObject_CommandTable [47] |
| The handler for each script command number; 0x24 onwards act as SC_END. | |
Field object scripts: the ones the engine starts itself, and the command table.
Definition in file object_script.c.
| const s32 gObjectDispatch_DefaultScript[] |
The script FieldObject_Create gives every new object: it does nothing and returns to the idle script.
Definition at line 14 of file object_script.c.
Referenced by FieldObject_Create().
| const s32 gObjectDispatch_KeyCheckScript[] |
Runs SC_KEY_COUNT every frame; started by ObjectDispatch_StartKeyCheck.
This and the scripts below each repeat one command every frame.
Definition at line 20 of file object_script.c.
Referenced by ObjectDispatch_StartKeyCheck().
| const s32 gObjectDispatch_KeysScript[] |
Started by ObjectDispatch_StartMoveByKeys.
Definition at line 27 of file object_script.c.
Referenced by ObjectDispatch_StartMoveByKeys().
| const s32 gObjectDispatch_PlayerScript[] |
Started by ObjectDispatch_StartPlayerControl.
Definition at line 34 of file object_script.c.
Referenced by ObjectDispatch_StartPlayerControl().
| const s32 gObjectDispatch_WorldMapScript[] |
Started by ObjectDispatch_StartWorldMapControl.
Definition at line 41 of file object_script.c.
Referenced by ObjectDispatch_StartWorldMapControl().
| const s32 gObjectDispatch_CameraScript[] |
Started by ObjectDispatch_StartCamera.
Definition at line 48 of file object_script.c.
Referenced by ObjectDispatch_StartCamera().
| const s32 gObjectDispatch_ApproachLinkScript[] |
Started by ObjectDispatch_StartApproachLink.
Definition at line 55 of file object_script.c.
Referenced by ObjectDispatch_StartApproachLink().
| const s32 gObjectDispatch_EndScript[] |
The idle script ObjectDispatch_StartIdle gives an object.
Definition at line 62 of file object_script.c.
Referenced by ObjectDispatch_StartIdle().
| const ScriptCommand gScriptObject_CommandTable[47] |
The handler for each script command number; 0x24 onwards act as SC_END.
Commands receive the object's interpreter view.
Object_UpdateAll (update.c) and Object_UpdateAllThumb (object_motion.c) call through it.
The handler for each script command number; 0x24 onwards act as SC_END.
A nonzero result continues its script this frame; zero yields until the next frame.
Definition at line 69 of file object_script.c.
Referenced by Object_UpdateAll(), and Object_UpdateAllThumb().