~ubuntu-branches/ubuntu/precise/openarena/precise

« back to all changes in this revision

Viewing changes to code/botlib/be_aas_move.h

  • Committer: Bazaar Package Importer
  • Author(s): Bruno "Fuddl" Kleinert
  • Date: 2007-01-20 12:28:09 UTC
  • Revision ID: james.westby@ubuntu.com-20070120122809-2yza5ojt7nqiyiam
Tags: upstream-0.6.0
ImportĀ upstreamĀ versionĀ 0.6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 Quake III Arena source code; 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_move.h
 
25
 *
 
26
 * desc:                AAS
 
27
 *
 
28
 * $Archive: /source/code/botlib/be_aas_move.h $
 
29
 *
 
30
 *****************************************************************************/
 
31
 
 
32
#ifdef AASINTERN
 
33
extern aas_settings_t aassettings;
 
34
#endif //AASINTERN
 
35
 
 
36
//movement prediction
 
37
int AAS_PredictClientMovement(struct aas_clientmove_s *move,
 
38
                                                        int entnum, vec3_t origin,
 
39
                                                        int presencetype, int onground,
 
40
                                                        vec3_t velocity, vec3_t cmdmove,
 
41
                                                        int cmdframes,
 
42
                                                        int maxframes, float frametime,
 
43
                                                        int stopevent, int stopareanum, int visualize);
 
44
//predict movement until bounding box is hit
 
45
int AAS_ClientMovementHitBBox(struct aas_clientmove_s *move,
 
46
                                                                int entnum, vec3_t origin,
 
47
                                                                int presencetype, int onground,
 
48
                                                                vec3_t velocity, vec3_t cmdmove,
 
49
                                                                int cmdframes,
 
50
                                                                int maxframes, float frametime,
 
51
                                                                vec3_t mins, vec3_t maxs, int visualize);
 
52
//returns true if on the ground at the given origin
 
53
int AAS_OnGround(vec3_t origin, int presencetype, int passent);
 
54
//returns true if swimming at the given origin
 
55
int AAS_Swimming(vec3_t origin);
 
56
//returns the jump reachability run start point
 
57
void AAS_JumpReachRunStart(struct aas_reachability_s *reach, vec3_t runstart);
 
58
//returns true if against a ladder at the given origin
 
59
int AAS_AgainstLadder(vec3_t origin);
 
60
//rocket jump Z velocity when rocket-jumping at origin
 
61
float AAS_RocketJumpZVelocity(vec3_t origin);
 
62
//bfg jump Z velocity when bfg-jumping at origin
 
63
float AAS_BFGJumpZVelocity(vec3_t origin);
 
64
//calculates the horizontal velocity needed for a jump and returns true this velocity could be calculated
 
65
int AAS_HorizontalVelocityForJump(float zvel, vec3_t start, vec3_t end, float *velocity);
 
66
//
 
67
void AAS_SetMovedir(vec3_t angles, vec3_t movedir);
 
68
//
 
69
int AAS_DropToFloor(vec3_t origin, vec3_t mins, vec3_t maxs);
 
70
//
 
71
void AAS_InitSettings(void);