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

be_aas_bsp.h File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define MAX_EPAIRKEY   128

Functions

qboolean AAS_AreasConnected (int area1, int area2)
int AAS_BoxEntities (vec3_t absmins, vec3_t absmaxs, int *list, int maxcount)
void AAS_BSPModelMinsMaxsOrigin (int modelnum, vec3_t angles, vec3_t mins, vec3_t maxs, vec3_t origin)
int AAS_FloatForBSPEpairKey (int ent, char *key, float *value)
qboolean AAS_inPHS (vec3_t p1, vec3_t p2)
qboolean AAS_inPVS (vec3_t p1, vec3_t p2)
int AAS_IntForBSPEpairKey (int ent, char *key, int *value)
int AAS_NextBSPEntity (int ent)
int AAS_PointContents (vec3_t point)
bsp_trace_t AAS_Trace (vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end, int passent, int contentmask)
int AAS_ValueForBSPEpairKey (int ent, char *key, char *value, int size)
int AAS_VectorForBSPEpairKey (int ent, char *key, vec3_t v)


Define Documentation

#define MAX_EPAIRKEY   128
 

Definition at line 58 of file be_aas_bsp.h.

Referenced by AAS_BestReachableFromJumpPadArea(), AAS_FloatForBSPEpairKey(), AAS_GetJumpPadInfo(), AAS_IntForBSPEpairKey(), AAS_Reachability_Elevator(), AAS_Reachability_FuncBobbing(), AAS_Reachability_JumpPad(), AAS_Reachability_Teleport(), AAS_SetWeaponJumpAreaFlags(), AAS_VectorForBSPEpairKey(), BotInitInfoEntities(), BotInitLevelItems(), and BotSetBrushModelTypes().


Function Documentation

qboolean AAS_AreasConnected int  area1,
int  area2
 

int AAS_BoxEntities vec3_t  absmins,
vec3_t  absmaxs,
int *  list,
int  maxcount
 

Definition at line 242 of file be_aas_bspq3.c.

00243 {
00244     return 0;
00245 } //end of the function AAS_BoxEntities

void AAS_BSPModelMinsMaxsOrigin int  modelnum,
vec3_t  angles,
vec3_t  mins,
vec3_t  maxs,
vec3_t  origin
 

Definition at line 212 of file be_aas_bspq3.c.

References botimport, and botlib_import_s::BSPModelMinsMaxsOrigin.

Referenced by AAS_GetJumpPadInfo(), AAS_Reachability_Elevator(), AAS_Reachability_FuncBobbing(), AAS_Reachability_Teleport(), AAS_UpdateEntity(), BotFuncBobStartEnd(), BotOnMover(), MoverBottomCenter(), and MoverDown().

00213 {
00214     botimport.BSPModelMinsMaxsOrigin(modelnum, angles, mins, maxs, origin);
00215 } //end of the function AAS_BSPModelMinsMaxs

int AAS_FloatForBSPEpairKey int  ent,
char *  key,
float *  value
 

Definition at line 323 of file be_aas_bspq3.c.

References AAS_ValueForBSPEpairKey(), atof(), MAX_EPAIRKEY, and value.

Referenced by AAS_GetJumpPadInfo(), AAS_Reachability_Elevator(), AAS_Reachability_FuncBobbing(), AAS_Reachability_Teleport(), BotInitInfoEntities(), and BotInitLevelItems().

00324 {
00325     char buf[MAX_EPAIRKEY];
00326     
00327     *value = 0;
00328     if (!AAS_ValueForBSPEpairKey(ent, key, buf, MAX_EPAIRKEY)) return qfalse;
00329     *value = atof(buf);
00330     return qtrue;
00331 } //end of the function AAS_FloatForBSPEpairKey

Here is the call graph for this function:

qboolean AAS_inPHS vec3_t  p1,
vec3_t  p2
 

Definition at line 202 of file be_aas_bspq3.c.

References p2, and qboolean.

00203 {
00204     return qtrue;
00205 } //end of the function AAS_inPHS

qboolean AAS_inPVS vec3_t  p1,
vec3_t  p2
 

Definition at line 191 of file be_aas_bspq3.c.

References botimport, botlib_import_s::inPVS, p2, and qboolean.

00192 {
00193     return botimport.inPVS(p1, p2);
00194 } //end of the function AAS_InPVS

int AAS_IntForBSPEpairKey int  ent,
char *  key,
int *  value
 

Definition at line 338 of file be_aas_bspq3.c.

References AAS_ValueForBSPEpairKey(), atoi, MAX_EPAIRKEY, and value.

Referenced by AAS_Reachability_FuncBobbing(), AAS_SetWeaponJumpAreaFlags(), AAS_TravelFlagsForTeam(), and BotInitLevelItems().

00339 {
00340     char buf[MAX_EPAIRKEY];
00341     
00342     *value = 0;
00343     if (!AAS_ValueForBSPEpairKey(ent, key, buf, MAX_EPAIRKEY)) return qfalse;
00344     *value = atoi(buf);
00345     return qtrue;
00346 } //end of the function AAS_IntForBSPEpairKey

Here is the call graph for this function:

int AAS_NextBSPEntity int  ent  ) 
 

Definition at line 252 of file be_aas_bspq3.c.

References bspworld, and bsp_s::numentities.

Referenced by AAS_BestReachableFromJumpPadArea(), AAS_GetJumpPadInfo(), AAS_Reachability_Elevator(), AAS_Reachability_FuncBobbing(), AAS_Reachability_JumpPad(), AAS_Reachability_Teleport(), AAS_SetWeaponJumpAreaFlags(), BotInitInfoEntities(), BotInitLevelItems(), and BotSetBrushModelTypes().

00253 {
00254     ent++;
00255     if (ent >= 1 && ent < bspworld.numentities) return ent;
00256     return 0;
00257 } //end of the function AAS_NextBSPEntity

int AAS_PointContents vec3_t  point  ) 
 

Definition at line 160 of file be_aas_bspq3.c.

References botimport, point, and botlib_import_s::PointContents.

Referenced by AAS_ClientMovementPrediction(), AAS_Reachability_Grapple(), AAS_Reachability_Jump(), AAS_Reachability_Swim(), AAS_Swimming(), BotFinishTravel_WaterJump(), BotGapDistance(), and BotInitLevelItems().

00161 {
00162     return botimport.PointContents(point);
00163 } //end of the function AAS_PointContents

bsp_trace_t AAS_Trace vec3_t  start,
vec3_t  mins,
vec3_t  maxs,
vec3_t  end,
int  passent,
int  contentmask
 

Definition at line 147 of file be_aas_bspq3.c.

References botimport, bsp_trace_t, and botlib_import_s::Trace.

Referenced by AAS_DropToFloor(), AAS_Reachability_Grapple(), AAS_WeaponJumpZVelocity(), BotCheckBlocked(), BotExportTest(), BotInitLevelItems(), BotItemGoalInVisButNotVisible(), BotOnMover(), BotOnTopOfEntity(), BotReachabilityArea(), BotTravel_Grapple(), and BotVisible().

00148 {
00149     bsp_trace_t bsptrace;
00150     botimport.Trace(&bsptrace, start, mins, maxs, end, passent, contentmask);
00151     return bsptrace;
00152 } //end of the function AAS_Trace

int AAS_ValueForBSPEpairKey int  ent,
char *  key,
char *  value,
int  size
 

Definition at line 279 of file be_aas_bspq3.c.

References AAS_BSPEntityInRange(), bsp_epair_t, bspworld, bsp_s::entities, bsp_entity_s::epairs, bsp_epair_s::key, bsp_epair_s::next, strcmp(), strncpy(), value, and bsp_epair_s::value.

Referenced by AAS_BestReachableFromJumpPadArea(), AAS_FloatForBSPEpairKey(), AAS_GetJumpPadInfo(), AAS_IntForBSPEpairKey(), AAS_Reachability_Elevator(), AAS_Reachability_FuncBobbing(), AAS_Reachability_JumpPad(), AAS_Reachability_Teleport(), AAS_SetWeaponJumpAreaFlags(), AAS_VectorForBSPEpairKey(), BotInitInfoEntities(), BotInitLevelItems(), and BotSetBrushModelTypes().

00280 {
00281     bsp_epair_t *epair;
00282 
00283     value[0] = '\0';
00284     if (!AAS_BSPEntityInRange(ent)) return qfalse;
00285     for (epair = bspworld.entities[ent].epairs; epair; epair = epair->next)
00286     {
00287         if (!strcmp(epair->key, key))
00288         {
00289             strncpy(value, epair->value, size-1);
00290             value[size-1] = '\0';
00291             return qtrue;
00292         } //end if
00293     } //end for
00294     return qfalse;
00295 } //end of the function AAS_FindBSPEpair

Here is the call graph for this function:

int AAS_VectorForBSPEpairKey int  ent,
char *  key,
vec3_t  v
 

Definition at line 302 of file be_aas_bspq3.c.

References AAS_ValueForBSPEpairKey(), MAX_EPAIRKEY, sscanf(), v, v1, v2, and VectorClear.

Referenced by AAS_GetJumpPadInfo(), AAS_Reachability_Elevator(), AAS_Reachability_FuncBobbing(), AAS_Reachability_Teleport(), AAS_SetWeaponJumpAreaFlags(), BotInitInfoEntities(), and BotInitLevelItems().

00303 {
00304     char buf[MAX_EPAIRKEY];
00305     double v1, v2, v3;
00306 
00307     VectorClear(v);
00308     if (!AAS_ValueForBSPEpairKey(ent, key, buf, MAX_EPAIRKEY)) return qfalse;
00309     //scanf into doubles, then assign, so it is vec_t size independent
00310     v1 = v2 = v3 = 0;
00311     sscanf(buf, "%lf %lf %lf", &v1, &v2, &v3);
00312     v[0] = v1;
00313     v[1] = v2;
00314     v[2] = v3;
00315     return qtrue;
00316 } //end of the function AAS_VectorForBSPEpairKey

Here is the call graph for this function:


Generated on Thu Aug 25 12:38:53 2005 for Quake III Arena by  doxygen 1.3.9.1