Artificial Intelligence
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

GamePipe::SteeringBehavior Class Reference

#include <SteeringBehaviors.h>

List of all members.

Public Types

enum  behavior_type {
  none = 0x00000, seek = 0x00002, flee = 0x00004, arrive = 0x00008,
  wander = 0x00010, cohesion = 0x00020, separation = 0x00040, allignment = 0x00080,
  obstacle_avoidance = 0x00100, wall_avoidance = 0x00200, follow_path = 0x00400, pursuit = 0x00800,
  evade = 0x01000, interpose = 0x02000, hide = 0x04000, flock = 0x08000,
  offset_pursuit = 0x10000
}

Public Member Functions

void setParams (Ogre::String name, Ogre::Real value)
Ogre::Real getParams (Ogre::String name)
 SteeringBehavior (AIAgent *agent)
 Constructor.
void SetTargetAgent1 (AIAgent *Agent)
void SetTargetAgent2 (AIAgent *Agent)
void FleeOn ()
void SeekOn (Ogre::Vector3 dest)
void ArriveOn ()
void WanderOn ()
void PursuitOn (AIAgent *v)
void EvadeOn (AIAgent *v)
void CohesionOn ()
void SeparationOn ()
void AlignmentOn ()
void ObstacleAvoidanceOn ()
void WallAvoidanceOn ()
void FollowPathOn (std::list< GraphNode * > path)
void InterposeOn (AIAgent *v1, AIAgent *v2)
void HideOn (AIAgent *v)
void FlockingOn ()
void FleeOff ()
void SeekOff ()
void ArriveOff ()
void WanderOff ()
void PursuitOff ()
void EvadeOff ()
void CohesionOff ()
void SeparationOff ()
void AlignmentOff ()
void ObstacleAvoidanceOff ()
void WallAvoidanceOff ()
void FollowPathOff ()
void InterposeOff ()
void HideOff ()
void OffsetPursuitOff ()
void FlockingOff ()
bool isFleeOn ()
bool isSeekOn ()
bool isArriveOn ()
bool isWanderOn ()
bool isPursuitOn ()
bool isEvadeOn ()
bool isCohesionOn ()
bool isSeparationOn ()
bool isAlignmentOn ()
bool isObstacleAvoidanceOn ()
bool isWallAvoidanceOn ()
bool isFollowPathOn ()
bool isInterposeOn ()
bool isHideOn ()
bool isOffsetPursuitOn ()
virtual ~SteeringBehavior ()

Public Attributes

std::map< Ogre::String,
behavior_type
behaviorType
AIAgentm_pTargetAgent1
AIAgentm_pTargetAgent2
std::list< GraphNode * > m_path
Ogre::Vector3 m_vSeekTarget
Ogre::Vector3 m_vFleeTarget
Ogre::Vector3 m_vArriveTarget

Protected Member Functions

bool On (behavior_type bt)

Protected Attributes

AIAgentm_pVehicle
int m_iFlags
std::map< Ogre::String,
Ogre::Real > 
params

Member Enumeration Documentation

Enumerator:
none 
seek 
flee 
arrive 
wander 
cohesion 
separation 
allignment 
obstacle_avoidance 
wall_avoidance 
follow_path 
pursuit 
evade 
interpose 
hide 
flock 
offset_pursuit 

Constructor & Destructor Documentation

SteeringBehavior::SteeringBehavior ( AIAgent agent)

Constructor.

SteeringBehavior::~SteeringBehavior ( ) [virtual]

Member Function Documentation

