cp_radar.h

Go to the documentation of this file.
00001 
00005 /*
00006 All original material Copyright (C) 2002-2010 UFO: Alien Invasion.
00007 
00008 This program is free software; you can redistribute it and/or
00009 modify it under the terms of the GNU General Public License
00010 as published by the Free Software Foundation; either version 2
00011 of the License, or (at your option) any later version.
00012 
00013 This program is distributed in the hope that it will be useful,
00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016 
00017 See the GNU General Public License for more details.
00018 
00019 You should have received a copy of the GNU General Public License
00020 along with this program; if not, write to the Free Software
00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00022 
00023 */
00024 
00025 #ifndef CLIENT_CL_RADAR_H
00026 #define CLIENT_CL_RADAR_H
00027 
00028 #define MAX_UFOONGEOSCAPE   8
00029 
00030 extern qboolean radarOverlayWasSet;
00031 
00032 extern const float RADAR_BASERANGE;
00033 extern const float RADAR_BASERTRACKINGANGE;
00034 extern const float RADAR_AIRCRAFTRANGE;
00035 extern const float RADAR_AIRCRAFTTRACKINGRANGE;
00036 
00037 typedef struct radar_s {
00038     int range;                      
00039     int trackingRange;              
00040     const struct aircraft_s* ufos[MAX_UFOONGEOSCAPE];   
00041     int numUFOs;                    
00042 } radar_t;
00043 
00044 void RADAR_UpdateStaticRadarCoverage(void);
00045 void RADAR_UpdateWholeRadarOverlay(void);
00046 void RADAR_DrawInMap(const struct uiNode_s* node, const radar_t* radar, const vec2_t pos);
00047 void RADAR_DeactivateRadarOverlay(void);
00048 void RADAR_NotifyUFORemoved(const struct aircraft_s* ufo, qboolean destroyed);
00049 void RADAR_Initialise(radar_t* radar, float range, float trackingRange, float level, qboolean updateSourceRadarMap);
00050 void RADAR_InitialiseUFOs(radar_t *radar);
00051 void RADAR_UpdateBaseRadarCoverage_f(void);
00052 void RADAR_UpdateInstallationRadarCoverage(struct installation_s *installation, const float radarRange, const float trackingRadarRange);
00053 void RADAR_AddDetectedUFOToEveryRadar(const struct aircraft_s const *ufo);
00054 qboolean RADAR_CheckRadarSensored(const vec2_t pos);
00055 qboolean RADAR_CheckUFOSensored(radar_t* radar, const vec2_t posRadar, const struct aircraft_s* ufo, qboolean detected);
00056 void RADAR_SetRadarAfterLoading(void);
00057 
00058 #endif

Generated by  doxygen 1.6.2