|
Wing Commander II
Reconstructed Win32 source (1996)
|
Navigation map. More...
#include "game.h"Go to the source code of this file.
Macros | |
| #define | NAV_C |
Functions | |
| short | TryPlaceNavMapLabel (short x, short y, short width, short force) |
| void | DrawNavTextLine (unsigned char alignment, unsigned short colour, const char *format,...) |
| void | SetNavMapCoordinateScaling (short enabled) |
| void | ScaleNavMapMarkerSize (short *size) |
| void | ScaleNavMapCoordinates (short *x, short *y, short mapX, short mapY) |
| void | nav_getxy (short *x, short *y, int worldX, int worldZ) |
| void | CheckPoint (short x, short y) |
| void | IncludeNavMapWorldPoint (int worldX, int worldZ) |
| void | SetScale (void) |
| void | set_sphere_point (const MissionShipRecord *record, FixedVector *position) |
| void | Build_objective_list (void) |
| short | NavMapPointInsideReservedArea (short area, short x, short y) |
| short | NavMapLabelFits (short x, short y, short width, short height) |
| short | NavMapLabelPositionAvailable (short x, short y, short width, short height) |
| void | ResetNavMapReservedAreas (void) |
| void | ReserveNavMapArea (short x, short y, short width, short height) |
| void | ResetNavMapLabels (void) |
| void | PlaceNavMapLabel (short x, short y, unsigned short colour, const char *text) |
| short | ObjectivesShareNavLabel (short objective, short other) |
| short | hidden_objective (short objective) |
| short | visited (short objective) |
| short | achieved (short objective) |
| void | AddUniqueObjectiveNavLabel (short x, short y, unsigned short colour, const char *text, short objective, short missionShip) |
| short | IsPointInNavMapLabel (short labelIndex, short x, short y) |
| void | DrawViewportLine (Viewport *viewport, short x1, short y1, short x2, short y2, short colour) |
| void | DrawViewportBorder (Viewport *viewport, short left, short top, short right, short bottom, short colour) |
| void | DrawNavMapLabels (void) |
| void | DrawNavRectangleMarker (short x, short y, short size, short shadow, unsigned short colour, short reserve) |
| short | find_ships_sphere (short missionShip) |
| void | SetTextContext (TextContext *context) |
| void | DrawNavSquareOutline (Viewport *viewport, short x, short y, short size, signed char colour) |
| void | DrawNavSquareMarker (short x, short y, short size, short shadow, short colour, short reserve) |
| void | AddFixedVectors (const FixedVector *left, const FixedVector *right, FixedVector *sum) |
| void | DrawNavTriangleOutline (Viewport *viewport, short x, short y, short size, signed char colour) |
| void | DrawNavTriangleMarker (short x, short y, short size, short shadow, unsigned short colour, short reserve) |
| void | DrawNavPlayerMarker (short colour, short reserve) |
| void | DrawNavCrossMarker (short x, short y, short size, short shadow, unsigned short colour, short reserve) |
| short | IsObjectiveInDisplayedSystem (short objective) |
| void | SetScreenClipRect (unsigned short a, unsigned short b, unsigned short c, unsigned short d) |
| void | DrawNavHazardMarker (FixedVector navPosition, FixedVector offset, short size, unsigned short markerColour, unsigned short textColour, const char *text) |
| void | DrawNavMapBriefingBeacons (void) |
| void | BuildMap (short showPlayer) |
| void | UpdateInflightNavText (short showColon) |
| void | FormatNavCoordinates (unsigned char *out) |
| void | DrawSelectedNavLegendEntry (const char *text, short navPoint) |
| void | DrawNavMapLegend (void) |
| char * | nav_note (short objective) |
| void | DrawNavLocationReadout (const char *title, short showFlightData) |
| void | BriefingMap_LoadShapes (void) |
| void | BriefingMap_DisplayMap (void) |
| short | SelectNavObjectiveAtPoint (short mouseX, short mouseY) |
| void | CentreMouseOnCurrentNavObjective (void) |
| void | ShowConfedNavScan (short refresh) |
| void | FollowSelectedObjectiveSystem (void) |
| void | InflightComputer (void) |
Variables | |
| short | g_nNavMapCoordinateScaling = 0 |
| short | g_nNavMapScale = 1 |
| NavMapObjectiveStyle | g_aNavMapObjectiveStyles [12] |
| unsigned char * | g_pNavMapShape = 0 |
| short | g_nNavMapLabelCount = 0 |
| short | g_nNavMapReservedAreaCount = 0 |
| unsigned char * | g_pNavLocationText = 0 |
| char * | g_apszShipMissionTypeNames [14] |
| char | g_szNoFurtherObjectives [32] |
| short | g_bBriefingMapActive = 0 |
| int | g_bInflightComputerActive = 0 |
| short | g_nCurStellarSystem |
| short | g_nNavPlotMaxX |
| short | g_nNavmapMapMinimumX |
| unsigned short | g_awNavObjectiveLabelIndex [8] |
| short | g_nNavmapMapMaximumY |
| short | g_13_nNavmapMapCentreX |
| short | g_2_nNavMapMinimumYValue |
| TextContext | g_stNavMapTextCtx |
| short | g_nNavMapCentreY |
| TextContext | g_5_stNavLabelTextContextInfo |
| CampaignDate | g_1_stElapsedCampaignDate |
| void * | g_4_pDigiData |
| unsigned short | g_wDigiLeft |
Navigation map.
Definition in file nav.c.
| void AddFixedVectors | ( | const FixedVector * | left, |
| const FixedVector * | right, | ||
| FixedVector * | sum ) |
| void AddUniqueObjectiveNavLabel | ( | short | x, |
| short | y, | ||
| unsigned short | colour, | ||
| const char * | text, | ||
| short | objective, | ||
| short | missionShip ) |
Definition at line 419 of file nav.c.
References AddUniqueObjectiveNavLabel(), g_aMissionObjectives, hidden_objective(), ObjectivesShareNavLabel(), and PlaceNavMapLabel().
Referenced by AddUniqueObjectiveNavLabel(), BuildMap(), and DrawNavMapBriefingBeacons().
Definition at line 968 of file nav.c.
References AllocateViewport(), BriefingMap_DisplayMap(), BriefingMap_LoadShapes(), DrawNavLocationReadout(), free_viewport(), g_101_stScrViewInfo, g_36_apTextGlyphs, g_cSecondaryViewBufferColour, g_pNavLocationText, g_pNavMapShape, g_stSecondaryViewBufferBlock, ReleasePacketHandle(), ReleasePacketSlot(), and Viewport::top.
Referenced by BriefingMap_DisplayMap(), and UpdateMap().
Definition at line 953 of file nav.c.
References AllocateViewport(), BriefingMap_LoadShapes(), FetchDiskPacketRetrying(), g_cMissionObjectiveCount, g_cSecondaryViewBufferColour, g_pNavMapShape, g_stSecondaryViewBufferBlock, LocateMobileObjective(), ReportOutOfMemoryAndExit(), and SetScreenClipRect().
Referenced by BriefingMap_DisplayMap(), BriefingMap_LoadShapes(), and InflightComputer().
Definition at line 193 of file nav.c.
References Build_objective_list(), MissionObjectiveSource::description, MissionObjective::displayName, MissionObjective::field_8, MissionObjective::flags, g_69_aMissionObjectiveSources, g_abFlightPath, g_aMissionNavPoints, g_aMissionObjectives, g_aMissionShips, g_cCurrentNavPointIndex, g_cCurrentObjective, g_cMissionObjectiveCount, MissionObjective::index, MissionObjectiveSource::index, MissionObjective::name, nav_getxy(), MissionNavPoint::position, MissionObjective::position, RefreshObjectiveShipNavPoints(), set_new_objective(), set_sphere_point(), SetNavMapCoordinateScaling(), MissionObjective::type, MissionObjectiveSource::type, FixedVector::x, and FixedVector::z.
Referenced by Build_objective_list(), prepare_mission(), and UpdateMap().
| void BuildMap | ( | short | showPlayer | ) |
Definition at line 671 of file nav.c.
References achieved(), AddUniqueObjectiveNavLabel(), TextContext::alignment, BuildMap(), PilotProfile::callsign, DrawNavCrossMarker(), DrawNavHazardMarker(), DrawNavMapBriefingBeacons(), DrawNavMapLabels(), DrawNavPlayerMarker(), DrawNavRectangleMarker(), DrawNavSquareMarker(), DrawNavTriangleMarker(), DrawSpriteDefault(), DrawViewportPixel(), g_1_stElapsedCampaignDate, g_5_stNavLabelTextContextInfo, g_6_szDefaultTextBufferText, g_aMissionNavPoints, g_aMissionObjectives, g_aMissionShips, g_aNavMapObjectiveStyles, g_aShipPosition, g_awNavObjectiveLabelIndex, g_bPrimaryViewBufferColour, g_cCurrentObjective, g_cMissionObjectiveCount, g_cRedColour, g_cYellowColour, g_nCurStellarSystem, g_nNavMapLabelCount, g_pNavMapShape, g_stCurrentPilotProfile, g_stSecondaryViewBufferBlock, g_ucAsteroidNavMarkerColour, g_ucPlayerNavLabelColour, g_ucPrimaryTextColour, hidden_objective(), InitializeTextContextFromFont(), IsObjectiveInDisplayedSystem(), NavMapObjectiveStyle::labelColour, NavMapObjectiveStyle::markerColour, NavMapObjectiveStyle::markerSize, NavMapObjectiveStyle::markerType, MissionNavPoint::missionShips, mobile_objective(), nav_getxy(), objective_name(), MissionShipRecord::objectType, PlaceNavMapLabel(), MissionNavPoint::position, MissionShipRecord::position, ResetNavMapLabels(), ResetNavMapReservedAreas(), ScaleNavMapCoordinates(), SetScale(), SetScreenClipRect(), SetTextContext(), MissionShipRecord::speed, TextContext::text, MissionObjective::type, NavMapObjectiveStyle::unvisitedColour, TextContext::viewport, visited(), and CampaignDate::year.
Referenced by BuildMap(), and DrawNavLocationReadout().
Definition at line 1035 of file nav.c.
References CentreMouseOnCurrentNavObjective(), g_abFlightPath, g_aMissionObjectives, g_cCurrentNavPointIndex, ScaleNavMapCoordinates(), and SetPersonnelMousePosition().
Referenced by CentreMouseOnCurrentNavObjective(), and InflightComputer().
| void CheckPoint | ( | short | x, |
| short | y ) |
Definition at line 119 of file nav.c.
References CheckPoint(), g_2_nNavMapMinimumYValue, g_nNavmapMapMaximumY, g_nNavmapMapMinimumX, g_nNavPlotMaxX, MaxShort(), and MinShort().
Referenced by CheckPoint(), IncludeNavMapWorldPoint(), and SetScale().
| void DrawNavCrossMarker | ( | short | x, |
| short | y, | ||
| short | size, | ||
| short | shadow, | ||
| unsigned short | colour, | ||
| short | reserve ) |
Definition at line 560 of file nav.c.
References DrawNavCrossMarker(), DrawViewportLine(), g_5_stNavLabelTextContextInfo, ReserveNavMapArea(), TextContext::viewport, and void().
Referenced by BuildMap(), and DrawNavCrossMarker().
| void DrawNavHazardMarker | ( | FixedVector | navPosition, |
| FixedVector | offset, | ||
| short | size, | ||
| unsigned short | markerColour, | ||
| unsigned short | textColour, | ||
| const char * | text ) |
Definition at line 614 of file nav.c.
References AddFixedVectors(), DrawNavHazardMarker(), DrawNavRectangleMarker(), nav_getxy(), PlaceNavMapLabel(), ScaleNavMapMarkerSize(), FixedVector::x, and FixedVector::z.
Referenced by BuildMap(), and DrawNavHazardMarker().
| void DrawNavLocationReadout | ( | const char * | title, |
| short | showFlightData ) |
Definition at line 885 of file nav.c.
References TextContext::alignment, AllocateTaggedMemory(), BuildMap(), ClearViewport(), CopyViewportContents(), TextContext::cursorX, TextContext::cursorY, DrawNavLocationReadout(), DrawNavMapLegend(), DrawNavTextLine(), g_101_stScrViewInfo, g_13_stMissionHeaderBlock, g_5_abMissionAuxBlockBytes, g_6_szDefaultTextBufferText, g_abSeriesAuxData, g_aMissionShips, g_apszShipMissionTypeNames, g_aShipPosition, g_cCurrentObjective, g_cSecondaryViewBufferColour, g_nSelectedCampaignSlot, g_pNavLocationText, g_stNavMapTextCtx, g_stSecondaryViewBufferBlock, g_ucDefaultTextColour, g_ucPrimaryTextColour, InitializeTextContextFromFont(), nav_note(), OpenDataFileOrDie(), ReadDataFileAtOffset(), SetScreenClipRect(), SetTextContext(), TextContext::text, and TextContext::viewport.
Referenced by BriefingMap_DisplayMap(), DrawNavLocationReadout(), and ShowConfedNavScan().
Definition at line 646 of file nav.c.
References NavMapBeacon::active, AddUniqueObjectiveNavLabel(), DrawNavMapBriefingBeacons(), DrawNavSquareMarker(), DrawViewportPixel(), g_abMissionBriefingData, g_stSecondaryViewBufferBlock, g_ucDefaultTextColour, g_ucNavObjectiveMarkerColour, g_ucPrimaryTextColour, NavMapBeacon::name, nav_getxy(), NavMapBeacon::position, ScaleNavMapCoordinates(), FixedVector::x, and FixedVector::z.
Referenced by BuildMap(), and DrawNavMapBriefingBeacons().
Definition at line 458 of file nav.c.
References DrawFormattedText(), DrawNavMapLabels(), g_1_aNavMapLabels, and g_nNavMapLabelCount.
Referenced by BuildMap(), and DrawNavMapLabels().
Definition at line 855 of file nav.c.
References DrawNavMapLegend(), DrawSelectedNavLegendEntry(), g_cMissionObjectiveCount, g_stSecondaryViewBufferBlock, hidden_objective(), Viewport::left, SetTextCursor(), and visited().
Referenced by DrawNavLocationReadout(), and DrawNavMapLegend().
| void DrawNavPlayerMarker | ( | short | colour, |
| short | reserve ) |
Definition at line 629 of file nav.c.
References DrawNavPlayerMarker(), DrawNavSquareMarker(), DrawViewportPixel(), g_5_stNavLabelTextContextInfo, g_aShipPosition, Viewport::left, nav_getxy(), Viewport::top, and TextContext::viewport.
Referenced by BuildMap(), DrawNavPlayerMarker(), and InflightComputer().
| void DrawNavRectangleMarker | ( | short | x, |
| short | y, | ||
| short | size, | ||
| short | shadow, | ||
| unsigned short | colour, | ||
| short | reserve ) |
Definition at line 472 of file nav.c.
References DrawNavRectangleMarker(), DrawViewportEllipse(), DrawViewportEllipseShadow(), g_5_stNavLabelTextContextInfo, ReserveNavMapArea(), and TextContext::viewport.
Referenced by BuildMap(), DrawNavHazardMarker(), and DrawNavRectangleMarker().
| void DrawNavSquareMarker | ( | short | x, |
| short | y, | ||
| short | size, | ||
| short | shadow, | ||
| short | colour, | ||
| short | reserve ) |
Definition at line 503 of file nav.c.
References DrawNavSquareMarker(), DrawNavSquareOutline(), DrawViewportPixel(), g_5_stNavLabelTextContextInfo, ReserveNavMapArea(), TextContext::viewport, and void().
Referenced by BuildMap(), DrawNavMapBriefingBeacons(), DrawNavPlayerMarker(), and DrawNavSquareMarker().
Definition at line 494 of file nav.c.
References DrawNavSquareOutline(), and DrawViewportBorder().
Referenced by DrawNavSquareMarker(), and DrawNavSquareOutline().
| void DrawNavTextLine | ( | unsigned char | alignment, |
| unsigned short | colour, | ||
| const char * | format, | ||
| ... ) |
Definition at line 69 of file nav.c.
References TextContext::alignment, AppendTextCharacter(), TextContext::colour, DrawNavTextLine(), DrawTextString(), FormatTextTokens(), g_29_pCurrentTextContext, TextContext::text, and TextContext::textCursor.
Referenced by DrawNavLocationReadout(), DrawNavTextLine(), and DrawSelectedNavLegendEntry().
| void DrawNavTriangleMarker | ( | short | x, |
| short | y, | ||
| short | size, | ||
| short | shadow, | ||
| unsigned short | colour, | ||
| short | reserve ) |
Definition at line 543 of file nav.c.
References DrawNavTriangleMarker(), DrawNavTriangleOutline(), g_5_stNavLabelTextContextInfo, ReserveNavMapArea(), TextContext::viewport, and void().
Referenced by BuildMap(), and DrawNavTriangleMarker().
| void DrawNavTriangleOutline | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| short | size, | ||
| signed char | colour ) |
Definition at line 531 of file nav.c.
References DrawNavTriangleOutline(), and DrawViewportLine().
Referenced by DrawNavTriangleMarker(), and DrawNavTriangleOutline().
| void DrawSelectedNavLegendEntry | ( | const char * | text, |
| short | navPoint ) |
Definition at line 845 of file nav.c.
References DrawNavTextLine(), DrawSelectedNavLegendEntry(), g_cCurrentNavPointIndex, and g_cYellowColour.
Referenced by DrawNavMapLegend(), and DrawSelectedNavLegendEntry().
Definition at line 1068 of file nav.c.
References find_ships_sphere(), FollowSelectedObjectiveSystem(), g_1_stElapsedCampaignDate, g_aMissionNavPoints, g_aMissionObjectives, g_cCurrentObjective, g_nCurStellarSystem, MissionObjective::index, MissionNavPoint::systemIndex, and CampaignDate::year.
Referenced by FollowSelectedObjectiveSystem(), and InflightComputer().
| void FormatNavCoordinates | ( | unsigned char * | out | ) |
Definition at line 833 of file nav.c.
References FormatNavCoordinates(), g_1_stElapsedCampaignDate, and SplitGameClockTicksForNav().
Referenced by FormatNavCoordinates(), and InflightComputer().
| void IncludeNavMapWorldPoint | ( | int | worldX, |
| int | worldZ ) |
Definition at line 132 of file nav.c.
References CheckPoint(), IncludeNavMapWorldPoint(), and nav_getxy().
Referenced by IncludeNavMapWorldPoint(), and SetScale().
Definition at line 1096 of file nav.c.
References BriefingMap_LoadShapes(), CentreMouseOnCurrentNavObjective(), ClearViewport(), ConfigureInputPump(), InputManagerState::cursorShape, cycle_next_objective(), DIBslamReal(), DisableMouseCursorDrawing(), DrawNavPlayerMarker(), DrawSpriteDefault(), EnableMouseCursorDrawing(), EndCommMenu(), FetchDiskPacketRetrying(), FollowSelectedObjectiveSystem(), force_view(), FormatNavCoordinates(), free_view_buffer(), free_viewport(), g_101_stScrViewInfo, g_18_nInterfaceEventMode, g_18_pEventManager, g_196_nInputTimerTicks, g_1_cStoredViewDisplayModeValue, g_1_stElapsedCampaignDate, g_26_bMouseCursorEnabled, g_37_stPersonnelMousePointerState, g_3_stDefaultStringContext, g_4_pElapsedCampaignDatePointer, g_5_stNavLabelTextContextInfo, g_6_stHostMouseTextBlock, g_88_nEventRepeatDelayState, g_bInflightComputerActive, g_bPrimaryViewBufferColour, g_bSceneEscapeRequested, g_cCurrentNavPointIndex, g_cCurrentObjective, g_cMissionObjectiveCount, g_cSecondaryViewBufferColour, g_nCurStellarSystem, g_pNavMapShape, g_stNavMapTextCtx, g_stSecondaryViewBufferBlock, g_ucHomeCarrierScannerColour, get_player_input(), hidden_objective(), InflightComputer(), InitializeSpaceFlightInput(), IsObjectiveInDisplayedSystem(), MarkDibDirty(), message_showing(), PlaySfxWaveFileByNumber(), PollInputEvent(), PollJoystickButtonEvents(), ReleasePacketHandle(), SelectNavObjectiveAtPoint(), set_new_objective(), SetFrameTimerAndWait(), SetInputViewport(), SetMenuInputPump(), SetMouseCursorShape(), SetPersonnelMousePosition(), SetRectBounds(), SetTextContext(), ShowConfedNavScan(), InputEventState::status, UpdateInflightNavText(), TextContext::viewport, WaitForAnyInputPress(), HostMouseMessage::x, MouseCursorState::x, HostMouseMessage::y, MouseCursorState::y, and CampaignDate::year.
Referenced by InflightComputer(), and SelectCockpitVduMode().
| short IsObjectiveInDisplayedSystem | ( | short | objective | ) |
Definition at line 580 of file nav.c.
References find_ships_sphere(), g_1_stElapsedCampaignDate, g_aMissionNavPoints, g_aMissionObjectives, IsObjectiveInDisplayedSystem(), and CampaignDate::year.
Referenced by BuildMap(), InflightComputer(), IsObjectiveInDisplayedSystem(), nav_note(), SelectNavObjectiveAtPoint(), and update_objective_location().
| short IsPointInNavMapLabel | ( | short | labelIndex, |
| short | x, | ||
| short | y ) |
Definition at line 442 of file nav.c.
References g_1_aNavMapLabels, IsPointInNavMapLabel(), and NavMapLabel::x.
Referenced by IsPointInNavMapLabel(), and SelectNavObjectiveAtPoint().
| void nav_getxy | ( | short * | x, |
| short * | y, | ||
| int | worldX, | ||
| int | worldZ ) |
Definition at line 110 of file nav.c.
References g_nNavMapCoordinateScaling, nav_getxy(), and ScaleNavMapCoordinates().
Referenced by Build_objective_list(), BuildMap(), DrawNavHazardMarker(), DrawNavMapBriefingBeacons(), DrawNavPlayerMarker(), IncludeNavMapWorldPoint(), nav_getxy(), and SetScale().
| char * nav_note | ( | short | objective | ) |
Definition at line 872 of file nav.c.
References g_aMissionObjectives, g_szNoFurtherObjectives, IsObjectiveInDisplayedSystem(), MissionObjective::name, and nav_note().
Referenced by DrawNavLocationReadout(), and nav_note().
| short NavMapLabelFits | ( | short | x, |
| short | y, | ||
| short | width, | ||
| short | height ) |
Definition at line 275 of file nav.c.
References NavMapLabelFits().
Referenced by NavMapLabelFits(), NavMapLabelPositionAvailable(), and TryPlaceNavMapLabel().
| short NavMapLabelPositionAvailable | ( | short | x, |
| short | y, | ||
| short | width, | ||
| short | height ) |
Definition at line 283 of file nav.c.
References g_nNavMapReservedAreaCount, NavMapLabelFits(), NavMapLabelPositionAvailable(), and NavMapPointInsideReservedArea().
Referenced by NavMapLabelPositionAvailable(), and TryPlaceNavMapLabel().
| short NavMapPointInsideReservedArea | ( | short | area, |
| short | x, | ||
| short | y ) |
Definition at line 266 of file nav.c.
References ShortRect::bottom, g_aNavMapExclusionRects, ShortRect::left, NavMapPointInsideReservedArea(), ShortRect::right, and ShortRect::top.
Referenced by NavMapLabelPositionAvailable(), and NavMapPointInsideReservedArea().
| short ObjectivesShareNavLabel | ( | short | objective, |
| short | other ) |
Definition at line 390 of file nav.c.
References g_aMissionObjectives, and ObjectivesShareNavLabel().
Referenced by AddUniqueObjectiveNavLabel(), and ObjectivesShareNavLabel().
| void PlaceNavMapLabel | ( | short | x, |
| short | y, | ||
| unsigned short | colour, | ||
| const char * | text ) |
Definition at line 353 of file nav.c.
References NavMapLabel::colour, g_1_aNavMapLabels, g_nNavMapLabelCount, PlaceNavMapLabel(), ReserveNavMapArea(), NavMapLabel::text, and TryPlaceNavMapLabel().
Referenced by AddUniqueObjectiveNavLabel(), BuildMap(), DrawNavHazardMarker(), and PlaceNavMapLabel().
| void ReserveNavMapArea | ( | short | x, |
| short | y, | ||
| short | width, | ||
| short | height ) |
Definition at line 317 of file nav.c.
References ShortRect::bottom, g_aNavMapExclusionRects, g_nNavMapReservedAreaCount, ShortRect::left, ReserveNavMapArea(), ShortRect::right, and ShortRect::top.
Referenced by DrawNavCrossMarker(), DrawNavRectangleMarker(), DrawNavSquareMarker(), DrawNavTriangleMarker(), PlaceNavMapLabel(), and ReserveNavMapArea().
Definition at line 331 of file nav.c.
References g_nNavMapLabelCount, and ResetNavMapLabels().
Referenced by BuildMap(), and ResetNavMapLabels().
Definition at line 311 of file nav.c.
References g_nNavMapReservedAreaCount, and ResetNavMapReservedAreas().
Referenced by BuildMap(), and ResetNavMapReservedAreas().
| void ScaleNavMapCoordinates | ( | short * | x, |
| short * | y, | ||
| short | mapX, | ||
| short | mapY ) |
Definition at line 101 of file nav.c.
References g_13_nNavmapMapCentreX, g_nNavMapCentreY, g_nNavMapScale, and ScaleNavMapCoordinates().
Referenced by BuildMap(), CentreMouseOnCurrentNavObjective(), DrawNavMapBriefingBeacons(), nav_getxy(), ScaleNavMapCoordinates(), and SelectNavObjectiveAtPoint().
| void ScaleNavMapMarkerSize | ( | short * | size | ) |
Definition at line 95 of file nav.c.
References g_nNavMapScale, and ScaleNavMapMarkerSize().
Referenced by DrawNavHazardMarker(), and ScaleNavMapMarkerSize().
| short SelectNavObjectiveAtPoint | ( | short | mouseX, |
| short | mouseY ) |
Definition at line 993 of file nav.c.
References g_abFlightPath, g_aMissionObjectives, g_awNavObjectiveLabelIndex, g_cCurrentNavPointIndex, hidden_objective(), IsObjectiveInDisplayedSystem(), IsPointInNavMapLabel(), ScaleNavMapCoordinates(), SelectNavObjectiveAtPoint(), and set_new_objective().
Referenced by InflightComputer(), and SelectNavObjectiveAtPoint().
| void set_sphere_point | ( | const MissionShipRecord * | record, |
| FixedVector * | position ) |
| void SetNavMapCoordinateScaling | ( | short | enabled | ) |
Definition at line 89 of file nav.c.
References g_nNavMapCoordinateScaling, and SetNavMapCoordinateScaling().
Referenced by Build_objective_list(), SetNavMapCoordinateScaling(), and SetScale().
Definition at line 142 of file nav.c.
References CheckPoint(), find_ship_index(), g_13_nNavmapMapCentreX, g_2_nNavMapMinimumYValue, g_aMissionObjectives, g_aShipPosition, g_cMissionObjectiveCount, g_nNavMapCentreY, g_nNavmapMapMaximumY, g_nNavmapMapMinimumX, g_nNavMapScale, g_nNavPlotMaxX, IncludeNavMapWorldPoint(), MissionObjective::mapX, MissionObjective::mapY, MaxShort(), mobile_objective(), nav_getxy(), MissionObjective::position, SetNavMapCoordinateScaling(), SetScale(), and FixedVector::z.
Referenced by BuildMap(), and SetScale().
| void SetScreenClipRect | ( | unsigned short | a, |
| unsigned short | b, | ||
| unsigned short | c, | ||
| unsigned short | d ) |
Definition at line 607 of file nav.c.
References g_stSecondaryViewBufferBlock, SetRectBounds(), and SetScreenClipRect().
Referenced by BriefingMap_LoadShapes(), BuildMap(), DrawNavLocationReadout(), and SetScreenClipRect().
| void SetTextContext | ( | TextContext * | context | ) |
Definition at line 179 of file eventmgr.c.
| void ShowConfedNavScan | ( | short | refresh | ) |
Definition at line 1054 of file nav.c.
References DisableMouseCursorDrawing(), DrawNavLocationReadout(), EnableMouseCursorDrawing(), g_101_stScrViewInfo, SetRectBounds(), and ShowConfedNavScan().
Referenced by InflightComputer(), and ShowConfedNavScan().
| short TryPlaceNavMapLabel | ( | short | x, |
| short | y, | ||
| short | width, | ||
| short | force ) |
Definition at line 337 of file nav.c.
References g_1_aNavMapLabels, g_nNavMapLabelCount, NavMapLabelFits(), NavMapLabelPositionAvailable(), TryPlaceNavMapLabel(), NavMapLabel::x, and NavMapLabel::y.
Referenced by PlaceNavMapLabel(), and TryPlaceNavMapLabel().
| void UpdateInflightNavText | ( | short | showColon | ) |
Definition at line 801 of file nav.c.
References TextContext::cursorX, DrawFormattedText(), g_1_stElapsedCampaignDate, g_4_pElapsedCampaignDatePointer, g_stNavMapTextCtx, Viewport::left, SetTextContext(), Viewport::top, UpdateInflightNavText(), and TextContext::viewport.
Referenced by InflightComputer(), and UpdateInflightNavText().
| short g_13_nNavmapMapCentreX |
Definition at line 1243 of file nav.c.
Referenced by ScaleNavMapCoordinates(), and SetScale().
| CampaignDate g_1_stElapsedCampaignDate |
Definition at line 1248 of file nav.c.
Referenced by BuildMap(), FollowSelectedObjectiveSystem(), FormatNavCoordinates(), InflightComputer(), IsObjectiveInDisplayedSystem(), update_objective_location(), and UpdateInflightNavText().
| short g_2_nNavMapMinimumYValue |
Definition at line 1244 of file nav.c.
Referenced by CheckPoint(), and SetScale().
| void* g_4_pDigiData |
Definition at line 1249 of file nav.c.
Referenced by PlaySpeechPacketBuffer(), and SoundBlasterDspInterrupt().
| TextContext g_5_stNavLabelTextContextInfo |
Definition at line 1247 of file nav.c.
Referenced by BuildMap(), DrawNavCrossMarker(), DrawNavPlayerMarker(), DrawNavRectangleMarker(), DrawNavSquareMarker(), DrawNavTriangleMarker(), and InflightComputer().
| NavMapObjectiveStyle g_aNavMapObjectiveStyles[12] |
Definition at line 12 of file nav.c.
Referenced by BuildMap().
| char* g_apszShipMissionTypeNames[14] |
Definition at line 44 of file nav.c.
Referenced by DrawNavLocationReadout().
| unsigned short g_awNavObjectiveLabelIndex[8] |
Definition at line 1241 of file nav.c.
Referenced by BuildMap(), and SelectNavObjectiveAtPoint().
| short g_bBriefingMapActive = 0 |
Definition at line 62 of file nav.c.
Referenced by RefreshObjectiveShipNavPoints(), and UpdateMap().
| int g_bInflightComputerActive = 0 |
Definition at line 63 of file nav.c.
Referenced by InflightComputer(), and SetHudMessageText().
| short g_nCurStellarSystem |
Definition at line 1238 of file nav.c.
Referenced by BuildMap(), CompleteStarSystemJump(), FindNearestNavPoint(), FollowSelectedObjectiveSystem(), InflightComputer(), init_mission(), IsMissionObjectiveOutOfSystem(), set_up_action_sphere(), TryBeginStarSystemJump(), and update_objective_location().
| short g_nNavMapCentreY |
Definition at line 1246 of file nav.c.
Referenced by ScaleNavMapCoordinates(), and SetScale().
| short g_nNavMapCoordinateScaling = 0 |
Definition at line 10 of file nav.c.
Referenced by nav_getxy(), and SetNavMapCoordinateScaling().
| short g_nNavMapLabelCount = 0 |
Definition at line 41 of file nav.c.
Referenced by BuildMap(), DrawNavMapLabels(), PlaceNavMapLabel(), ResetNavMapLabels(), and TryPlaceNavMapLabel().
| short g_nNavmapMapMaximumY |
Definition at line 1242 of file nav.c.
Referenced by CheckPoint(), and SetScale().
| short g_nNavmapMapMinimumX |
Definition at line 1240 of file nav.c.
Referenced by CheckPoint(), and SetScale().
| short g_nNavMapReservedAreaCount = 0 |
Definition at line 42 of file nav.c.
Referenced by NavMapLabelPositionAvailable(), ReserveNavMapArea(), and ResetNavMapReservedAreas().
| short g_nNavMapScale = 1 |
Definition at line 11 of file nav.c.
Referenced by ScaleNavMapCoordinates(), ScaleNavMapMarkerSize(), and SetScale().
| short g_nNavPlotMaxX |
Definition at line 1239 of file nav.c.
Referenced by CheckPoint(), and SetScale().
| unsigned char* g_pNavLocationText = 0 |
Definition at line 43 of file nav.c.
Referenced by BriefingMap_DisplayMap(), DrawNavLocationReadout(), and free_3Space().
| unsigned char* g_pNavMapShape = 0 |
Definition at line 40 of file nav.c.
Referenced by BriefingMap_DisplayMap(), BriefingMap_LoadShapes(), BuildMap(), and InflightComputer().
| TextContext g_stNavMapTextCtx |
Definition at line 1245 of file nav.c.
Referenced by DrawNavLocationReadout(), InflightComputer(), and UpdateInflightNavText().
| char g_szNoFurtherObjectives[32] |
Definition at line 60 of file nav.c.
Referenced by nav_note().
| unsigned short g_wDigiLeft |
Definition at line 1250 of file nav.c.
Referenced by PlaySpeechPacketBuffer(), and SoundBlasterDspInterrupt().