void GamePipe::SteeringBehavior::AlignmentOff ( ) [inline]
void GamePipe::SteeringBehavior::AlignmentOn ( ) [inline]
void GamePipe::SteeringBehavior::ArriveOff ( ) [inline]
void GamePipe::SteeringBehavior::ArriveOn ( ) [inline]
void GamePipe::SteeringBehavior::CohesionOff ( ) [inline]
void GamePipe::SteeringBehavior::CohesionOn ( ) [inline]
void GamePipe::SteeringBehavior::EvadeOff ( ) [inline]
void GamePipe::SteeringBehavior::EvadeOn ( AIAgent v) [inline]
void GamePipe::SteeringBehavior::FleeOff ( ) [inline]
void GamePipe::SteeringBehavior::FleeOn ( ) [inline]
void GamePipe::SteeringBehavior::FlockingOff ( ) [inline]
void GamePipe::SteeringBehavior::FlockingOn ( ) [inline]
void GamePipe::SteeringBehavior::FollowPathOff ( ) [inline]
void GamePipe::SteeringBehavior::FollowPathOn ( std::list< GraphNode * >  path) [inline]
Ogre::Real SteeringBehavior::getParams ( Ogre::String  name)
void GamePipe::SteeringBehavior::HideOff ( ) [inline]
void GamePipe::SteeringBehavior::HideOn ( AIAgent v) [inline]
void GamePipe::SteeringBehavior::InterposeOff ( ) [inline]
void GamePipe::SteeringBehavior::InterposeOn ( AIAgent v1,
AIAgent v2 
) [inline]
bool GamePipe::SteeringBehavior::isAlignmentOn ( ) [inline]
bool GamePipe::SteeringBehavior::isArriveOn ( ) [inline]
bool GamePipe::SteeringBehavior::isCohesionOn ( ) [inline]
bool GamePipe::SteeringBehavior::isEvadeOn ( ) [inline]
bool GamePipe::SteeringBehavior::isFleeOn ( ) [inline]
bool GamePipe::SteeringBehavior::isFollowPathOn ( ) [inline]
bool GamePipe::SteeringBehavior::isHideOn ( ) [inline]
bool GamePipe::SteeringBehavior::isInterposeOn ( ) [inline]
bool GamePipe::SteeringBehavior::isObstacleAvoidanceOn ( ) [inline]
bool GamePipe::SteeringBehavior::isOffsetPursuitOn ( ) [inline]
bool GamePipe::SteeringBehavior::isPursuitOn ( ) [inline]
bool GamePipe::SteeringBehavior::isSeekOn ( ) [inline]
bool GamePipe::SteeringBehavior::isSeparationOn ( ) [inline]
bool GamePipe::SteeringBehavior::isWallAvoidanceOn ( ) [inline]
bool GamePipe::SteeringBehavior::isWanderOn ( ) [inline]
void GamePipe::SteeringBehavior::ObstacleAvoidanceOff ( ) [inline]
void GamePipe::SteeringBehavior::ObstacleAvoidanceOn ( ) [inline]
void GamePipe::SteeringBehavior::OffsetPursuitOff ( ) [inline]
bool GamePipe::SteeringBehavior::On ( behavior_type  bt) [inline, protected]
void GamePipe::SteeringBehavior::PursuitOff ( ) [inline]
void GamePipe::SteeringBehavior::PursuitOn ( AIAgent v) [inline]
void GamePipe::SteeringBehavior::SeekOff ( ) [inline]
void GamePipe::SteeringBehavior::SeekOn ( Ogre::Vector3  dest) [inline]
void GamePipe::SteeringBehavior::SeparationOff ( ) [inline]
void GamePipe::SteeringBehavior::SeparationOn ( ) [inline]
void SteeringBehavior::setParams ( Ogre::String  name,
Ogre::Real  value 
)
void GamePipe::SteeringBehavior::SetTargetAgent1 ( AIAgent Agent) [inline]
void GamePipe::SteeringBehavior::SetTargetAgent2 ( AIAgent Agent) [inline]
void GamePipe::SteeringBehavior::WallAvoidanceOff ( ) [inline]
void GamePipe::SteeringBehavior::WallAvoidanceOn ( ) [inline]
void GamePipe::SteeringBehavior::WanderOff ( ) [inline]
void GamePipe::SteeringBehavior::WanderOn ( ) [inline]

Member Data Documentation

std::map<Ogre::String, Ogre::Real> GamePipe::SteeringBehavior::params [protected]

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