Artificial Intelligence
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes

OpenSteer::Obstacle Class Reference

#include <Obstacle.h>

Inheritance diagram for OpenSteer::Obstacle:
OpenSteer::AbstractObstacle OpenSteer::SphereObstacle

List of all members.

Public Types

enum  seenFromState { outside, inside, both }

Public Member Functions

 Obstacle (void)
virtual ~Obstacle ()
Vec3 steerToAvoid (const AbstractVehicle &v, const float minTimeToCollision) const
void draw (const bool, const Color &, const Vec3 &) const
seenFromState seenFrom (void) const
void setSeenFrom (seenFromState s)
virtual void findIntersectionWithVehiclePath (const AbstractVehicle &vehicle, PathIntersection &pi) const =0
virtual void setSeenFrom (seenFromState s)=0

Static Public Member Functions

static Vec3 steerToAvoidObstacles (const AbstractVehicle &vehicle, const float minTimeToCollision, const ObstacleGroup &obstacles)
static void firstPathIntersectionWithObstacleGroup (const AbstractVehicle &vehicle, const ObstacleGroup &obstacles, PathIntersection &nearest, PathIntersection &next)

Private Attributes

seenFromState _seenFrom

Member Enumeration Documentation


Constructor & Destructor Documentation

OpenSteer::Obstacle::Obstacle ( void  ) [inline]
virtual OpenSteer::Obstacle::~Obstacle ( ) [inline, virtual]

Member Function Documentation

void OpenSteer::Obstacle::draw ( const bool  ,
const Color ,
const Vec3  
) const [inline, virtual]
virtual void OpenSteer::AbstractObstacle::findIntersectionWithVehiclePath ( const AbstractVehicle vehicle,
PathIntersection pi 
) const [pure virtual, inherited]

Implemented in OpenSteer::SphereObstacle.

void OpenSteer::Obstacle::firstPathIntersectionWithObstacleGroup ( const AbstractVehicle vehicle,
const ObstacleGroup obstacles,
PathIntersection nearest,
PathIntersection next 
) [static]
seenFromState OpenSteer::Obstacle::seenFrom ( void  ) const [inline, virtual]
virtual void OpenSteer::AbstractObstacle::setSeenFrom ( seenFromState  s) [pure virtual, inherited]
void OpenSteer::Obstacle::setSeenFrom ( seenFromState  s) [inline]
OpenSteer::Vec3 OpenSteer::Obstacle::steerToAvoid ( const AbstractVehicle v,
const float  minTimeToCollision 
) const [virtual]
OpenSteer::Vec3 OpenSteer::Obstacle::steerToAvoidObstacles ( const AbstractVehicle vehicle,
const float  minTimeToCollision,
const ObstacleGroup obstacles 
) [static]

Member Data Documentation

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines