cp_map.h

Go to the documentation of this file.
00001 
00006 /*
00007 Copyright (C) 2002-2010 UFO: Alien Invasion.
00008 
00009 This program is free software; you can redistribute it and/or
00010 modify it under the terms of the GNU General Public License
00011 as published by the Free Software Foundation; either version 2
00012 of the License, or (at your option) any later version.
00013 
00014 This program is distributed in the hope that it will be useful,
00015 but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00017 
00018 See the GNU General Public License for more details.
00019 
00020 You should have received a copy of the GNU General Public License
00021 along with this program; if not, write to the Free Software
00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00023 
00024 */
00025 
00026 #ifndef CLIENT_CL_MAP_H
00027 #define CLIENT_CL_MAP_H
00028 
00029 #define GLOBE_ROTATE -90
00030 #define ROTATE_SPEED    0.5
00031 #define KILOMETER_PER_DEGREE    111.2       /* this is the conversion between distance in game (in degree) and km */
00032 
00033 extern cvar_t *cl_geoscape_overlay;
00034 extern cvar_t *cl_mapzoommax;
00035 extern cvar_t *cl_mapzoommin;
00036 extern cvar_t *cl_3dmap;
00037 
00038 /* prototype */
00039 struct uiNode_s;
00040 
00041 nation_t* MAP_GetNation(const vec2_t pos);
00042 qboolean MAP_AllMapToScreen(const struct uiNode_s* node, const vec2_t pos, int *x, int *y, int *z);
00043 qboolean MAP_MapToScreen(const struct uiNode_s* node, const vec2_t pos, int *x, int *y);
00044 void MAP_Draw3DMarkerIfVisible(const struct uiNode_s* node, const vec2_t pos, float angle, const char *model, int skin);
00045 void MAP_MapDrawEquidistantPoints(const struct uiNode_s* node, const vec2_t center, const float angle, const vec4_t color);
00046 float MAP_AngleOfPath(const vec3_t start, const vec2_t end, vec3_t direction, vec3_t ortVector);
00047 void MAP_MapCalcLine(const vec2_t start, const vec2_t end, mapline_t* line);
00048 void MAP_DrawMap(const struct uiNode_s* node);
00049 void MAP_CenterOnPoint_f(void);
00050 void MAP_StopSmoothMovement(void);
00051 base_t* MAP_PositionCloseToBase(const vec2_t pos);
00052 
00053 void MAP_Scroll_f(void);
00054 void MAP_Zoom_f(void);
00055 void MAP_MapClick(struct uiNode_s * node, int x, int y);
00056 void MAP_ResetAction(void);
00057 void MAP_SelectAircraft(aircraft_t* aircraft);
00058 void MAP_SelectUFO(aircraft_t* ufo);
00059 void MAP_SelectMission(mission_t* mission);
00060 void MAP_NotifyMissionRemoved(const mission_t* mission);
00061 void MAP_NotifyUFORemoved(const aircraft_t* ufo, qboolean destroyed);
00062 void MAP_NotifyAircraftRemoved(const aircraft_t* aircraft);
00063 void MAP_NotifyUFODisappear(const aircraft_t* ufo);
00064 void MAP_InitStartup(void);
00065 const char* MAP_GetTerrainType(const byte* color);
00066 int MAP_GetCivilianNumberByPosition(const vec2_t pos);
00067 void MAP_PrintParameterStringByPos(const vec2_t pos);
00068 void MAP_CheckPositionBoundaries(float *pos);
00069 qboolean MAP_IsNight(const vec2_t pos);
00070 byte *MAP_GetColor(const vec2_t pos, mapType_t type);
00071 void MAP_Init(void);
00072 qboolean MAP_PositionFitsTCPNTypes(const vec2_t posT, const linkedList_t* terrainTypes, const linkedList_t* cultureTypes, const linkedList_t* populationTypes, const linkedList_t* nations);
00073 void MAP_SetOverlay(const char *overlayID);
00074 void MAP_DeactivateOverlay(const char *overlayID);
00075 void MAP_UpdateGeoscapeDock(void);
00076 qboolean MAP_IsRadarOverlayActivated(void);
00077 qboolean MAP_IsXVIOverlayActivated(void);
00078 qboolean MAP_IsNationOverlayActivated(void);
00079 
00080 #endif /* CLIENT_CL_MAP_H */

Generated by  doxygen 1.6.2