include/field/world_map.h
The destinations the map screen marks. More…
Included by field_engine_internal.h, field_psynergy_internal.h, field_world_map.c and world_map_objects.c.
Structures
| Name | Description | |
|---|---|---|
struct | WORLD_MAP_PLACE | A World Map destination, keyed by its number (fdWorldMapMarkPlaceVisited sets FLAG_PLACE_VISITED(place)); fdWorldMapPlacesGetTable returns them, ended by a place 0. |
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_PLACE_VISITED_FIRST 0x180 | The game flags that mark each World Map place visited, counted from the first by the place's own number (WORLD_MAP_PLACE.place). |
#define | FLAG_PLACE_VISITED (place) ((place) + FLAG_PLACE_VISITED_FIRST) | |
#define | MAP_SCREEN_PLACE_COUNT 128 | The most places fdWorldMapPlacesGetTable lists. |
#define | STEP_CUE_AREA_BASE 100 | The step cue the actor of WorldMapPlacedActors' first place raises when touched; each next place's actor raises the next. |
#define | MAP_SCREEN_FIRST_TILE (BG_CHAR_SIZE / TILE_SIZE_8BPP) | The map screen's picture on BG1, in 256 colours: a ring of 32 by 24 tiles from char block 1 on, refilled as the screen scrolls. |
#define | MAP_SCREEN_TILE_ROWS 24 | |
#define | MAP_SCREEN_MAP_START (4 * BG_SCREEN_WIDTH) | |
#define | MAP_SCREEN_X (x) ((x) * 853 / 16384 - 269) | A World Map position, in whole pixels, as a point on the map screen. |
#define | MAP_SCREEN_Y (z) ((z) * 640 / 16384 - 112) | |
#define | MAP_SCREEN_MARKER_DEPTH 246 | The depth the map screen's markers and cursor are drawn at. |
Enumerations
| Name | Description | |
|---|---|---|
enum | WORLD_MAP_MARKER_KIND { WORLD_MAP_MARKER_NONE, WORLD_MAP_MARKER_SHIP } | WORLD_MAP_PLACE.markers, besides the marker pictures 1 to 14. |
Functions
| Name | Description | |
|---|---|---|
Uint32 | fdWorldMapPlaceGetMarker (const WORLD_MAP_PLACE *place) | The marker the map screen shows for a place: the low nibble of its markers (the high one while MapScreenFirstListOnly is set, which nothing does). |
Variables
| Name | Description | |
|---|---|---|
extern const Uint8 | fdWorldMapUpdateAffineLinesCode [] | fdWorldMapUpdateAffineLines' Thumb entry and ARM code (field_arm_entries.s), copied to RAM to run. |
Description
The destinations the map screen marks. Its state, WorldMapStateWork, is the
system library's (system/definitions.h), as the variable is.
Macros in detail
FLAG_PLACE_VISITED_FIRST
#define FLAG_PLACE_VISITED_FIRST 0x180
The game flags that mark each World Map place visited, counted from the first
by the place's own number (WORLD_MAP_PLACE.place).
Definition at line 14 of file world_map.h.
FLAG_PLACE_VISITED
#define FLAG_PLACE_VISITED(place) ((place) + FLAG_PLACE_VISITED_FIRST)
Referenced by fdMapScreenStepToPlace(), fdMapScreenUpdateMarkers() and fdWorldMapMarkPlaceVisited().
Definition at line 15 of file world_map.h.
MAP_SCREEN_PLACE_COUNT
#define MAP_SCREEN_PLACE_COUNT 128
The most places fdWorldMapPlacesGetTable lists.
Referenced by fdMapScreenInit(), fdMapScreenStepToPlace(), fdMapScreenUpdateMarkers(), scWorldMapStartPlacedActors() and scWorldMapUpdatePlacedActors().
Definition at line 58 of file world_map.h.
STEP_CUE_AREA_BASE
#define STEP_CUE_AREA_BASE 100
The step cue the actor of WorldMapPlacedActors' first place raises when
touched; each next place's actor raises the next.
Referenced by scWorldMapSelectExitByX(), scWorldMapSelectExitByZ() and scWorldMapUpdatePlacedActors().
Definition at line 61 of file world_map.h.
MAP_SCREEN_FIRST_TILE
#define MAP_SCREEN_FIRST_TILE (BG_CHAR_SIZE / TILE_SIZE_8BPP)
The map screen's picture on BG1, in 256 colours: a ring of 32 by 24 tiles from char block 1 on, refilled as the screen scrolls. BG1's map numbers its tiles from the ring's fifth row on, and round.
Referenced by fdMapScreenDraw(), fdMapScreenDrawColumn(), fdMapScreenDrawRow(), fdMapScreenShow() and fdWorldMapLoadGraphics().
Definition at line 65 of file world_map.h.
MAP_SCREEN_TILE_ROWS
#define MAP_SCREEN_TILE_ROWS 24
Referenced by fdMapScreenDraw(), fdMapScreenDrawColumn(), fdMapScreenDrawRow(), fdMapScreenShow() and fdWorldMapLoadGraphics().
Definition at line 66 of file world_map.h.
MAP_SCREEN_MAP_START
#define MAP_SCREEN_MAP_START (4 * BG_SCREEN_WIDTH)
Referenced by fdMapScreenDraw(), fdMapScreenDrawColumn(), fdMapScreenDrawRow() and fdMapScreenShow().
Definition at line 67 of file world_map.h.
MAP_SCREEN_X
#define MAP_SCREEN_X(x) ((x) * 853 / 16384 - 269)
A World Map position, in whole pixels, as a point on the map screen.
Referenced by fdMapScreenGetLeaderPoint(), fdMapScreenStepToPlace() and fdMapScreenUpdateMarkers().
Definition at line 70 of file world_map.h.
MAP_SCREEN_Y
#define MAP_SCREEN_Y(z) ((z) * 640 / 16384 - 112)
Referenced by fdMapScreenGetLeaderPoint(), fdMapScreenStepToPlace() and fdMapScreenUpdateMarkers().
Definition at line 71 of file world_map.h.
MAP_SCREEN_MARKER_DEPTH
#define MAP_SCREEN_MARKER_DEPTH 246
The depth the map screen's markers and cursor are drawn at.
Referenced by fdMapScreenUpdateMarkers().
Definition at line 74 of file world_map.h.
Enumerations in detail
WORLD_MAP_MARKER_KIND
enum WORLD_MAP_MARKER_KIND
WORLD_MAP_PLACE.markers, besides the marker pictures 1 to 14.
| Enumerator | Value | Description |
|---|---|---|
WORLD_MAP_MARKER_NONE | 0 | the place is not drawn |
WORLD_MAP_MARKER_SHIP | 15 | The ship's marker, drawn at the ship once it sails and the party is ashore. |
Definition at line 18 of file world_map.h.
Variables in detail
fdWorldMapUpdateAffineLinesCode
extern const Uint8 fdWorldMapUpdateAffineLinesCode[]
fdWorldMapUpdateAffineLines' Thumb entry and ARM code (field_arm_entries.s),
copied to RAM to run.
Referenced by fdWorldMapInitPerspective().
Definition at line 82 of file world_map.h.