cp_radar.h
Go to the documentation of this file.00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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