Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

be_aas_move.h

Go to the documentation of this file.
00001 /*
00002 ===========================================================================
00003 Copyright (C) 1999-2005 Id Software, Inc.
00004 
00005 This file is part of Quake III Arena source code.
00006 
00007 Quake III Arena source code is free software; you can redistribute it
00008 and/or modify it under the terms of the GNU General Public License as
00009 published by the Free Software Foundation; either version 2 of the License,
00010 or (at your option) any later version.
00011 
00012 Quake III Arena source code is distributed in the hope that it will be
00013 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Foobar; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020 ===========================================================================
00021 */
00022 
00023 /*****************************************************************************
00024  * name:        be_aas_move.h
00025  *
00026  * desc:        AAS
00027  *
00028  * $Archive: /source/code/botlib/be_aas_move.h $
00029  *
00030  *****************************************************************************/
00031 
00032 #ifdef AASINTERN
00033 extern aas_settings_t aassettings;
00034 #endif //AASINTERN
00035 
00036 //movement prediction
00037 int AAS_PredictClientMovement(struct aas_clientmove_s *move,
00038                             int entnum, vec3_t origin,
00039                             int presencetype, int onground,
00040                             vec3_t velocity, vec3_t cmdmove,
00041                             int cmdframes,
00042                             int maxframes, float frametime,
00043                             int stopevent, int stopareanum, int visualize);
00044 //predict movement until bounding box is hit
00045 int AAS_ClientMovementHitBBox(struct aas_clientmove_s *move,
00046                                 int entnum, vec3_t origin,
00047                                 int presencetype, int onground,
00048                                 vec3_t velocity, vec3_t cmdmove,
00049                                 int cmdframes,
00050                                 int maxframes, float frametime,
00051                                 vec3_t mins, vec3_t maxs, int visualize);
00052 //returns true if on the ground at the given origin
00053 int AAS_OnGround(vec3_t origin, int presencetype, int passent);
00054 //returns true if swimming at the given origin
00055 int AAS_Swimming(vec3_t origin);
00056 //returns the jump reachability run start point
00057 void AAS_JumpReachRunStart(struct aas_reachability_s *reach, vec3_t runstart);
00058 //returns true if against a ladder at the given origin
00059 int AAS_AgainstLadder(vec3_t origin);
00060 //rocket jump Z velocity when rocket-jumping at origin
00061 float AAS_RocketJumpZVelocity(vec3_t origin);
00062 //bfg jump Z velocity when bfg-jumping at origin
00063 float AAS_BFGJumpZVelocity(vec3_t origin);
00064 //calculates the horizontal velocity needed for a jump and returns true this velocity could be calculated
00065 int AAS_HorizontalVelocityForJump(float zvel, vec3_t start, vec3_t end, float *velocity);
00066 //
00067 void AAS_SetMovedir(vec3_t angles, vec3_t movedir);
00068 //
00069 int AAS_DropToFloor(vec3_t origin, vec3_t mins, vec3_t maxs);
00070 //
00071 void AAS_InitSettings(void);

Generated on Thu Aug 25 12:37:09 2005 for Quake III Arena by  doxygen 1.3.9.1