struct MAP_SCREEN_STATE
The map screen's state while fdMapScreenShow owns MapGridMetatileBuffer. More…
Declared in script_commands_map_screen.c.
Fields
| Name | Description | |
|---|---|---|
Uint16 | markerVramBlock | owns the four generated marker tiles |
Uint16 | cursorVramBlock | owns the cursor picture's tiles |
FIELD_COORDINATE | cursorX | screen column, 16.16 pixels |
FIELD_COORDINATE | cursorY | screen row, 16.16 pixels |
Uint8 | unreadAfterCursor [6] | not read by this screen |
Sint16 | namedMarker | actor whose name is drawn; -1 clears the name |
Uint8 | unreadAfterName [4] | not read by this screen |
FIXED | cursorSpeed | 16.16 screen pixels per tick |
WINDOW * | nameWindow | owned until this screen closes |
ANIMATION_SPR_PART | markers [MAP_SCREEN_MARKER_CAPACITY + 1] |
Description
The map screen's state while fdMapScreenShow owns MapGridMetatileBuffer.
markers packs the visible areas' markers from the start, then the tick
round the nearest; the last entry is the cursor.
struct MAP_SCREEN_STATE
Referenced by fdMapScreenInit(), fdMapScreenRelease() and fdMapScreenUpdateMarkers().
Definition at line 59 of file script_commands_map_screen.c.
Fields in detail
markerVramBlock
Uint16 markerVramBlock
owns the four generated marker tiles
cursorVramBlock
Uint16 cursorVramBlock
owns the cursor picture's tiles
cursorX
FIELD_COORDINATE cursorX
screen column, 16.16 pixels
cursorY
FIELD_COORDINATE cursorY
screen row, 16.16 pixels
unreadAfterCursor
Uint8 unreadAfterCursor[6]
not read by this screen
namedMarker
Sint16 namedMarker
actor whose name is drawn; -1 clears the name
unreadAfterName
Uint8 unreadAfterName[4]
not read by this screen
cursorSpeed
FIXED cursorSpeed
16.16 screen pixels per tick
nameWindow
WINDOW *nameWindow
owned until this screen closes
markers
ANIMATION_SPR_PART markers[MAP_SCREEN_MARKER_CAPACITY + 1]