Alchemy

field

games/tbs/include/unit/field on GitHub

curve_data.h

games/tbs/include/unit/field/curve_data.h

Globals, without a comment: gCurve_LerpWeightTable, gCurve_SampleIndexTable.

facing.h

games/tbs/include/unit/field/facing.h

Globals, without a comment: gAnimationFacing_Kind1, gAnimationFacing_Kind22, gAnimationFacing_Kind2, gAnimationFacing_Kind3, gAnimationFacing_Kind5, gAnimationFacing_Kind8, gAnimationFacing_Kind88, gAnimationFacing_Kind4, gAnimationFacing_Kind6, gMap_TileDissolveOrder, gMap_TileDissolveTail, gCamera_FixedViewMatrix, gScriptObject_CycleTable, gScript_MainScript, gScript_MainScriptTail, gWorldMap_KeyYaws.

field.h

games/tbs/include/unit/field/field.h

Declarations, without a comment: ObjectDispatch_SelectAnimation, ObjectDispatch_SetAnimationSpeed, Script_SetFlagAndTest, Script_ClearFlagAndTest, Script_SetOrCompareAddress, Script_SetOrCompareUnsignedHalfword, Script_SetOrCompareX, Script_SetOrCompareY, Script_SetOrCompareZ, Script_SetOrCompareScaleX, Script_SetOrCompareScaleY, Script_SetOrCompareVelocityX, Script_SetOrCompareVelocityY, Script_SetOrCompareVelocityZ, Script_SetOrCompareSpeedLimit, Script_SetOrCompareAcceleration, Script_SetOrCompareTargetX, Script_SetOrCompareTargetY, Script_SetOrCompareTargetZ, Script_SetOrCompareVerticalMotion, Script_SetOrCompareGravity, Script_SetOrCompareTerrainHeight, Script_SetOrCompareWord4c, Script_SetOrCompareAddress50, Script_SetOrCompareByte54, Script_SetOrCompareMotionFlags, Script_SetOrCompareArrivalAxis, Script_SetOrCompareComparisonResult, Script_SetOrCompareSnapToTarget, Script_SetOrCompareCollisionFlags, Script_SetOrCompareSteeringFlags, Script_SetOrComparePaused, Script_SetOrCompareRepeatCount, Script_SetOrCompareSignedHalfword64, Script_SetOrCompareSignedHalfword66, Script_SetOrCompareWord68, Script_SetOrCompareUpdateAddress, Script_SetOrCompareByte62, Script_SetOrCompareByte63, Ui_SetGridColumnParameter, Ui_SetGridColumnPriority, Map_InitializePerspectiveScene, Map_SetWindowCellTile, WorldMap_LoadGraphics, MapAnimation_ApplyAffineFrame, Map_RenderPaletteMappedRow, Map_RenderPaletteMappedColumn, WorldMap_UpdateView, Map_UpdateCurrentTileBlock, Map_PreloadCurrentTileBlock, MapAnimation_PresentFrame, Map_ShowBg1FromBuffer, Map_LoadAreaGraphics, Map_LoadDefaultCellsAndUpdateBlock.

griddata.h

games/tbs/include/unit/field/griddata.h

Globals, without a comment: gBattle_FormationPlacementScale.

lucky_dice.h

games/tbs/include/unit/field/lucky_dice.h

Globals, without a comment: gLuckyDice_UnusedSigns, gLuckyDice_LabelCounts, gLuckyDice_LabelTiles, gLuckyDice_FaceTiles, gLuckyDice_FaceHeights.

mapdata.h

games/tbs/include/unit/field/mapdata.h

Types

TerrainHeightFn

typedef s32 (*TerrainHeightFn)(const u8 *heightBytes, s32 pixelX, s32 pixelY);

Height samples and pixel coordinates within a 16x16 terrain cell.

Used by gMap_TerrainHeightFunctions.

Line 7

Globals, without a comment: gMap_TerrainHeightFunctions, gWorldMap_DirectionOffsets, gWorldMap_UnitScale.

object_script.h

games/tbs/include/unit/field/object_script.h

Globals

gScriptObject_CommandTable

extern const ScriptCommand gScriptObject_CommandTable[47]

Commands receive the object's interpreter view. A nonzero result continues its script this frame; zero yields until the next frame.

Used by Object_UpdateAll, Object_UpdateAllThumb.

Line 9

operand.h

games/tbs/include/unit/field/operand.h

Types

OperandFunc

typedef void (*OperandFunc)(struct ScriptOperands *state, s32 operation, s32 value);

A work value's handler: by operation (enum ScriptOperandOperation in script_commands.c) it sets the object field it names to value, adds value to it, or stores whether it equals value in conditionResult.

Used by Script_ApplyOperandCommand, gScript_OperandHandlerTable.

Line 11

Globals, without a comment: gScript_OperandHandlerTable.

update.h

games/tbs/include/unit/field/update.h

Enumerations

ArrivalAxis

enum ArrivalAxis

The axis a moving object watches to know it has arrived at its target: the one along which it has the furthest to go.

Value=
ARRIVAL_AXIS_NONE0no arrival test; set again once it arrives
ARRIVAL_AXIS_X16
ARRIVAL_AXIS_Y17
ARRIVAL_AXIS_Z18

Line 8

vertices.h

games/tbs/include/unit/field/vertices.h

On this page