00001 00005 /* 00006 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 CL_BATTLESCAPE_H_ 00026 #define CL_BATTLESCAPE_H_ 00027 00028 typedef struct { 00029 char name[MAX_VAR]; 00030 char cinfo[MAX_VAR]; 00031 } clientinfo_t; 00032 00038 typedef struct client_state_s { 00039 int time; 00041 camera_t cam; 00042 00043 le_t *teamList[MAX_ACTIVETEAM]; 00044 int numTeamList; 00045 int numAliensSpotted; 00046 00047 qboolean eventsBlocked; 00050 int pnum; 00051 int actTeam; 00053 char configstrings[MAX_CONFIGSTRINGS][MAX_TOKEN_CHARS]; 00054 00056 model_t *model_draw[MAX_MODELS]; 00057 const struct cBspModel_s *model_clip[MAX_MODELS]; 00058 00059 qboolean radarInited; 00061 clientinfo_t clientinfo[MAX_CLIENTS]; 00063 int mapMaxLevel; 00064 00066 int numMapParticles; 00067 00068 int numLMs; 00069 localModel_t LMs[MAX_LOCALMODELS]; 00070 00071 int numLEs; 00072 le_t LEs[MAX_EDICTS]; 00073 00074 const char *leInlineModelList[MAX_EDICTS + 1]; 00075 00076 qboolean spawned; 00079 mapData_t *mapData; 00080 00081 mapTiles_t *mapTiles; 00082 00083 chrList_t chrList; 00084 } client_state_t; 00085 00086 extern client_state_t cl; 00087 00088 qboolean CL_OnBattlescape(void); 00089 qboolean CL_BattlescapeRunning(void); 00090 int CL_GetHitProbability(const le_t* actor); 00091 qboolean CL_OutsideMap(const vec3_t impact, const float delta); 00092 char *CL_GetConfigString(int index); 00093 int CL_GetConfigStringInteger(int index); 00094 char *CL_SetConfigString(int index, struct dbuffer *msg); 00095 #ifdef DEBUG 00096 void Grid_DumpWholeClientMap_f(void); 00097 void Grid_DumpClientRoutes_f(void); 00098 #endif 00099 00100 #endif /* CL_BATTLESCAPE_H_ */