Steeriously  0.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
Public Member Functions | Public Attributes | List of all members
steer::SphereObstacle Class Reference

Class to aid in obstacle avoidance routine. More...

#include <SphereObstacle.hpp>

Public Member Functions

 SphereObstacle (steer::Vector2 position, float radius)
 Construct a sphere obstacle from a position and radius.
 
virtual ~SphereObstacle ()
 Destructor.
 
bool taggedInGroup () const
 Gets the tag status of the obstacle.
 
void Tag ()
 Tags the obstacle for an action.
 
void unTag ()
 Untags the obstacle.
 
void setPosition (steer::Vector2 position)
 Sets the position of the obstacle.
 
steer::Vector2 getPosition () const
 Gets the position of the obstacle.
 
void setRadius (float radius)
 Sets the bounding radius of the obstacle.
 
float getRadius () const
 Gets the bounding radius of the obstacle.
 

Public Attributes

steer::Vector2 m_position
 Position for the sphere obstacle.
 
float m_radius
 Radius for the sphere obstacle.
 
bool m_tag
 Determines wheter or not the obstacle is tagged for an action.
 

Detailed Description

Class to aid in obstacle avoidance routine.

Constructor & Destructor Documentation

steer::SphereObstacle::SphereObstacle ( steer::Vector2  position,
float  radius 
)
inline

Construct a sphere obstacle from a position and radius.

Parameters
position- a steer::Vector2 of floats.
radius- a plain old float.

Member Function Documentation

void steer::SphereObstacle::setPosition ( steer::Vector2  position)
inline

Sets the position of the obstacle.

Parameters
position- a steer::Vector2 of floats.
void steer::SphereObstacle::setRadius ( float  radius)
inline

Sets the bounding radius of the obstacle.

Parameters
radius- a plain old float.

The documentation for this class was generated from the following file: