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.
Declared in world_map.h.
Fields
| Name | Description | |
|---|---|---|
Uint8 | place | The place's number: FLAG_PLACE_VISITED(place) marks it visited, and a zero ends the table. |
Uint8 | markers | Its markers on the map screen, a nibble each: the low one is shown, the high one only while MapScreenFirstListOnly is set (fdWorldMapPlaceGetMarker). |
Sint16 | sprite | The actor the World Map places there (scWorldMapUpdatePlacedActors): its sprite, place in pixels and facing, and the flag it is shown by (-1 always; bit 12 set: shown while the rest is set, else while clear). |
Sint16 | x | |
Sint16 | z | |
Uint16 | facing | |
Sint16 | shownFlag | |
Sint16 | visitScene | The scene and entrance whose arrival marks it visited |
Sint16 | visitEntrance | (fdWorldMapMarkPlaceVisited), and whose area name the map screen shows for it; an entrance of -1 matches any. |
Sint16 | scene | Where choosing it leads. |
Sint16 | entrance | That scene's entrance. |
Description
A World Map destination, keyed by its number (fdWorldMapMarkPlaceVisited sets
FLAG_PLACE_VISITED(place)); fdWorldMapPlacesGetTable returns them, ended by a
place 0.
struct WORLD_MAP_PLACE
Referenced by fdFlagEntriesGetValue(), fdMapScreenShow(), fdMapScreenStepToPlace(), fdMapScreenUpdateMarkers(), fdWorldMapMarkPlaceVisited(), fdWorldMapPlaceGetMarker(), fdWorldMapPlacesGetTable(), scWorldMapUpdatePlacedActors() and WorldMapPlaces.
Definition at line 29 of file world_map.h.
Fields in detail
place
Uint8 place
The place's number: FLAG_PLACE_VISITED(place) marks it
visited, and a zero ends the table.
markers
Uint8 markers
Its markers on the map screen, a nibble each: the low one
is shown, the high one only while MapScreenFirstListOnly
is set (fdWorldMapPlaceGetMarker).
sprite
Sint16 sprite
The actor the World Map places there (scWorldMapUpdatePlacedActors): its
sprite, place in pixels and facing, and the flag it is shown by (-1
always; bit 12 set: shown while the rest is set, else while clear).
x
Sint16 x
z
Sint16 z
facing
Uint16 facing
shownFlag
Sint16 shownFlag
visitScene
Sint16 visitScene
The scene and entrance whose arrival marks it visited
visitEntrance
Sint16 visitEntrance
(fdWorldMapMarkPlaceVisited), and whose area name the
map screen shows for it; an entrance of -1 matches
any.
scene
Sint16 scene
Where choosing it leads.
entrance
Sint16 entrance
That scene's entrance.