Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

/apps/sample/sample.cpp File Reference

#include "common.h"
#include "sample.h"
#include "aStar.h"
#include "praStar.h"
#include "searchUnit.h"
#include "sharedAMapGroup.h"
#include "mapCliqueAbstraction.h"
#include "mapQuadTreeAbstraction.h"
#include "radiusAbstraction.h"
#include "mapFlatAbstraction.h"
#include "clusterAbstraction.h"

Include dependency graph for sample.cpp:

Include dependency graph

Functions

void processStats (statCollection *)
 This function is called each time a unitSimulation is deallocated to allow any necessary stat processing beforehand.

void createSimulation (unitSimulation *&unitSim)
 This function is used to allocate the unit simulated that you want to run.

void frameCallback (unitSimulation *us)
 This function is called once after each [time-step and frame draw] You can do any high level processing, drawing, etc in this function.

void initializeHandlers ()
 Allows you to install any keyboard handlers needed for program interaction.

int myCLHandler (char *argument[], int maxNumArgs)
void myDisplayHandler (unitSimulation *unitSim, tKeyboardModifier mod, char key)
 Key handler for simulation and display related stuff.

void myRandomUnitKeyHandler (unitSimulation *unitSim, tKeyboardModifier mod, char)
void myPathfindingKeyHandler (unitSimulation *unitSim, tKeyboardModifier mod, char)
 Key handler for Nathan's algorithms.

bool myClickHandler (unitSimulation *unitSim, int, int, point3d loc, tButtonType button, tMouseEventType mType)

Variables

bool mouseTracking
int px1
int py1
int px2
int py2
int absType = 3

Function Documentation

void createSimulation (  unitSimulation *&  unitSim  ) 
 

This function is used to allocate the unit simulated that you want to run.

Any parameters or other experimental setup can be done at this time.

void frameCallback (  unitSimulation *  us  ) 
 

This function is called once after each [time-step and frame draw] You can do any high level processing, drawing, etc in this function.

void initializeHandlers (   ) 
 

Allows you to install any keyboard handlers needed for program interaction.

int myCLHandler (  char *  argument[],
int  maxNumArgs
) 
 

bool myClickHandler (  unitSimulation *  unitSim,
int  ,
int  ,
point3d  loc,
tButtonType  button,
tMouseEventType  mType
) 
 

void myDisplayHandler (  unitSimulation *  unitSim,
tKeyboardModifier  mod,
char  key
) 
 

Key handler for simulation and display related stuff.

void myPathfindingKeyHandler (  unitSimulation *  unitSim,
tKeyboardModifier  mod,
char  key
) 
 

Key handler for Nathan's algorithms.

void myRandomUnitKeyHandler (  unitSimulation *  unitSim,
tKeyboardModifier  mod,
char 
) 
 

void processStats (  statCollection *  sC  ) 
 

This function is called each time a unitSimulation is deallocated to allow any necessary stat processing beforehand.


Variable Documentation

int absType = 3
 

bool mouseTracking
 

int px1
 

int px2
 

int py1
 

int py2
 


Generated on Tue Aug 18 03:35:45 2009 for HOG by doxygen 1.3.4