Alchemy

cursor.h

games/tbs/include/cursor.h on GitHub

Structures

ShopCursor

struct ShopCursor

Cursor that approaches its target, shared by shop, name entry and settings.

FieldDeclared as
anchorstruct RenderOutput *anchorthe cursor's sprite, moved with its OAM
xu16 xscreen pixels: where the current move started
yu16 yscreen pixels: where the current move started
targetXs16 targetXscreen pixels
targetYs16 targetYscreen pixels
actives8 activeframes of the current move done; reset when it ends
kinds8 kindframes the move takes; 0 when the cursor is still

Used by PartyTalkMenu_Choose, SaveMenu_SelectSlot, ShopCursor_Advance, ShopCursor_MoveTowardTarget, ShopCursor_SetPositionImmediate, Shop_SetCursor.

Line 13

Unions

union MenuCursor

FieldDeclared as
outputstruct RenderOutput *outputthe image alone; cursor.anchor
cursorstruct ShopCursor cursor

Used by NameEntry_EditOwnerName.

Line 30

On this page