include/field/field_functions.h
The field module's functions, declared in the order of its stub table, without the tables and types field.h brings in. More…
Included by world_map_lines.c and field.h.
Functions
| Name | Description | |
|---|---|---|
void | fdActorSystemConfigure (Sint32 mode) | The field module's functions in the order of its stub table (src/field/stubs.s). |
void | fdRenderApplyProjectedPlacement (struct SPR *sprite, const struct SPR_PLACEMENT *pos, const struct SPR_SCALE *scale, Sint32 facing) | Places a sprite for the scrolling camera and queues it for drawing. |
void | fdRenderPlaceProjectedSprite (struct SPR *sprite, Sint32 *point, Sint32 *scale, Sint32 facing, Sint32 depth) | Places a sprite at 3D point for the fixed camera and queues it for drawing: projected to the screen and scaled by its distance (unless useOwnScale keeps its own scale), with an affine matrix as needed and its shadow on the ground below. depth 0 sorts it by distance; any other value is its draw slot. |
Sint32 | fdSpriteResetAnimations (struct SPR *sprite) | Resets each sprite animation of a sprite from its animation's metadata: its facing kind, pictures, scripts and codec, with no picture shown and no script running. |
Sint32 | fdSpriteStartAnimation (struct SPR *sprite, Sint32 animation) | Starts animation (its SPRITE_ANIMATION_INDEX_MASK bits) on every sprite animation of a sprite, unless the sprite plays it already; SPRITE_ANIMATION_KEEP_PLACE keeps each one's place and timer. |
Sint32 | fdSpriteSetAnimationTimers (struct SPR *sprite, Sint32 ticks) | Sets each playing sprite animation's timer to the given duration in ticks. |
struct SPR * | fdSpriteCreate (Sint32 id) | Creates a sprite for animation id, taking one of the 64 free sprites and a VRAM cache entry for its tiles. |
void | fdSpriteDestroy (struct SPR *sprite) | Releases a sprite: its VRAM cache entry (unless retainCacheEntry is set), its four sprite animations, and then zeroes its 56 bytes. |
void | fdRenderPlaceSpritePartPair (struct SPR *sprite, FIXED screenX, Sint32 height, Sint32 screenY, Sint32 groundHeight, FIXED *scale) | Positions a sprite's image (part 0) and shadow (part 1) on the screen: the image centred on screenX and raised height above screenY, the shadow at groundHeight. scale is the sprite's (x, y) scale (16.16); above 1.0 both parts use the double-size affine mode. |
Sint32 | fdSpriteAddAnimation (struct SPR *sprite, Sint32 id) | Adds a sprite animation of animation id to a sprite, in the first of its four slots that is free. |
void | fdSpriteRemoveAnimation (struct SPR *sprite, Sint32 layer) | Removes the sprite animation handle from a sprite and clears it, trimming the sprite's animation count when no later sprite animation remains. |
void | fdSpriteRemoveAnimationAt (struct SPR *sprite, Uint32 index) | Removes and clears a sprite's sprite animation index (0 to 3), trimming the sprite's animation count when no later sprite animation remains. |
void | fdSpriteAnimationClear (struct SPR_ANIMATION *record) | Zeroes one sprite animation (SPR_ANIMATION); does nothing for NULL. |
void | fdSpriteAnimationReset (struct SPR_ANIMATION *layer) | Resets one sprite animation from its animation's metadata, as fdSpriteResetAnimations does for each sprite animation. |
void | fdSpriteAnimationStart (struct SPR_ANIMATION *layer, Sint32 animation) | Starts animation animation on one sprite animation, when its set has that many; SPRITE_ANIMATION_KEEP_PLACE keeps its place and timer. |
void | fdActorSystemInit (Sint32 controlMode) | Sets up the actor system: allocates and zeroes the 64 actors and registers the per-tick updates. |
void | fdActorSelectAnimation (void *rawActor, Sint32 value) | |
void | fdActorSetAnimationSpeed (struct ACTOR *rawActor, Sint32 value) | |
void | fdActorSetAnimationAndSpeed (struct ACTOR *actor, Sint32 animation, Sint32 step) | Both of the above: switches all of an actor's sprites to animation and sets their timer step to step. |
void | fdActorStartScript (struct ACTOR *actor, const Sint32 *script) | Gives an actor a script and starts it from the top. |
void | fdActorStartPlayerControl (struct ACTOR *actor) | Starts an actor on the player control script (SC_PLAYER). |
void | fdActorStartWorldMapControl (struct ACTOR *actor) | Starts an actor on the World Map control script (SC_WORLD). |
void | fdActorStartMoveByKeys (struct ACTOR *actor) | Starts an actor on the script that moves it by the keys (SC_KEYS). |
void | fdActorStartKeyCheck (struct ACTOR *actor) | Starts an actor on the script that runs SC_CHECK_KEYS every tick. |
void * | fdActorFindFree (void) | Returns the first of the 64 actors not in use (with no script), or 0. |
struct ACTOR * | fdActorCreate (Sint32 encodedSprite, FIXED x, FIXED y, FIXED z) | Creates an actor at (x, y, z), in 16.16 pixels, or returns 0 when every slot is in use. encodedSprite / 4096 is its ACTOR_CREATE and the low 12 bits its sprite. |
void | fdActorRelease (struct ACTOR *actor) | Releases an actor's sprites and zeroes it, releasing its slot. |
void | fdActorSetSpriteRotation (struct ACTOR *actor, Uint32 rotation) | Sets the rotation of an actor's sprite, when it has just one. |
void | fdActorStartCamera (struct ACTOR *actor, Sint32 watchedActorHandle) | Starts an actor on the camera script (SC_CAMERA). |
void | fdActorStartApproachWatched (struct ACTOR *actor, Sint32 watchedActorHandle) | Starts an actor on the script that approaches its watched actor (SC_APPROACH_WATCHED), watching watchedActorHandle. |
void | fdActorSetPosAndResetMotion (struct ACTOR *actor, FIXED x, FIXED y, FIXED z) | Places the actor at (x, y, z), in 16.16 pixels, clears its movement target and stops it. |
void | fdSpriteDissolveStep (Uint8 *rawSprite, Uint32 step) | One step of dissolving a sprite pixel by pixel. |
void | fdSpriteDissolveRun (Uint8 *sprite) | Dissolves a sprite pixel by pixel, four steps a tick, over 32 ticks. |
void | fdSpriteDissolveRunMany (Uint8 **sprites, Sint32 count) | Dissolves count sprites together, pixel by pixel, over 32 ticks. |
Sint32 | fdMapGridLoadMap (Sint32 index) | Loads layout index from MapsWork: its metatile tiles, shapes, metatiles, tileset animations, blend script and treasure spots; sets up the three background layers' origins, parallax and wrap from the layout header; loads the palette and tile graphics unless FLAG_KEEP_LAYER_GRAPHICS says they are loaded; and starts the layer scrolling. |
UNREAD_RESULT | fdWorldMapInitPerspective (void) | Sets up the world map's perspective view: BG2 and BG3 in affine mode, the camera state, the projection, the per-scanline ground plane function in RAM (fdWorldMapUpdateAffineLines) and its first tick, and the per-tick view and HBlank updates. |
void | fdMapGridSetCameraCenter (FIXED x, FIXED y) | Centres the view on (x, y) in 16.16 pixels, clamped to the map's bounds, and redraws every enabled layer's BG map around it. |
void | fdMapGridCenterOnFollowedPoint (void) | Centres the camera on the point the map follows (origin: x, height, z), or on (0, 0) when there is none, and scrolls the layers there. |
void | fdWorldMapUpdateCurrentTileBlock (void) | Loads and draws the 2x2 world map tiles around the player in both layers. |
void | fdWorldMapLoadGraphics (Sint32 x, Sint32 z) | Loads the world map's palette and tiles for the area at (x, z): the second set where the ground there is WORLD_MAP_ENCOUNTER_REGION_SNOWFIELD. |
void | fdActorStartIdle (struct ACTOR *actor) | Starts an actor on the idle script (a lone SC_END). |
void | fdActorWaitForScriptEnd (void *rawActor) | Waits until the actor's script reaches SC_END, at most 300 ticks (five seconds); it returns as soon as the script idles, and after the limit whether or not it has. |
void | fdActorSetMoveTarget (struct ACTOR *actor, FIXED x, FIXED y, FIXED z) | Sends an actor towards (x, y, z), in 16.16 pixels. |
void | fdActorWaitForMove (void *actor) | Waits a tick at a time until an actor has arrived at its target, at most 600 ticks (ten seconds), after which it returns with the actor still on its way. |
Sint32 | fdMapGridGetScreenRelativePos (struct ACTOR *actor, Sint32 *screenPos) | Writes the actor's screen position, in pixels, to screenPos[0..1] and returns 0 when it is on or near the screen; otherwise writes 0, 0 and returns -1. |
void | fdWorldMapUpdateView (void) | Each tick on the world map: loads tiles as the view moves, shakes and follows the player, draws the BG row or column that scrolls into view, moves the camera, and builds the ground plane's scanline table. |
void | fdWorldMapLoadDefaultMetatilesAndUpdateBlock (void) | Puts the default world map metatiles back after the still image and returns to the perspective view, without reloading the area's palette or tiles. |
void | fdMapGridPlayMapEdit (Uint16 *steps, Sint32 destX, Uint32 destY) | Plays a map edit (MAP_EDIT_STEP entries, ended by a source x of MAP_EDIT_STEPS_END): copies what each entry's rectangle of metatiles shows to (destX, destY) and waits its delay in ticks. |
void | fdMapGridCopyMetatileTilesRect (Sint32 srcX, Sint32 srcY, Uint32 destX, Uint32 destY, Uint32 width, Uint32 height) | Copies what a rectangle of metatiles shows (each one's tiles id) from (srcX, srcY) to (destX, destY), width by height metatiles, keeping each destination's attributes, and redraws the copied metatiles that are on screen. |
void | fdTilesetAnimationResume (Uint32 channelIndex) | Lets tileset animation channelIndex run on from where it was held. |
void | fdTilesetAnimationPause (Uint32 channelIndex) | Holds tileset animation channelIndex on the tiles it shows now. |
void | fdBlendScriptResume (void) | Resumes the blend script, through fdBlendScriptResumeStub. |
void | fdBlendScriptSuspend (void) | Suspends the blend script. |
FIXED | fdMapGridGetTerrainHeight (Sint32 layer, FIXED x, FIXED y) | Returns the ground height of a layer at (x, y) in 16.16 pixels: the height function of the metatile's terrain kind applied to its samples. y is the map's down axis, an actor's z. |
Sint32 | fdMapGridGetMetatileBehaviorAt (Sint32 layer, FIXED x, FIXED y) | Returns the metatile behavior of a layer's metatile at (x, y) in 16.16 pixels. |
void | fdMapGridCopyMetatileRect (Sint32 srcX, Sint32 srcY, Sint32 width, Sint32 height, Sint32 destX, Sint32 destY) | Copies a rectangle of metatiles (16x16 pixels each) as they are, from (srcX, srcY) to (destX, destY), width by height metatiles. |
void | fdMapGridCopyMetatileAttributeRect (Sint32 srcX, Sint32 srcY, Sint32 width, Sint32 height, Sint32 destX, Sint32 destY) | Copies only the attributes of a rectangle of metatiles, from (srcX, srcY) to (destX, destY), width by height metatiles, keeping each destination metatile's metatile tiles number. |
void | fdMapGridCopyMetatileIndexRect (Sint32 srcX, Sint32 srcY, Sint32 width, Sint32 height, Sint32 destX, Sint32 destY) | Copies only the metatile tiles numbers of a rectangle of metatiles, from (srcX, srcY) to (destX, destY), width by height metatiles, keeping each destination metatile's attributes; metatiles in a visible area update the BG maps too. |
void | fdWorldMapSetGridTile (Sint32 x, Sint32 y, Sint32 metatileX, Sint32 metatileY) | Changes one 512-pixel tile of the world map: the grid cell holding 32-pixel metatile (metatileX, metatileY) shows tile (y / 16) * 16 + x / 16 from now on (the broken bridge south of Vault is tile 264 in cell 11 by 3). |
Sint32 | fdMapGridCheckCollision (struct ACTOR *actor, struct FIELD_POS *pos) | Returns whether an actor can step to position, a COLLISION: whether the metatile there is a wall, or the ground too high or too low for a step from the actor's. |
void | fdActorSetSpriteFlags (struct ACTOR *actor, Uint32 flags) | Sets the SPR_FLAG bits of a one-sprite actor's sprite, such as SPRITE_FLAG_SHADOW. |
void | fdActorSetBlendMode (struct ACTOR *actor, Uint32 mode) | Sets the OAM blend mode of a one-sprite actor's sprite. |
void | fdMapGridSetScreenShake (FIXED shakeX, FIXED shakeY, FIXED shakeDecay) | Changes the shake without restarting an axis whose argument is negative. |
void | fdMapGridWaitForShakeToSettle (void) | Waits until both shake amplitudes have settled, at most MAPGRID_SHAKE_SETTLE_TICKS for a shake whose decay never settles. |
void | fdActorSetFirstSpriteAnimation (struct ACTOR *actor, Sint32 animationId) | Gives a one-sprite actor's first sprite animation the animation animationId and restarts its animations. |
void | fdActorSystemSuspendProjectionAndShowSprites (void) | Stops placing the actors' sprites each tick, starts fading the palette back to normal and, a tick later, shows the sprites with BG1-3 hidden, leaving BG0 unchanged. |
void | fdActorSystemResumeProjectionAndHideLayers (void) | Places the actors' sprites each tick again, and hides BG1-3 and the sprites. |
void | fdActorSetSpriteScale (struct ACTOR *actor, Uint32 fixedScale) | Sets whether the fixed camera draws a one-sprite actor at its own scale (nonzero) instead of scaling it by distance. |
Sint32 | fdMapGridIsWallAt (struct WORLD_POS *pos) | Returns -1 when the metatile under position (its x, and y less its height) in MAPGRID_LAYER_OVERHEAD is a wall (METATILE_BEHAVIOR_WALL), else 0; also 0 before the map state exists. |
void | fdActorAddSpriteAnimation (struct ACTOR *actor, Sint32 animationId) | Adds a layer playing animationId to a one-sprite actor's sprite. |
void | fdWorldMapStartStillImage (void) | Freezes the world map's perspective view as a still image on BG1: saves BG1's tiles, draws the current affine frame into pixels and hands the window and VBlank to it. |
void | fdWorldMapLoadAreaGraphics (void) | Reloads the world map area's palette and tiles after the still image, puts the default metatiles back and returns to the perspective view. |
void | fdActorSetSpriteColorMode (struct ACTOR *actor, Uint32 colorMode) | Sets the colour mode (SPR_COL_MODE) of a one-sprite actor's sprite animations, except those drawn hidden (see fdSpriteSetAnimationColorModes). |
void | fdSpriteSetAnimationColorModes (void *rawSprite, Uint32 colorMode) | Sets the colour mode (SPR_COL_MODE) of each of a sprite's animations to colorMode, except sprite animations drawn hidden (SPRITE_COLOR_HIDDEN), and marks the sprite for redrawing. |
Sint32 | fdActorScriptCheckOverlap (struct ACTOR *actor, Sint32 *values) | Returns -1 when the actor, moved to pos (x, y, z), would overlap a solid actor (ACTOR_SOLID), each radius less 2 pixels; otherwise 0. |
void | fdMapGridSetShownLayers (Uint32 layerFlags) | Sets which of BG1-BG3 the map shows (bits 9-11 of its display flags, as in REG_DISPCNT) from layerFlags, keeping its other flags. |
Sint32 | fdSpriteAnimationSumCommandLengths (Sint32 id, Uint32 animation, Sint32 timedCount) | Returns how long, in ticks, the first timedCount timed commands of animation animation of animation id last: the sum of the arguments of its picture, wait and blank commands, up to timedCount of them or the first play, hold, jump or end command. |
Sint32 | fdWorldMapGetBattleEnvironment (struct WORLD_POS *pos, Sint32 *region) | Returns the world map's battle environment at position from WorldMapBattleEnvironments, and stores the block's encounter region in *region. |
Sint32 | fdSpritePictureCacheLoad (Uint32 slot, Uint32 *buf, Sint32 number, Uint32 variant) | Loads the pictures of animation number into picture cache slot, at buf: the resource SpritePictureCacheSources lists for it, decoded, its picture offsets turned into pointers, and for variant 1 to 5 its colours of the basic sprite palettes recoloured through that variant's table (a variant above 5 takes variant 1's). |
void | fdMapGridSetMetatileBehaviorAt (Uint32 layer, FIXED x, FIXED y, Uint32 behavior) | Sets the metatile behavior of a layer's metatile at (x, y) in 16.16 pixels. |
void | fdSpriteSetAnimationSpeed (struct SPR *sprite, Sint32 step) | Sets the timer step, the animation speed, of each playing sprite animation of a sprite (16 is normal speed). |
void | fdSpriteColorRemapPixels (Uint8 *bytes, Sint32 byteCount) | Remaps byteCount bytes in place through SpriteColorGreyTable. |
void | fdTilesetAnimationSuspendAll (void) | Suspends the tileset animations, unless the world map's still image is shown. |
void | fdTilesetAnimationResumeAll (void) | Resumes the tileset animations, unless the world map's still image is shown. |
struct ACTOR * | fdActorScriptFindOverlappingActor (struct ACTOR *actor, Sint32 *values) | Returns the first solid actor that the actor, moved to pos, would overlap, as fdActorScriptCheckOverlap tests, or NULL. |
Sint32 | fdMapGridGetTerrainKindAt (Sint32 layer, FIXED x, FIXED y) | Returns the terrain kind (TERRAIN_KIND) of a layer's metatile at (x, y) in 16.16 pixels. |
void | fdSpriteViewerRun (void) | A debug sprite viewer, which never returns. |
Uint8 * | fdDecompressLZ (const Uint8 *src, Uint8 *dest) | Decompresses an LZ stream from source into destination and returns destination. |
Sint32 | fdSpriteComposePicture (struct SPR *sprite, Uint16 direction) | Advances a sprite's animations by one tick, picks each sprite animation's picture for the facing direction, and when any picture changed redraws the sprite: the sprite animations composed by priority into one pixel buffer, an optional outline, and the result uploaded to the sprite's VRAM tiles. |
Sint32 | fdSpritePictureCacheFindByTag (Sint32 tag) | Returns the buffer loaded into the sprite picture cache with this tag, or 0. |
struct SPR_ANIMATION * | fdSpriteAnimationAllocate (Sint32 id) | Takes a free sprite animation and starts it on the first animation of animation id; NULL when none is free. |
Sint32 | fdActorScriptSetFlagAndTest (struct ACTOR *interpreter) | |
Sint32 | fdActorScriptClearFlagAndTest (struct ACTOR *interpreter) | |
void | fdActorScriptSetOrCompareScriptAddress (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | The state values of SC_SET, SC_ADD and SC_CMP, one handler each (ActorScriptOperandHandlerTable, field/field_script_commands.c): by operation, each sets one of the actor's fields to value, adds value to it, or compares the two into conditionResult. |
void | fdActorScriptSetOrCompareFacing (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareX (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareY (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareZ (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareScaleX (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareScaleY (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareVelocityX (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareVelocityY (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareVelocityZ (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareSpeedLimit (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareAcceleration (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareTargetX (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareTargetY (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareTargetZ (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareBounce (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareGravity (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareTerrainHeight (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareSceneWord (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareSprite (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareSpriteStorageKind (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareMotionFlags (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareArrivalAxis (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareConditionResult (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareSnapToTarget (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareCollisionFlags (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareSteeringFlags (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrComparePaused (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareRepeatCount (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareTimer (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareUserValue (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareWatchedActor (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareUpdateAddress (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareSceneCount (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdActorScriptSetOrCompareSceneByte (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
void | fdSpriteViewerSetLayerColorMode (Sint32 slot, Sint32 value) | |
void | fdSpriteViewerSetLayerPriority (Sint32 slot, Sint32 value) | |
void | fdActorSystemReservedNoOperationA (void) | Unused: two empty functions. |
void | fdActorSystemReservedNoOperationB (void) | |
Sint32 | fdActorReturnTrue (void) | Unused: returns 1. |
void | fdActorSystemPlaceSprites (void) | Each tick, with the scrolling camera: places every actor's sprite on the screen. |
Sint32 | fdActorCameraReturnTrue (void) | Unused: returns 1. |
void | fdActorSystemProjectSprites (void) | Each tick, with the fixed camera: places every actor's sprite, from the 64th actor down, facing them by the angle from the eye to the target. |
Sint32 | fdActorScriptSetBase (struct ACTOR *interpreter) | SC_BASE: restarts the script at the next word, and returns 1 to run on. |
Sint32 | fdActorScriptHideSprites (struct ACTOR *interpreter) | SC_HIDE_SPRITES: hides the actor's sprites and runs on. |
Sint32 | fdActorScriptShowSprite (struct ACTOR *interpreter) | SC_SHOW_SPRITE: shows the actor's one sprite and runs on. |
Bool | fdActorIsTargetUnset (struct ACTOR *actor) | Returns 1 when the actor has no movement target: none of its target coordinates set, or for an actor moved by the ground (any motion flag) neither its target x nor z. |
void | fdActorUpdateAllOnField (void) | Advances all 64 actors by one tick, as fdActorUpdateAll does for the eight script-driven actors, with the field's extras: free flight in 3D, following the ground, floating, and solid actors that refuse to overlap. |
void | fdActorRunUpdateAllFromHeap (void) | Unused: copies fdActorUpdateAll (ARM code) to the heap, runs it once and frees it. |
void | fdActorUpdateAllMotion (void) | Advances the battle's actors by one tick, without running their scripts: steering towards a target or braking, gravity and bouncing, arrival, and turning to face the direction of travel. |
Sint32 | fdActorScriptWait (struct ACTOR *interpreter) | SC_WAIT(n): waits n ticks; this tick counts as the first. |
Bool | fdActorScriptWaitForArrival (struct ACTOR *interpreter) | SC_SYNC: waits until the actor arrives at its target, or until a solid actor has blocked it for 60 ticks (refused is the blocked count, which fdActorUpdateAllOnField raises). |
Bool | fdActorScriptInvokeCallback (struct ACTOR *interpreter) | SC_CALL(fn): calls fn with the actor. |
Sint32 | fdActorScriptFindLabel (struct ACTOR *interpreter, Uint32 labelKey) | Returns the cursor just past the script's label key (SC_LABEL or SC_TO, matched without the bit that tells them apart), searching its first 1024 words, or 0 (the start) when key is 0 or not found, so a missing label restarts the script. |
Sint32 | fdActorScriptRepeatOrJump (struct ACTOR *interpreter) | SC_LOOP(n, to): jumps to label to until it has done so n - 1 times, then moves on; with n = SC_FOREVER it always jumps. |
Sint32 | fdActorScriptJumpToLabel (struct ACTOR *interpreter) | SC_JUMP(to): jumps to label to. |
Sint32 | fdActorScriptJumpIfTrue (struct ACTOR *interpreter) | SC_IF(to): jumps to label to when the last test was true. |
Sint32 | fdActorScriptJumpIfFalse (struct ACTOR *interpreter) | SC_IFNOT(to): jumps to label to when the last test was false. |
Sint32 | fdActorScriptEnd (struct ACTOR *interpreter) | SC_END: hands the actor back to the idle script, ActorScriptEndScript, whose lone SC_END runs again each tick. |
Sint32 | fdActorScriptTestFlag (struct ACTOR *interpreter) | SC_FLAG_CHECK(f): tests game flag f. |
Sint32 | fdActorScriptToggleFlagAndTest (struct ACTOR *interpreter) | SC_FLAG_REV(f): tests game flag f, then flips it. |
Sint32 | fdActorScriptSetAnimation (struct ACTOR *interpreter) | SC_ANIMATION(v): switches the actor's sprites to animation v. |
Sint32 | fdActorScriptRelease (struct ACTOR *interpreter) | SC_RELEASE: releases the actor through fdActorRelease, which releases its sprites and zeroes its slot. |
Sint32 | fdActorScriptNoOperation (struct ACTOR *interpreter) | SC_NOP(v): does nothing with its operand. |
Sint32 | fdActorScriptPlaySound (struct ACTOR *interpreter) | SC_SE(n): sends sound command n. |
Sint32 | fdActorScriptSetPosAndResetMotion (struct ACTOR *interpreter) | SC_POSITION(x, y, z): places the actor at (x, y, z) and stops it. |
Sint32 | fdActorScriptMove (struct ACTOR *interpreter) | SC_MOVE(x, y, z): sends the actor towards (x, y, z). |
Sint32 | fdActorScriptMoveBy (struct ACTOR *interpreter) | SC_MOVE_BY(x, y, z): sends the actor towards its position plus (x, y, z). |
Sint32 | fdActorScriptFaceWatched (struct ACTOR *interpreter) | SC_FACE_WATCHED: turns the actor to face its watched actor across the ground. |
Sint32 | fdActorScriptMoveToWatched (struct ACTOR *interpreter) | SC_MOVE_TO_WATCHED: sends the actor towards its watched actor. |
Sint32 | fdActorScriptMoveLocal (struct ACTOR *interpreter) | SC_MOVE_LOCAL(a, b): sends the actor towards its position plus an offset that is never filled in; the operands are skipped unread. |
Sint32 | fdCameraFollowLeaderInBounds (struct ACTOR *interpreter) | SC_CAMERA: keeps the camera actor on its leader (watchedActor), clamped so the view stays on the map. |
Bool | fdActorApproachWatchedActor (struct ACTOR *interpreter) | SC_APPROACH_WATCHED: follows the watched actor at its speed. |
Bool | fdActorWander (struct ACTOR *interpreter) | SC_WANDER(base, range, limit): walks to a random point base to base + range away, within 90 degrees either side of the way it faces, that no solid actor or wall blocks, with clear ground 8 pixels further at 45 degrees either side, and within limit pixels of home. |
Sint32 | fdActorScriptWanderNearHome (struct ACTOR *interpreter) | SC_WANDER_HOME(base, range, limit): wanders as SC_WANDER does, testing more ground around the point, while it is within limit pixels of home; outside that, or when no point works, it heads back towards home. |
void | fdActorScriptSetOrCompareCursor (struct SCRIPT_OPERANDS *operands, Sint32 operation, Sint32 value) | SW_CURSOR: its add and compare take the cursor as a signed halfword. |
void | fdActorScriptSetOrCompareRadius (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | SW_RADIUS: its compare takes value as a signed halfword. |
void | fdActorScriptSetOrCompareWait (struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value) | |
Sint32 | fdActorScriptApplyOperandSet (struct ACTOR *interpreter) | SC_SET(w, v): sets state value w to v. |
Sint32 | fdActorScriptApplyOperandAdd (struct ACTOR *interpreter) | SC_ADD(w, v): adds v to state value w. |
Sint32 | fdActorScriptApplyOperandCompare (struct ACTOR *interpreter) | SC_CMP(w, v): tests whether state value w equals v. |
void | fdActorSetUpdateValue (void *rawActor, Sint32 value) | Unused: stores value as a word in the actor's update function. |
Uint32 | fdRequestShortcut (Uint32 encodedAssignment) | Handles a shortcut key's assignment: its top two bits choose what it requests (FIELD_SHORTCUT_KIND) and the low 14 bits which one. |
Sint32 | fdCheckConfiguredKeys (void) | Checks the keys the player has configured: Select, A and Start set their flag in the field state and return 1; the two shortcut keys pass on their assignment (fdRequestShortcut) and return its request id. |
Sint32 | fdCheckSpheresOverlap (FIXED *firstPos, Sint32 radiusA, FIXED *secondPos, Sint32 radiusB) | Returns 0 when two spheres overlap: at positions a and b (16.16 pixels) with radii radiusA and radiusB (pixels); -1 otherwise. |
Sint32 | fdActorUpdatePlayerControl (struct ACTOR *interpreter) | SC_PLAYER: moves the player on the field by the direction pad: walking or running, sliding around walls, pushing movable actors, turning, playing the matching animation and leaving footprints. |
Sint32 | fdActorMoveOnWorldMap (struct ACTOR *interpreter) | SC_WORLD: moves the player on the World Map by the direction pad, as SC_PLAYER does on the field, and turns the World Map camera with the pad. |
Sint32 | fdActorScriptCheckKeys (struct ACTOR *interpreter) | SC_CHECK_KEYS: checks the configured keys (fdCheckConfiguredKeys). |
Sint32 | fdActorMoveByKeys (struct ACTOR *interpreter) | SC_KEYS: moves an actor 8 pixels at a time by the direction pad, with up and down changing its height (y) rather than its depth. |
void | fdTileMapDecodeStagedBuffer (Sint32 size) | Unpacks the staged metatile tiles into MetatileTiles. |
void | fdTileMapNumberPlaceholderMetatileTiles (void) | Unused: gives each map metatile whose metatile tiles are number 0xfff (a placeholder) a number of its own, counting up from 0 in map order. |
void | fdTileMapConvertBuffer (void) | Joins a decoded map's planes in place into its metatile words, with fdTileConvertMapGrid copied to RAM, which reads the byte planes from a copy. |
void | fdMapGridRenderMetatileTilesRow (Uint32 layer, Sint32 tileX, Sint32 tileY) | Draws the metatile tiles of a row of 16 of a layer's metatiles (32 tiles) into its BG map (screen block 5 + layer), starting at tile (tileX, tileY); the BG map wraps every 32 tiles. |
void | fdMapGridRenderMetatileTilesColumn (Uint32 layer, Sint32 tileX, Sint32 tileY) | Draws the metatile tiles of a column of 11 of a layer's metatiles, one tile wide, into its BG map, starting at tile (tileX, tileY). |
void | fdMapGridUpdateLayerScroll (void) | Each tick on a layered map: centres the view on the point the map follows (origin), clamped to the map's bounds and shaken by any decaying screen shake; then scrolls each of the three layers by its parallax scale and automatic scroll (wrapping at its period), draws the column or row of metatile tiles that scrolls into view, and sets its BG scroll. |
Sint32 | fdWorldMapWriteLayerMetatileTile ( Sint32 layer, Sint32 x, Sint32 y, Sint32 tile, Sint32 update) | Loads world map tile tile into quarter (x & 1, y & 1) of a layer's metatile picture buffer, decompressing it from the area's graphics, and with update set also draws it into the layer's BG map. |
void | fdWorldMapApplyAffinePage (void) | HBlank setup each VBlank on the world map: copies the first scanline's BG2 and BG3 affine parameters, starts the HBlank DMA for the rest, and picks the BG mode from the window's top and bottom. |
void | fdWorldMapDrawMetatileRow (Uint32 tileRow) | Draws row tileRow of the metatile buffer into both layers' BG maps, 32 metatiles in each: the row of the ground that scrolls into view. |
void | fdWorldMapDrawMetatileColumn (Uint32 tileColumn) | Draws column tileColumn of the metatile buffer into both layers' BG maps, 32 metatiles down in each (the second layer's map and metatiles follow the first's): the column of the ground that scrolls into view. |
void | fdWorldMapPreloadCurrentTileBlock (void) | Loads the first of the 2x2 world map tiles around the player that is not shown yet (at most one a tick), without drawing it. |
void | fdWorldMapPresentStillImage (void) | VBlank: shows BG1 and copies the decoded picture's tiles into VRAM. |
void | fdWorldMapEndStillImage (void) | VBlank at the end of the still image: puts BG1 back as the plain layer and copies the area's four tile sets back into char blocks 2 and 3. |
void | fdTilesetAnimationUpdate (void) | Each tick: runs the 16 tileset animations. |
void | fdTilesetAnimationStartAll (const Uint16 *script) | Starts the tileset animations a map's animation script lists: each TILESET_ANIM_MARKER starts the tileset animation its low four bits name there (paused with TILESET_ANIM_MARKER_PAUSED). |
void | fdBlendScriptRun (void) | Each tick: runs the map's blend script. |
void | fdBlendScriptStart (Uint16 *script) | Starts a map's blend script, which then runs each tick; a map whose script is empty keeps its blend as it is. |
void | fdPaletteCycleInit (void) | Unused: allocates the palette cycling queue (HEAP_SLOT_PALETTE_CYCLES) with its four entries cleared. |
Sint32 | fdPaletteCycleAdd (Sint16 paletteNumber, Sint16 firstColor, Sint16 delay, Sint16 colorCount) | Unused: adds a palette cycle: colorCount colours of background palette paletteNumber from firstColor, rotated by one every delay + 1 ticks. |
void | fdPaletteCycleStop (void) | Unused: stops the palette cycles and frees their queue (HEAP_SLOT_PALETTE_CYCLES). |
void | fdPaletteCycleStart (void) | Unused: starts running the palette cycles each tick. |
void | fdPaletteCycleStep (void) | Each tick: advances each palette cycle whose timer has run out by one colour, writing the rotated colours back to the palette. |
FIXED | fdTerrainGetFlatHeight (const Uint8 *heightBytes, Sint32 pixelX, Sint32 pixelY) | The ground height functions (MapGridTerrainHeightFunctions): each takes a metatile's height samples after its kind byte and a pixel (x, y) within the 16x16 metatile, and returns the ground height there in 16.16 pixels. |
Sint32 | fdTerrainGetSlopeXHeight (const Uint8 *heightBytes, Sint32 pixelX, Sint32 pixelY) | |
Sint32 | fdTerrainGetSlopeYHeight (const Uint8 *heightBytes, Sint32 pixelX, Sint32 pixelY) | |
FIXED | fdTerrainGetStepSumDiagonalHeight (const Uint8 *heightBytes, Sint32 x, Sint32 y) | A step across the diagonal x + y = 15: sample 0 before it, sample 1 after it and the higher of the two on it. |
FIXED | fdTerrainGetStepDifferenceDiagonalHeight (const Uint8 *heightBytes, Sint32 x, Sint32 y) | A step across the diagonal x = y: sample 0 where y < x, sample 1 where y > x and the higher of the two on it. |
FIXED | fdTerrainGetBendSumDiagonalHeight (const Uint8 *heightBytes, Sint32 x, Sint32 y) | A slope that bends on the diagonal x + y = 15: from sample 0 at the top left corner to sample 1 on the diagonal to sample 2 at the bottom right. |
FIXED | fdTerrainGetBendDifferenceDiagonalHeight (const Uint8 *heightBytes, Sint32 x, Sint32 y) | A slope that bends on the diagonal x = y: from sample 0 at the top right corner to sample 1 on the diagonal to sample 2 at the bottom left. |
FIXED | fdTerrainGetRoundedSquareHeight (const Uint8 *heightBytes, Sint32 x, Sint32 y) | A raised or sunken rounded square: sample 1 where TerrainRoundedSquareMask is 1, sample 0 in the corners. |
Sint32 | fdTerrainGetStepXHeight (const Uint8 *heightBytes, Sint32 pixelX, Sint32 pixelY) | |
Sint32 | fdTerrainGetStepYHeight (const Uint8 *heightBytes, Sint32 pixelX, Sint32 pixelY) | |
FIXED | fdTerrainGetBendXHeight (const Uint8 *heightBytes, Sint32 pixelX, Sint32 pixelY) | A slope along x that bends at the middle: sample 0 at x = 0, sample 1 at x = 8, towards sample 2 at x = 16. |
FIXED | fdTerrainGetBendYHeight (const Uint8 *heightBytes, Sint32 pixelX, Sint32 pixelY) | A slope along y that bends at the middle, as TERRAIN_BEND_X does along x. |
FIXED | fdTerrainGetSampleTableHeight (const Uint8 *heightBytes, Sint32 pixelX, Sint32 pixelY) | The sample TerrainSampleIndexTable picks for (x, y). |
FIXED | fdTerrainGetSampleTableMirroredHeight (const Uint8 *heightBytes, Sint32 pixelX, Sint32 pixelY) | The same, with the table mirrored left to right. |
FIXED | fdTerrainGetFlatBHeight (const Uint8 *heightBytes, Sint32 pixelX, Sint32 pixelY) | Flat, as fdTerrainGetFlatHeight, for TERRAIN_FLAT_B. |
FIXED | fdTerrainGetFlatCHeight (const Uint8 *heightBytes, Sint32 pixelX, Sint32 pixelY) | Flat, as fdTerrainGetFlatHeight, for TERRAIN_FLAT_C. |
Sint32 | fdMapGridGetMetatileHighFlags (Sint32 x, Sint32 y) | Unused: returns the top two bits of the metatile tiles halfword of the metatile at pixel (x, y). |
Sint32 | fdWorldMapGetCollision (struct WORLD_POS *pos) | Returns the world map's collision value (1-15) at position: from the upper collision layer where it has one, else the lower, else WORLD_MAP_COLLISION_DEFAULT. |
Sint32 | fdWorldMapIsWalkable (Sint32 unused, struct WORLD_POS *pos) | Returns 0 when the world map at position can be walked on (collision WORLD_MAP_COLLISION_WALKABLE_FIRST to WORLD_MAP_COLLISION_WALKABLE_LAST), else -1. |
void | fdTileMapDrawRowsFromRam (const struct WORLD_MAP_AFFINE_PAIR *lines, Uint8 *pixels) | Draws the current affine page into the world map's still-image pixels. |
void | fdWorldMapBuildScanlineTable (FIXED depth, Sint32 *pos, struct WORLD_MAP_SCANLINE *scanline) | Works out each screen line of the world map's tilted ground: how much the ground is scaled on that line and how far along it the line lies from the followed point, for a camera pitched by pitchSlope. |
void | fdWorldMapUpdateAffineLines (struct VECTOR3 *eye, struct VECTOR3 *target, struct WORLD_MAP_SCANLINE *line, struct WORLD_MAP_AFFINE_LINE *affine) | Builds the world map's per-scanline affine table for one tick: the ground plane seen from eye towards target. line points at the 160 scanlines' ground terms, whose rotation terms stay cached while the yaw (ScanlineAngle) is unchanged; affine receives each line's parameters twice, for BG2 and then BG3, as the HBlank DMA writes both. |
Sint32 | fdSpriteViewerStepSpriteId (Sint32 spriteId, Sint32 direction) | Returns the next sprite id after spriteId, stepping by direction (1 or -1) and wrapping within 0-511, whose metadata has an image (a nonzero width). |
void | fdSpriteViewerLayOutRing (Sint32 centerX, Sint32 centerY, struct SPR_PLACEMENT *positions) | Lays out the sprite viewer's ring around (centerX, centerY), in pixels: one position per facing of the first sprite's facing kind (6, 8, 10 or 4, or two opposite pairs for ANIM_FACING_TWO_PART), 56 pixels out (40 for a two-part sprite). |
void | fdSpriteViewerStartStaggeredAnimations (Sint32 layerIndex, Sint32 animationIndex) | Starts animationIndex on layerIndex of each of the viewer's ten sprites, each one a tick (16 timer units) behind the last, so the copies are staggered. |
void | fdSpriteViewerSetLayerSprite (Sint32 layerIndex, Sint32 spriteId) | Sets spriteId on layerIndex of each of the viewer's ten sprites. |
void | fdSpriteViewerPlaceRing (void) | Each tick in the sprite viewer: places each copy of the sprite at its ring position, facing the way that position stands for. |
Description
The field module's functions, declared in the order of its stub table,
without the tables and types field.h brings in. field.h includes it for
everyone else.
Functions in detail
fdActorSelectAnimation
void fdActorSelectAnimation(void *rawActor, Sint32 value)
Referenced by fdActorApproachWatchedActor(), fdActorMoveByKeys(), fdActorMoveOnWorldMap(), fdActorScriptSetAnimation(), fdActorUpdatePlayerControl(), scActorFloatLogWithLeader(), scActorSteerByPad(), scAltinBeastHop(), scAltinBeastSpewWater(), scAltinPeakAdvanceCart(), scAltinPeakSpawnDebris(), scAltinPeakSpawnSpit(), scAltinPeakStopCartAndJumpOff(), scAltinPeakTurnCartLeft(), scAltinPeakTurnCartRight(), scAltinPeakUpdateBeastHops(), scAltmillerCaveHopOverPuddle(), scBilibinCavePushTorch(), scBilibinPushStatueOrCrates(), scColosseumAzartMatchDousePipe(), scColosseumAzartMatchMoveRidingLog(), scColosseumAzartMatchPushPipeworksPipe(), scColosseumNavampaMatchForceSidewalkLog(), scColosseumNavampaMatchRollLongLog(), scColosseumNavampaMatchRunActorTo(), scColosseumNavampaMatchRunActorToAndStand(), scColosseumNavampaMatchShovedByPiston(), scColosseumNavampaMatchShovedOffWalkway(), scColosseumSatrageMatchDemonstrateLogPush(), scColosseumSatrageMatchMoveRidingLog(), scColosseumSatrageMatchRollLogToMetatile(), scColossoFadeInWarrior(), scColossoPushActorAhead(), scColossoRestoreWarrior(), scColossoSparkleAroundPrize(), scColossoUpdatePathOpponent(), scColossoWalkActorTo(), scColossoWalkActorToAndStand(), scCrossboneIsleRideLog(), scCrossboneIsleSteppingStonesFloatLog(), scCrossboneIsleSteppingStonesRestoreFrozenPuddle(), scCrossboneIsleSteppingStonesStrandLog(), scCrossboneIsleSteppingStonesTryJumpAcrossPillar(), scCrossboneIsleTryHop(), scGomaCavePillarSpawnFragment(), scImilFuchinFallsSpawnDust(), scImilStartSmoke(), scImilSwayAndSpark(), scInit(), scKalayPushTunnelStatue() and 63 more.
Definition at line 54 of file field_functions.h.
fdActorSetAnimationSpeed
void fdActorSetAnimationSpeed(struct ACTOR *rawActor, Sint32 value)
Referenced by scActorSteerByPad(), scCrossboneIsleKeysBaneLastEscape(), scCrossboneIsleKeysBaneSecondEscape(), scCrossboneIsleKeysInitBane(), scLeaderSlideOnIce() and scTolbiSpringSetActorAppearance().
Definition at line 55 of file field_functions.h.
fdActorScriptSetFlagAndTest
Sint32 fdActorScriptSetFlagAndTest(struct ACTOR *interpreter)
Referenced by ActorScriptCommandTable.
Definition at line 167 of file field_functions.h.
fdActorScriptClearFlagAndTest
Sint32 fdActorScriptClearFlagAndTest(struct ACTOR *interpreter)
Referenced by ActorScriptCommandTable.
Definition at line 168 of file field_functions.h.
fdActorScriptSetOrCompareScriptAddress
void fdActorScriptSetOrCompareScriptAddress(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
The state values of SC_SET, SC_ADD and SC_CMP, one handler each
(ActorScriptOperandHandlerTable, field/field_script_commands.c): by
operation, each sets one of the actor's fields to value, adds value to it, or
compares the two into conditionResult.
Referenced by ActorScriptOperandHandlerTable.
Definition at line 174 of file field_functions.h.
fdActorScriptSetOrCompareFacing
void fdActorScriptSetOrCompareFacing(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 177 of file field_functions.h.
fdActorScriptSetOrCompareX
void fdActorScriptSetOrCompareX(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 180 of file field_functions.h.
fdActorScriptSetOrCompareY
void fdActorScriptSetOrCompareY(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 183 of file field_functions.h.
fdActorScriptSetOrCompareZ
void fdActorScriptSetOrCompareZ(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 186 of file field_functions.h.
fdActorScriptSetOrCompareScaleX
void fdActorScriptSetOrCompareScaleX(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 189 of file field_functions.h.
fdActorScriptSetOrCompareScaleY
void fdActorScriptSetOrCompareScaleY(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 192 of file field_functions.h.
fdActorScriptSetOrCompareVelocityX
void fdActorScriptSetOrCompareVelocityX(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 195 of file field_functions.h.
fdActorScriptSetOrCompareVelocityY
void fdActorScriptSetOrCompareVelocityY(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 198 of file field_functions.h.
fdActorScriptSetOrCompareVelocityZ
void fdActorScriptSetOrCompareVelocityZ(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 201 of file field_functions.h.
fdActorScriptSetOrCompareSpeedLimit
void fdActorScriptSetOrCompareSpeedLimit(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 204 of file field_functions.h.
fdActorScriptSetOrCompareAcceleration
void fdActorScriptSetOrCompareAcceleration(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 207 of file field_functions.h.
fdActorScriptSetOrCompareTargetX
void fdActorScriptSetOrCompareTargetX(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 210 of file field_functions.h.
fdActorScriptSetOrCompareTargetY
void fdActorScriptSetOrCompareTargetY(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 213 of file field_functions.h.
fdActorScriptSetOrCompareTargetZ
void fdActorScriptSetOrCompareTargetZ(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 216 of file field_functions.h.
fdActorScriptSetOrCompareBounce
void fdActorScriptSetOrCompareBounce(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 219 of file field_functions.h.
fdActorScriptSetOrCompareGravity
void fdActorScriptSetOrCompareGravity(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 222 of file field_functions.h.
fdActorScriptSetOrCompareTerrainHeight
void fdActorScriptSetOrCompareTerrainHeight(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 225 of file field_functions.h.
fdActorScriptSetOrCompareSceneWord
void fdActorScriptSetOrCompareSceneWord(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 228 of file field_functions.h.
fdActorScriptSetOrCompareSprite
void fdActorScriptSetOrCompareSprite(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 231 of file field_functions.h.
fdActorScriptSetOrCompareSpriteStorageKind
void fdActorScriptSetOrCompareSpriteStorageKind(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 234 of file field_functions.h.
fdActorScriptSetOrCompareMotionFlags
void fdActorScriptSetOrCompareMotionFlags(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 237 of file field_functions.h.
fdActorScriptSetOrCompareArrivalAxis
void fdActorScriptSetOrCompareArrivalAxis(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 240 of file field_functions.h.
fdActorScriptSetOrCompareConditionResult
void fdActorScriptSetOrCompareConditionResult(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 243 of file field_functions.h.
fdActorScriptSetOrCompareSnapToTarget
void fdActorScriptSetOrCompareSnapToTarget(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 246 of file field_functions.h.
fdActorScriptSetOrCompareCollisionFlags
void fdActorScriptSetOrCompareCollisionFlags(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 249 of file field_functions.h.
fdActorScriptSetOrCompareSteeringFlags
void fdActorScriptSetOrCompareSteeringFlags(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 252 of file field_functions.h.
fdActorScriptSetOrComparePaused
void fdActorScriptSetOrComparePaused(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 255 of file field_functions.h.
fdActorScriptSetOrCompareRepeatCount
void fdActorScriptSetOrCompareRepeatCount(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 258 of file field_functions.h.
fdActorScriptSetOrCompareTimer
void fdActorScriptSetOrCompareTimer(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 261 of file field_functions.h.
fdActorScriptSetOrCompareUserValue
void fdActorScriptSetOrCompareUserValue(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 264 of file field_functions.h.
fdActorScriptSetOrCompareWatchedActor
void fdActorScriptSetOrCompareWatchedActor(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 267 of file field_functions.h.
fdActorScriptSetOrCompareUpdateAddress
void fdActorScriptSetOrCompareUpdateAddress(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 270 of file field_functions.h.
fdActorScriptSetOrCompareSceneCount
void fdActorScriptSetOrCompareSceneCount(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 273 of file field_functions.h.
fdActorScriptSetOrCompareSceneByte
void fdActorScriptSetOrCompareSceneByte(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 276 of file field_functions.h.
fdSpriteViewerSetLayerColorMode
void fdSpriteViewerSetLayerColorMode(Sint32 slot, Sint32 value)
Referenced by fdSpriteViewerRun().
Definition at line 279 of file field_functions.h.
fdSpriteViewerSetLayerPriority
void fdSpriteViewerSetLayerPriority(Sint32 slot, Sint32 value)
Referenced by fdSpriteViewerRun().
Definition at line 280 of file field_functions.h.
fdActorScriptSetOrCompareWait
void fdActorScriptSetOrCompareWait(struct SCRIPT_OPERANDS *state, Sint32 operation, Sint32 value)
Referenced by ActorScriptOperandHandlerTable.
Definition at line 325 of file field_functions.h.
fdTerrainGetSlopeXHeight
Sint32 fdTerrainGetSlopeXHeight(const Uint8 *heightBytes, Sint32 pixelX, Sint32 pixelY)
Referenced by MapGridTerrainHeightFunctions.
Definition at line 373 of file field_functions.h.
fdTerrainGetSlopeYHeight
Sint32 fdTerrainGetSlopeYHeight(const Uint8 *heightBytes, Sint32 pixelX, Sint32 pixelY)
Referenced by MapGridTerrainHeightFunctions.
Definition at line 376 of file field_functions.h.
fdTerrainGetStepXHeight
Sint32 fdTerrainGetStepXHeight(const Uint8 *heightBytes, Sint32 pixelX, Sint32 pixelY)
Referenced by MapGridTerrainHeightFunctions.
Definition at line 394 of file field_functions.h.
fdTerrainGetStepYHeight
Sint32 fdTerrainGetStepYHeight(const Uint8 *heightBytes, Sint32 pixelX, Sint32 pixelY)
Referenced by MapGridTerrainHeightFunctions.
Definition at line 396 of file field_functions.h.