Skip to Content
The Alchemy Project

struct WORLD_MAP_STATE

WorldMapStateWork, the map screen's state while it is open: its resources, the cursor and the marker sprites.

Declared in definitions.h.

Fields

NameDescription
Uint16vramBlockOwns the marker tiles.
Uint16windowSlotThe resource slot of the name window's tiles.
FIXEDxThe cursor's screen column, 16.16 pixels.
FIXEDzThe cursor's screen row, 16.16 pixels.
Uint8unusedAfterZ [6]No code names them.
Sint16shownThe WORLD_MAP_PLACE whose name is drawn; -1 for none.
Uint8unusedAfterShown [4]No code names them.
FIXEDspeedThe cursor's speed, 16.16 pixels per tick.
void *windowThe name window.
WORLD_MAP_MARKERmarkers [129]The marker sprites.
Sint32 *cursorThe cursor the picture scrolls to.
FIXEDscrollXThe picture's scroll, 16.16 pixels.
Sint32scrollZ
struct { Sint16x, y, width, height, nameBox ; Sint16 y; Sint16 width; Sint16 height; } nameBoxThe box of the place name the map
Sint16centeredNonzero draws the whole world (RESOURCE_WORLD_MAP_PICTURE) at the origin rather than about the cursor (fdMapScreenDraw).
Uint16mode0 to look, nonzero to choose a destination.
FIXEDsearchXWhere the nearest-place search looks from in place of
FIXEDsearchZthe cursor, 16.16 pixels, when nonzero; the field engine only ever clears it.

Description

WorldMapStateWork, the map screen's state while it is open: its resources, the cursor and the marker sprites.

struct WORLD_MAP_STATE

Referenced by fdMapScreenDraw(), fdMapScreenInit(), fdMapScreenShow(), fdMapScreenStepToPlace(), fdMapScreenUpdateMarkers() and WorldMapStateWork.

Definition at line 1604 of file definitions.h.

Fields in detail

vramBlock

Uint16 vramBlock

Owns the marker tiles.

windowSlot

Uint16 windowSlot

The resource slot of the name window's tiles.

x

FIXED x

The cursor's screen column, 16.16 pixels.

z

FIXED z

The cursor's screen row, 16.16 pixels.

unusedAfterZ

Uint8 unusedAfterZ[6]

No code names them.

shown

Sint16 shown

The WORLD_MAP_PLACE whose name is drawn; -1 for none.

unusedAfterShown

Uint8 unusedAfterShown[4]

No code names them.

speed

FIXED speed

The cursor's speed, 16.16 pixels per tick.

window

void *window

The name window.

markers

WORLD_MAP_MARKER markers[129]

The marker sprites.

cursor

Sint32 *cursor

The cursor the picture scrolls to.

scrollX

FIXED scrollX

The picture's scroll, 16.16 pixels.

scrollZ

Sint32 scrollZ

x, y, width, height, nameBox

struct { Sint16 x; Sint16 y; Sint16 width; Sint16 height; } nameBox

The box of the place name the map

screen shows, in pixels.

centered

Sint16 centered

Nonzero draws the whole world (RESOURCE_WORLD_MAP_PICTURE) at the origin rather than about the cursor (fdMapScreenDraw).

mode

Uint16 mode

0 to look, nonzero to choose a destination.

searchX

FIXED searchX

Where the nearest-place search looks from in place of

searchZ

FIXED searchZ

the cursor, 16.16 pixels, when nonzero; the field engine only ever clears it.