All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Public Attributes | List of all members
ai::avoidset Struct Reference

#include <ai.hpp>


struct  obstacle

Public Member Functions

void clear ()
void add (void *owner, float above)
void add (void *owner, float above, int wp)
void add (avoidset &avoid)
void avoidnear (void *owner, float above, const vec &pos, float limit)
bool find (int n, fpsent *d) const
int remap (fpsent *d, int n, vec &pos, bool retry=false)

Public Attributes

vector< obstacleobstacles
vector< int > waypoints

Member Function Documentation

void ai::avoidset::add ( void owner,
float  above 

References obstacles.

Referenced by add(), and ai::avoid().

void ai::avoidset::add ( void owner,
float  above,
int  wp 
void ai::avoidset::add ( avoidset avoid)
void ai::avoidset::avoidnear ( void owner,
float  above,
const vec pos,
float  limit 
void ai::avoidset::clear ( )
bool ai::avoidset::find ( int  n,
fpsent d 
) const

References loopavoid.

Referenced by ai::checkroute(), and ai::randomnode().

int ai::avoidset::remap ( fpsent d,
int  n,
vec pos,
bool  retry = false 

Member Data Documentation

vector<obstacle> ai::avoidset::obstacles

Referenced by add(), clear(), and ai::render().

vector<int> ai::avoidset::waypoints

Referenced by add(), clear(), and ai::render().

The documentation for this struct was generated from the following files: