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

be_aas_bspc.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.

Functions

void AAS_CalcReachAndClusters (struct quakefile_s *qf)


Function Documentation

void AAS_CalcReachAndClusters struct quakefile_s qf  ) 
 

Definition at line 260 of file be_aas_bspc.c.

References AAS_ContinueInitReachability(), AAS_InitAASLinkedEntities(), AAS_InitAASLinkHeap(), AAS_InitBotImport(), AAS_InitClustering(), AAS_InitReachability(), AAS_InitSettings(), AAS_LoadBSPFile(), AAS_SetViewPortalsAsClusterPortals(), aasworld, aas_s::bspchecksum, CM_InlineModel(), CM_LoadMap(), quakefile_s::filename, Log_Print(), aas_s::numclusters, quakefile_s::pakfile, qfalse, aas_s::reachabilitysize, strcpy(), time(), and worldmodel.

Referenced by main().

00261 {
00262     float time;
00263 
00264     Log_Print("loading collision map...\n");
00265     //
00266     if (!qf->pakfile[0]) strcpy(qf->pakfile, qf->filename);
00267     //load the map
00268     CM_LoadMap((char *) qf, qfalse, &aasworld.bspchecksum);
00269     //get a handle to the world model
00270     worldmodel = CM_InlineModel(0);     // 0 = world, 1 + are bmodels
00271     //initialize bot import structure
00272     AAS_InitBotImport();
00273     //load the BSP entity string
00274     AAS_LoadBSPFile();
00275     //init physics settings
00276     AAS_InitSettings();
00277     //initialize AAS link heap
00278     AAS_InitAASLinkHeap();
00279     //initialize the AAS linked entities for the new map
00280     AAS_InitAASLinkedEntities();
00281     //reset all reachabilities and clusters
00282     aasworld.reachabilitysize = 0;
00283     aasworld.numclusters = 0;
00284     //set all view portals as cluster portals in case we re-calculate the reachabilities and clusters (with -reach)
00285     AAS_SetViewPortalsAsClusterPortals();
00286     //calculate reachabilities
00287     AAS_InitReachability();
00288     time = 0;
00289     while(AAS_ContinueInitReachability(time)) time++;
00290     //calculate clusters
00291     AAS_InitClustering();
00292 } //end of the function AAS_CalcReachAndClusters

Here is the call graph for this function:


Generated on Thu Aug 25 12:47:24 2005 for Quake III Arena by  doxygen 1.3.9.1