be_aas_reach.h (2828B)
1 /* 2 =========================================================================== 3 Copyright (C) 1999-2005 Id Software, Inc. 4 5 This file is part of Quake III Arena source code. 6 7 Quake III Arena source code is free software; you can redistribute it 8 and/or modify it under the terms of the GNU General Public License as 9 published by the Free Software Foundation; either version 2 of the License, 10 or (at your option) any later version. 11 12 Quake III Arena source code is distributed in the hope that it will be 13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with Foobar; if not, write to the Free Software 19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 =========================================================================== 21 */ 22 23 /***************************************************************************** 24 * name: be_aas_reach.h 25 * 26 * desc: AAS 27 * 28 * $Archive: /source/code/botlib/be_aas_reach.h $ 29 * 30 *****************************************************************************/ 31 32 #ifdef AASINTERN 33 //initialize calculating the reachabilities 34 void AAS_InitReachability(void); 35 //continue calculating the reachabilities 36 int AAS_ContinueInitReachability(float time); 37 // 38 int AAS_BestReachableLinkArea(aas_link_t *areas); 39 #endif //AASINTERN 40 41 //returns true if the are has reachabilities to other areas 42 int AAS_AreaReachability(int areanum); 43 //returns the best reachable area and goal origin for a bounding box at the given origin 44 int AAS_BestReachableArea(vec3_t origin, vec3_t mins, vec3_t maxs, vec3_t goalorigin); 45 //returns the best jumppad area from which the bbox at origin is reachable 46 int AAS_BestReachableFromJumpPadArea(vec3_t origin, vec3_t mins, vec3_t maxs); 47 //returns the next reachability using the given model 48 int AAS_NextModelReachability(int num, int modelnum); 49 //returns the total area of the ground faces of the given area 50 float AAS_AreaGroundFaceArea(int areanum); 51 //returns true if the area is crouch only 52 int AAS_AreaCrouch(int areanum); 53 //returns true if a player can swim in this area 54 int AAS_AreaSwim(int areanum); 55 //returns true if the area is filled with a liquid 56 int AAS_AreaLiquid(int areanum); 57 //returns true if the area contains lava 58 int AAS_AreaLava(int areanum); 59 //returns true if the area contains slime 60 int AAS_AreaSlime(int areanum); 61 //returns true if the area has one or more ground faces 62 int AAS_AreaGrounded(int areanum); 63 //returns true if the area has one or more ladder faces 64 int AAS_AreaLadder(int areanum); 65 //returns true if the area is a jump pad 66 int AAS_AreaJumpPad(int areanum); 67 //returns true if the area is donotenter 68 int AAS_AreaDoNotEnter(int areanum);