Alchemy
Loading...
Searching...
No Matches

ShopCursor Struct Reference

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

#include <cursor.h>

Data Fields

struct RenderOutput * anchor
 the cursor's sprite, moved with its OAM
u16 x
 screen pixels: where the current move started
u16 y
 screen pixels: where the current move started
s16 targetX
 screen pixels
s16 targetY
 screen pixels
s8 active
 frames of the current move done; reset when it ends
s8 kind
 frames the move takes; 0 when the cursor is still

Detailed Description

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

Definition at line 13 of file cursor.h.

Field Documentation

◆ anchor

◆ x

u16 ShopCursor::x

screen pixels: where the current move started

Definition at line 15 of file cursor.h.

Referenced by SaveMenu_SelectSlot(), Shop_SetCursor(), ShopCursor_Advance(), and ShopCursor_SetPositionImmediate().

◆ y

u16 ShopCursor::y

screen pixels: where the current move started

Definition at line 16 of file cursor.h.

Referenced by SaveMenu_SelectSlot(), Shop_SetCursor(), ShopCursor_Advance(), and ShopCursor_SetPositionImmediate().

◆ targetX

s16 ShopCursor::targetX

◆ targetY

s16 ShopCursor::targetY

◆ active

s8 ShopCursor::active

frames of the current move done; reset when it ends

Definition at line 19 of file cursor.h.

Referenced by Shop_SetCursor(), ShopCursor_Advance(), and ShopCursor_SetPositionImmediate().

◆ kind

s8 ShopCursor::kind

frames the move takes; 0 when the cursor is still

Definition at line 20 of file cursor.h.

Referenced by Shop_SetCursor(), ShopCursor_Advance(), and ShopCursor_SetPositionImmediate().