be_aas_entity.h (2497B)
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_entity.h 25 * 26 * desc: AAS 27 * 28 * $Archive: /source/code/botlib/be_aas_entity.h $ 29 * 30 *****************************************************************************/ 31 32 #ifdef AASINTERN 33 //invalidates all entity infos 34 void AAS_InvalidateEntities(void); 35 //unlink not updated entities 36 void AAS_UnlinkInvalidEntities(void); 37 //resets the entity AAS and BSP links (sets areas and leaves pointers to NULL) 38 void AAS_ResetEntityLinks(void); 39 //updates an entity 40 int AAS_UpdateEntity(int ent, bot_entitystate_t *state); 41 //gives the entity data used for collision detection 42 void AAS_EntityBSPData(int entnum, bsp_entdata_t *entdata); 43 #endif //AASINTERN 44 45 //returns the size of the entity bounding box in mins and maxs 46 void AAS_EntitySize(int entnum, vec3_t mins, vec3_t maxs); 47 //returns the BSP model number of the entity 48 int AAS_EntityModelNum(int entnum); 49 //returns the origin of an entity with the given model number 50 int AAS_OriginOfMoverWithModelNum(int modelnum, vec3_t origin); 51 //returns the best reachable area the entity is situated in 52 int AAS_BestReachableEntityArea(int entnum); 53 //returns the info of the given entity 54 void AAS_EntityInfo(int entnum, aas_entityinfo_t *info); 55 //returns the next entity 56 int AAS_NextEntity(int entnum); 57 //returns the origin of the entity 58 void AAS_EntityOrigin(int entnum, vec3_t origin); 59 //returns the entity type 60 int AAS_EntityType(int entnum); 61 //returns the model index of the entity 62 int AAS_EntityModelindex(int entnum); 63