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
| Name | Description | |
|---|---|---|
Uint16 | vramBlock | Owns the marker tiles. |
Uint16 | windowSlot | The resource slot of the name window's tiles. |
FIXED | x | The cursor's screen column, 16.16 pixels. |
FIXED | z | The cursor's screen row, 16.16 pixels. |
Uint8 | unusedAfterZ [6] | No code names them. |
Sint16 | shown | The WORLD_MAP_PLACE whose name is drawn; -1 for none. |
Uint8 | unusedAfterShown [4] | No code names them. |
FIXED | speed | The cursor's speed, 16.16 pixels per tick. |
void * | window | The name window. |
WORLD_MAP_MARKER | markers [129] | The marker sprites. |
Sint32 * | cursor | The cursor the picture scrolls to. |
FIXED | scrollX | The picture's scroll, 16.16 pixels. |
Sint32 | scrollZ | |
struct { Sint16 | x, y, width, height, nameBox ; Sint16 y; Sint16 width; Sint16 height; } nameBox | The box of the place name the map |
Sint16 | centered | Nonzero draws the whole world (RESOURCE_WORLD_MAP_PICTURE) at the origin rather than about the cursor (fdMapScreenDraw). |
Uint16 | mode | 0 to look, nonzero to choose a destination. |
FIXED | searchX | Where the nearest-place search looks from in place of |
FIXED | searchZ | the 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.