Header for Geoscape/Map management. More...
Go to the source code of this file.
Defines | |
#define | GLOBE_ROTATE -90 |
#define | ROTATE_SPEED 0.5 |
#define | KILOMETER_PER_DEGREE 111.2 |
Functions | |
nation_t * | MAP_GetNation (const vec2_t pos) |
Translate nation map color to nation. | |
qboolean | MAP_AllMapToScreen (const struct uiNode_s *node, const vec2_t pos, int *x, int *y, int *z) |
qboolean | MAP_MapToScreen (const struct uiNode_s *node, const vec2_t pos, int *x, int *y) |
void | MAP_Draw3DMarkerIfVisible (const struct uiNode_s *node, const vec2_t pos, float angle, const char *model, int skin) |
void | MAP_MapDrawEquidistantPoints (const struct uiNode_s *node, const vec2_t center, const float angle, const vec4_t color) |
float | MAP_AngleOfPath (const vec3_t start, const vec2_t end, vec3_t direction, vec3_t ortVector) |
Select which function should be used for calculating the direction of model on 2D or 3D geoscape. | |
void | MAP_MapCalcLine (const vec2_t start, const vec2_t end, mapline_t *line) |
Calculate the shortest way to go from start to end on a sphere. | |
void | MAP_DrawMap (const struct uiNode_s *node) |
void | MAP_CenterOnPoint_f (void) |
Switch to next model on 2D and 3D geoscape. | |
void | MAP_StopSmoothMovement (void) |
stop smooth translation on geoscape | |
base_t * | MAP_PositionCloseToBase (const vec2_t pos) |
Check if given pos is close to an existing base. | |
void | MAP_Scroll_f (void) |
Command binding for map scrolling. | |
void | MAP_Zoom_f (void) |
Command binding for map zooming. | |
void | MAP_MapClick (struct uiNode_s *node, int x, int y) |
Click on the map/geoscape. | |
void | MAP_ResetAction (void) |
No more special action in geoscape. | |
void | MAP_SelectAircraft (aircraft_t *aircraft) |
Select the specified aircraft in geoscape. | |
void | MAP_SelectUFO (aircraft_t *ufo) |
Select the specified ufo in geoscape. | |
void | MAP_SelectMission (mission_t *mission) |
Selected the specified mission. | |
void | MAP_NotifyMissionRemoved (const mission_t *mission) |
Notify that a mission has been removed. | |
void | MAP_NotifyUFORemoved (const aircraft_t *ufo, qboolean destroyed) |
Notify that a UFO has been removed. | |
void | MAP_NotifyAircraftRemoved (const aircraft_t *aircraft) |
Notify that an aircraft has been removed from game. | |
void | MAP_NotifyUFODisappear (const aircraft_t *ufo) |
Notify that a UFO disappears on radars. | |
void | MAP_InitStartup (void) |
Initialise MAP/Geoscape. | |
const char * | MAP_GetTerrainType (const byte *color) |
Translate color value to terrain type. | |
int | MAP_GetCivilianNumberByPosition (const vec2_t pos) |
Get number of civilian on a map at given position. | |
void | MAP_PrintParameterStringByPos (const vec2_t pos) |
Prints positions parameter in console. | |
void | MAP_CheckPositionBoundaries (float *pos) |
Check that a position (in latitude / longitude) is within boundaries. | |
qboolean | MAP_IsNight (const vec2_t pos) |
Check whether given position is Day or Night. | |
byte * | MAP_GetColor (const vec2_t pos, mapType_t type) |
Returns the color value from geoscape of a certain mask (terrain, culture or population) at a given position. | |
void | MAP_Init (void) |
qboolean | MAP_PositionFitsTCPNTypes (const vec2_t posT, const linkedList_t *terrainTypes, const linkedList_t *cultureTypes, const linkedList_t *populationTypes, const linkedList_t *nations) |
Checks for a given location, if it fulfills all criteria given via parameters (terrain, culture, population, nation type). | |
void | MAP_SetOverlay (const char *overlayID) |
Switch overlay (turn on / off). | |
void | MAP_DeactivateOverlay (const char *overlayID) |
Remove overlay. | |
void | MAP_UpdateGeoscapeDock (void) |
Will add missions and UFOs to the geoscape dock panel. | |
qboolean | MAP_IsRadarOverlayActivated (void) |
qboolean | MAP_IsXVIOverlayActivated (void) |
qboolean | MAP_IsNationOverlayActivated (void) |
Variables | |
cvar_t * | cl_geoscape_overlay |
cvar_t * | cl_mapzoommax |
cvar_t * | cl_mapzoommin |
cvar_t * | cl_3dmap |
Header for Geoscape/Map management.
Definition in file cp_map.h.
#define GLOBE_ROTATE -90 |
Definition at line 29 of file cp_map.h.
Referenced by CP_CampaignInit(), and MAP_StartCenter().
#define KILOMETER_PER_DEGREE 111.2 |
Definition at line 31 of file cp_map.h.
Referenced by AIR_GetOperationRange().
#define ROTATE_SPEED 0.5 |
Definition at line 30 of file cp_map.h.
Referenced by MAP_Scroll_f(), UI_MapNodeCapturedMouseMove(), and UI_ModelNodeCapturedMouseMove().
qboolean MAP_AllMapToScreen | ( | const struct uiNode_s * | node, | |
const vec2_t | pos, | |||
int * | x, | |||
int * | y, | |||
int * | z | |||
) |
Select which function should be used for calculating the direction of model on 2D or 3D geoscape.
[in] | start | Latitude and longitude of the position of the model. |
[in] | end | Latitude and longitude of aimed point. |
[in] | direction | vec3_t giving current direction of the model (NULL if the model is idle). |
[out] | ortVector | If not NULL, this will be filled with the normalized vector around which rotation allows to go toward direction . |
start
going toward end
. Zero value is the direction of North pole. Definition at line 992 of file cp_map.c.
References cvar_s::integer, MAP_AngleOfPath2D(), and MAP_AngleOfPath3D().
Referenced by AIRFIGHT_GetNextPointInPath(), MAP_DrawMapMarkers(), and MAP_DrawMapOnePhalanxAircraft().
void MAP_CenterOnPoint_f | ( | void | ) |
Switch to next model on 2D and 3D geoscape.
smoothRotation
to qtrue
to allow a smooth rotation in MAP_DrawMap. Definition at line 1253 of file cp_map.c.
References centerOnEventIdx, cvar_s::integer, MAP_GetGeoscapeAngle(), MAP_StartCenter(), smoothFinal2DGeoscapeCenter, smoothFinalGlobeAngle, and UI_GetActiveWindowName().
void MAP_CheckPositionBoundaries | ( | float * | pos | ) |
Check that a position (in latitude / longitude) is within boundaries.
[in,out] | pos | Pointer to the 2 elements vector giving the position. |
Definition at line 2329 of file cp_map.c.
Referenced by AIR_AircraftMakeMove(), AIR_Move(), and UFO_CampaignRunUFOs().
void MAP_DeactivateOverlay | ( | const char * | overlayID | ) |
Remove overlay.
[in] | overlayID | Name of the overlay you want to turn off. |
Definition at line 2725 of file cp_map.c.
References MAP_IsNationOverlayActivated(), MAP_IsRadarOverlayActivated(), MAP_IsXVIOverlayActivated(), and MAP_SetOverlay().
Referenced by MAP_DeactivateOverlay_f(), and MAP_ResetAction().
void MAP_Draw3DMarkerIfVisible | ( | const struct uiNode_s * | node, | |
const vec2_t | pos, | |||
float | angle, | |||
const char * | model, | |||
int | skin | |||
) |
void MAP_DrawMap | ( | const struct uiNode_s * | node | ) |
int MAP_GetCivilianNumberByPosition | ( | const vec2_t | pos | ) |
Get number of civilian on a map at given position.
[in] | pos | Position where the mission takes place. |
Definition at line 2290 of file cp_map.c.
References byte, Com_Error(), ERR_DROP, MAP_GetColor(), MapIsNopopulation, MapIsRural, MapIsSuburban, MapIsUrban, MapIsVillage, MapIsWater, and MAPTYPE_POPULATION.
Referenced by CP_CreateCivilianTeam().
Returns the color value from geoscape of a certain mask (terrain, culture or population) at a given position.
[in] | pos | vec2_t Value of position on map to get the color value from. pos is longitude and latitude |
[in] | type | determine the map to get the color from (there are different masks) one for the climazone (bases made use of this - there are grass, ice and desert base tiles available) and one for the nations |
Definition at line 2374 of file cp_map.c.
References byte, Com_Error(), cultureHeight, culturePic, cultureWidth, ERR_DROP, MAPTYPE_CULTURE, MAPTYPE_NATIONS, MAPTYPE_POPULATION, MAPTYPE_TERRAIN, nationsHeight, nationsPic, nationsWidth, populationHeight, populationPic, populationWidth, terrainHeight, terrainPic, and terrainWidth.
Referenced by AIRFIGHT_ActionsAfterAirfight(), CP_ChooseMap(), CP_CreateBattleParameters(), CP_GetRandomPosOnGeoscape(), CP_UpdateNationXVIInfection(), MAP_GetCivilianNumberByPosition(), MAP_GetCultureTypeByPos(), MAP_GetNation(), MAP_GetPopulationTypeByPos(), MAP_GetTerrainTypeByPos(), MAP_MapClick(), and MAP_PositionFitsTCPNTypes().
Translate nation map color to nation.
[in] | pos | Map Coordinates to get the nation from |
Definition at line 2154 of file cp_map.c.
References byte, ccs, nation_s::color, Com_DPrintf(), DEBUG_CLIENT, i, MAP_GetColor(), MAPTYPE_NATIONS, ccs_s::nations, ccs_s::numNations, and VectorCompare.
Referenced by AB_BaseSearchedByNations(), B_BuildBase_f(), CP_BuildBaseGovernmentLeave(), CP_ChangeNationHappiness_f(), CP_CreateCivilianTeam(), CP_HarvestMissionGo(), CP_ReconMissionGroundGo(), CP_SpawnCrashSiteMission(), CP_SpawnRescueMission(), CP_UpdateNationXVIInfection(), INS_BuildInstallation_f(), MAP_PositionFitsTCPNTypes(), and NAT_UpdateHappinessForAllNations().
const char* MAP_GetTerrainType | ( | const byte *const | color | ) |
Translate color value to terrain type.
[in] | color | the color value from the terrain mask |
Definition at line 2180 of file cp_map.c.
References MapIsArctic, MapIsCold, MapIsDesert, MapIsMountain, MapIsTropical, MapIsWasted, and MapIsWater.
Referenced by AIRFIGHT_ActionsAfterAirfight(), CP_CreateBattleParameters(), and MAP_GetTerrainTypeByPos().
void MAP_Init | ( | void | ) |
Definition at line 2489 of file cp_map.c.
References ccs, Com_Error(), cultureHeight, culturePic, cultureWidth, ccs_s::curCampaign, ERR_DROP, campaign_s::map, MAP_ResetAction(), MAP_UpdateGeoscapeDock(), Mem_Free, nationsHeight, nationsPic, nationsWidth, populationHeight, populationPic, populationWidth, R_LoadImage(), terrainHeight, terrainPic, terrainWidth, and va().
Referenced by CP_CampaignInit(), and CP_LoadXML().
void MAP_InitStartup | ( | void | ) |
Initialise MAP/Geoscape.
Definition at line 2781 of file cp_map.c.
References Cmd_AddCommand(), Com_Error(), CVAR_ARCHIVE, CVAR_DEVELOPER, Cvar_Get(), ERR_DROP, GEOSCAPE_IMAGE_MAX, geoscapeImageNames, geoscapeImages, i, it_pic, MAP_DeactivateOverlay_f(), MAP_MultiSelectExecuteAction_f(), MAP_ResetAction(), MAP_SelectObject_f(), MAP_SetOverlay_f(), R_FindImage(), and r_noTexture.
Referenced by CP_InitStartup().
qboolean MAP_IsNationOverlayActivated | ( | void | ) |
Definition at line 2768 of file cp_map.c.
References cvar_s::integer, and OVERLAY_NATION.
Referenced by MAP_DeactivateOverlay(), MAP_DrawMap(), and MAP_SetOverlay().
Check whether given position is Day or Night.
[in] | pos | Given position. |
Definition at line 2346 of file cp_map.c.
References ccs, COS_ALPHA, ccs_s::date, date_s::day, DAYS_PER_YEAR_AVG, date_s::sec, SECONDS_PER_DAY, SIN_ALPHA, and torad.
Referenced by B_AssembleMap(), CP_StartMissionMap(), and MAP_DrawMapOneMission().
qboolean MAP_IsRadarOverlayActivated | ( | void | ) |
Definition at line 2763 of file cp_map.c.
References cvar_s::integer, and OVERLAY_RADAR.
Referenced by B_BuildBase_f(), B_SelectBase(), CL_CampaignRunAircraft(), CP_CheckNewMissionDetectedOnGeoscape(), INS_BuildInstallation_f(), INS_SelectInstallation(), MAP_DeactivateOverlay(), MAP_DrawMap(), MAP_DrawMapOneBase(), MAP_DrawMapOneInstallation(), MAP_DrawMapOnePhalanxAircraft(), MAP_SetOverlay(), MAP_SetOverlay_f(), RADAR_DeactivateRadarOverlay(), and UFO_DetectNewUFO().
qboolean MAP_IsXVIOverlayActivated | ( | void | ) |
Definition at line 2773 of file cp_map.c.
References cvar_s::integer, and OVERLAY_XVI.
Referenced by MAP_DeactivateOverlay(), and MAP_DrawMap().
Calculate the shortest way to go from start to end on a sphere.
[in] | start | The point you start from |
[in] | end | The point you go to |
[out] | line | Contains the shortest path to go from start to end |
Definition at line 646 of file cp_map.c.
References CrossProduct(), mapline_s::distance, i, LINE_MAXPTS, LINE_MAXSEG, mapline_s::numPoints, mapline_s::point, PolarToVec(), todeg, torad, UFO_EPSILON, VecToPolar(), Vector2Set, VectorCompareEps(), VectorNormalize(), and VectorSet.
Referenced by AIR_AircraftReturnToBase(), AIR_SendAircraftPursuingUFO(), AIR_SendAircraftToMission(), MAP_MapClick(), UFO_SendPursuingAircraft(), and UFO_SendToDestination().
void MAP_MapClick | ( | struct uiNode_s * | node, | |
int | x, | |||
int | y | |||
) |
Click on the map/geoscape.
Definition at line 282 of file cp_map.c.
References _, AIR_AircraftHasEnoughFuel(), AIR_GetNextFromBase(), AIR_IsAircraftOnGeoscape(), AIR_TRANSIT, B_GetFoundedBaseByIDX(), ccs, CL_GameTimeStop(), Cmd_ExecuteString(), CP_MissionToTypeString(), Cvar_GetInteger(), linkedList_s::data, aircraft_s::fuel, i, aircraft_s::idx, INS_GetFoundedInstallationByIDX(), cvar_s::integer, mission_s::location, MA_NEWBASE, MA_NEWINSTALLATION, MA_UFORADAR, MAP3D_ScreenToMap(), MAP_GetColor(), MAP_GetIDXByMission(), MAP_IsMapPositionSelected(), MAP_MapCalcLine(), MAP_MultiSelectListAddItem(), MAP_ResetAction(), MAP_ScreenToMap(), ccs_s::mapAction, MapIsWater, MAPTYPE_TERRAIN, MAX_BASES, MAX_INSTALLATIONS, ccs_s::missions, MULTISELECT_MAXSELECT, MULTISELECT_TYPE_AIRCRAFT, MULTISELECT_TYPE_BASE, MULTISELECT_TYPE_INSTALLATION, MULTISELECT_TYPE_MISSION, MULTISELECT_TYPE_UFO, installation_s::name, aircraft_s::name, base_s::name, multiSelect_s::nbSelect, newBasePos, linkedList_s::next, ccs_s::numBases, ccs_s::numInstallations, ccs_s::numUFOs, mission_s::onGeoscape, aircraft_s::point, multiSelect_s::popupText, installation_s::pos, aircraft_s::pos, base_s::pos, mission_s::pos, pos, aircraft_s::route, ccs_s::selectedAircraft, mission_s::stage, STAGE_NOT_ACTIVE, aircraft_s::status, TEXT_MULTISELECTION, aircraft_s::time, UFO_AircraftToIDOnGeoscape(), UFO_IsUFOSeenOnGeoscape(), ccs_s::ufos, UI_PushWindow(), UI_RegisterText(), and Vector2Copy.
Referenced by UI_RegisterMapNode().
void MAP_MapDrawEquidistantPoints | ( | const struct uiNode_s * | node, | |
const vec2_t | center, | |||
const float | angle, | |||
const vec4_t | color | |||
) |
void MAP_NotifyAircraftRemoved | ( | const aircraft_t * | aircraft | ) |
Notify that an aircraft has been removed from game.
[in] | aircraft | Pointer to the aircraft has been removed |
[in] | destroyed | True if the UFO has been destroyed, false if it's been only set invisible (landed) |
Definition at line 2139 of file cp_map.c.
References ccs, ccs_s::interceptAircraft, MAP_ResetAction(), and ccs_s::selectedAircraft.
Referenced by AIR_DeleteAircraft().
void MAP_NotifyMissionRemoved | ( | const mission_t * | mission | ) |
Notify that a mission has been removed.
Definition at line 2106 of file cp_map.c.
References ccs, MAP_ResetAction(), MAP_UpdateGeoscapeDock(), and ccs_s::selectedMission.
Referenced by CP_BaseAttackMissionIsFailure(), and CP_MissionRemoveFromGeoscape().
void MAP_NotifyUFODisappear | ( | const aircraft_t * | ufo | ) |
Notify that a UFO disappears on radars.
Definition at line 2534 of file cp_map.c.
References ccs, MAP_ResetAction(), MAP_UpdateGeoscapeDock(), and ccs_s::selectedUFO.
Referenced by UFO_CampaignCheckEvents().
void MAP_NotifyUFORemoved | ( | const aircraft_t * | ufo, | |
qboolean | destroyed | |||
) |
Notify that a UFO has been removed.
[in] | ufo | Pointer to the ufo has been removed |
[in] | destroyed | True if the UFO has been destroyed, false if it's been only set invisible (landed) |
Definition at line 2120 of file cp_map.c.
References ccs, MAP_ResetAction(), MAP_UpdateGeoscapeDock(), and ccs_s::selectedUFO.
Referenced by CP_UFORemoveFromGeoscape().
Check if given pos is close to an existing base.
Definition at line 2437 of file cp_map.c.
References B_GetFoundedBaseByIDX(), GetDistanceOnGlobe(), MAX_BASES, MIN_DIST_BASE, and base_s::pos.
Referenced by AB_SetAlienBasePosition(), CP_HarvestMissionGo(), CP_ReconMissionGroundGo(), and CP_TerrorMissionGo().
qboolean MAP_PositionFitsTCPNTypes | ( | const vec2_t | pos, | |
const linkedList_t * | terrainTypes, | |||
const linkedList_t * | cultureTypes, | |||
const linkedList_t * | populationTypes, | |||
const linkedList_t * | nations | |||
) |
Checks for a given location, if it fulfills all criteria given via parameters (terrain, culture, population, nation type).
[in] | pos | Location to be tested |
[in] | terrainTypes | A linkedList_t containing a list of strings determining the terrain types to be tested for (e.g. "grass") may be NULL |
[in] | cultureTypes | A linkedList_t containing a list of strings determining the culture types to be tested for (e.g. "western") may be NULL |
[in] | populationTypes | A linkedList_t containing a list of strings determining the population types to be tested for (e.g. "suburban") may be NULL |
[in] | nations | A linkedList_t containing a list of strings determining the nations to be tested for (e.g. "asia") may be NULL |
Definition at line 2464 of file cp_map.c.
References nation_s::id, LIST_ContainsString(), MAP_GetColor(), MAP_GetCultureTypeByPos(), MAP_GetNation(), MAP_GetPopulationTypeByPos(), MAP_GetTerrainTypeByPos(), MapIsWater, MAPTYPE_TERRAIN, qfalse, and qtrue.
Referenced by CP_GetRandomPosOnGeoscapeWithParameters(), CP_MapIsSelectable(), and NAT_ScriptSanityCheck().
void MAP_PrintParameterStringByPos | ( | const vec2_t | pos | ) |
Prints positions parameter in console.
[in] | pos | Location (latitude, longitude) where you want to check parameters. |
Definition at line 2316 of file cp_map.c.
References Com_Printf(), MAP_GetCultureTypeByPos(), MAP_GetPopulationTypeByPos(), and MAP_GetTerrainTypeByPos().
Referenced by NAT_ScriptSanityCheck().
void MAP_ResetAction | ( | void | ) |
No more special action in geoscape.
Definition at line 2058 of file cp_map.c.
References ccs, ccs_s::interceptAircraft, MA_NONE, MAP_DeactivateOverlay(), ccs_s::mapAction, ccs_s::numBases, radarOverlayWasSet, ccs_s::selectedAircraft, ccs_s::selectedMission, and ccs_s::selectedUFO.
Referenced by B_SelectBase(), CL_GameAutoGo(), CL_PopupInterceptRClick_f(), INS_SelectInstallation(), MAP_DrawMap(), MAP_Init(), MAP_InitStartup(), MAP_MapClick(), MAP_MultiSelectExecuteAction_f(), MAP_NotifyAircraftRemoved(), MAP_NotifyMissionRemoved(), MAP_NotifyUFODisappear(), MAP_NotifyUFORemoved(), MAP_SelectAircraft(), MAP_SelectMission(), and MAP_SelectUFO().
void MAP_Scroll_f | ( | void | ) |
Command binding for map scrolling.
Definition at line 2591 of file cp_map.c.
References ccs_s::angles, ccs, ccs_s::center, Cmd_Argc(), Cmd_Argv(), Com_Printf(), i, cvar_s::integer, ccs_s::mapSize, PITCH, qtrue, ROTATE_SPEED, smoothDeltaLength, smoothDeltaZoom, smoothFinalGlobeAngle, smoothFinalZoom, smoothRotation, VectorCopy, VectorLength(), VectorSubtract, YAW, and ccs_s::zoom.
void MAP_SelectAircraft | ( | aircraft_t * | aircraft | ) |
Select the specified aircraft in geoscape.
Definition at line 2085 of file cp_map.c.
References ccs, MAP_ResetAction(), and ccs_s::selectedAircraft.
Referenced by AIM_AircraftStart_f(), AIR_MoveAircraftIntoNewHomebase(), CL_DisplayHomebasePopup(), MAP_GetGeoscapeAngle(), and MAP_MultiSelectExecuteAction_f().
void MAP_SelectMission | ( | mission_t * | mission | ) |
Selected the specified mission.
Definition at line 2094 of file cp_map.c.
References ccs, MA_INTERCEPT, MAP_ResetAction(), ccs_s::mapAction, and ccs_s::selectedMission.
Referenced by AIR_Move(), CP_BaseAttackStartMission(), MAP_GetGeoscapeAngle(), MAP_GetMissionAngle(), and MAP_MultiSelectExecuteAction_f().
void MAP_SelectUFO | ( | aircraft_t * | ufo | ) |
Select the specified ufo in geoscape.
Definition at line 2076 of file cp_map.c.
References ccs, MAP_ResetAction(), and ccs_s::selectedUFO.
Referenced by MAP_GetGeoscapeAngle(), MAP_GetUFOAngle(), and MAP_MultiSelectExecuteAction_f().
void MAP_SetOverlay | ( | const char * | overlayID | ) |
Switch overlay (turn on / off).
[in] | overlayID | Name of the overlay you want to switch. |
Definition at line 2673 of file cp_map.c.
References ccs, cvar_s::integer, MAP_IsNationOverlayActivated(), MAP_IsRadarOverlayActivated(), ccs_s::numBases, ccs_s::numInstallations, OVERLAY_NATION, OVERLAY_RADAR, OVERLAY_XVI, and RADAR_UpdateWholeRadarOverlay().
Referenced by B_BuildBase_f(), B_SelectBase(), CP_CheckNewMissionDetectedOnGeoscape(), INS_BuildInstallation_f(), INS_SelectInstallation(), MAP_DeactivateOverlay(), MAP_SetOverlay_f(), RADAR_DeactivateRadarOverlay(), and UFO_DetectNewUFO().
void MAP_StopSmoothMovement | ( | void | ) |
stop smooth translation on geoscape
Definition at line 1327 of file cp_map.c.
References qfalse, and smoothRotation.
Referenced by UI_MapNodeMouseDown(), and UI_MapNodeZoom().
void MAP_UpdateGeoscapeDock | ( | void | ) |
Will add missions and UFOs to the geoscape dock panel.
Definition at line 1735 of file cp_map.c.
References ccs, linkedList_s::data, mission_s::idx, mission_s::location, MAP_GetMissionModel(), MAP_GetShortMissionText(), MAP_GetUFOText(), ccs_s::missions, aircraft_s::model, linkedList_s::next, ccs_s::numUFOs, mission_s::onGeoscape, UFO_IsUFOSeenOnGeoscape(), ccs_s::ufos, and UI_ExecuteConfunc().
Referenced by CP_MissionAddToGeoscape(), MAP_Init(), MAP_NotifyMissionRemoved(), MAP_NotifyUFODisappear(), MAP_NotifyUFORemoved(), RADAR_SetRadarAfterLoading(), and UFO_DetectNewUFO().
void MAP_Zoom_f | ( | void | ) |
Command binding for map zooming.
Definition at line 2546 of file cp_map.c.
References ccs_s::angles, ccs, ccs_s::center, Cmd_Argc(), Cmd_Argv(), Com_Printf(), cvar_s::integer, qtrue, smoothDeltaLength, smoothDeltaZoom, smoothFinalGlobeAngle, smoothFinalZoom, smoothRotation, cvar_s::value, VectorCopy, and ccs_s::zoom.
3D geoscape or flat geoscape
Definition at line 46 of file cp_map.c.
Referenced by UI_MapNodeMouseDown(), and UI_MapNodeZoom().
Definition at line 50 of file cp_map.c.
Referenced by CP_CampaignExit(), CP_LoadXML(), and CP_SaveXML().
Definition at line 48 of file cp_map.c.
Referenced by UI_MapNodeCapturedMouseMove(), and UI_MapNodeZoom().
Definition at line 49 of file cp_map.c.
Referenced by UI_MapNodeCapturedMouseMove(), and UI_MapNodeZoom().