Main Page   Class Hierarchy   Compound List   Compound Members  

ArActionTurn Class Reference

Action to turn when the behaviors with more priority have limited the speed. More...

#include <ArActionTurn.h>

Inheritance diagram for ArActionTurn::

ArAction List of all members.

Public Methods

 ArActionTurn (const char *name="turn", double speedStartTurn=200, double speedFullTurn=100, double turnAmount=15)
 Constructor.

virtual ~ArActionTurn (void)
 Destructor.

virtual ArActionDesiredfire (ArActionDesired currentDesired)
 Fires the action, returning what the action wants to do. More...

virtual ArActionDesiredgetDesired (void)
 Gets what this action wants to do (for display purposes).


Detailed Description

Action to turn when the behaviors with more priority have limited the speed.

This action is basically made so that you can just have a ton of limiters of different kinds and types to keep speed under control, then throw this into the mix to have the robot wander. Note that the turn amount ramps up to turnAmount starting at 0 at speedStartTurn and hitting the full amount at speedFullTurn.


Member Function Documentation

ArActionDesired * ArActionTurn::fire ArActionDesired    currentDesired [virtual]
 

Fires the action, returning what the action wants to do.

Parameters:
currentDesired  this is what the current resolver has for its desired, this is SOLELY for the purpose of giving information to the action
Returns:
pointer to what this action wants to do, NULL if it wants to do nothing

Reimplemented from ArAction.


The documentation for this class was generated from the following files:
Generated on Tue Nov 12 17:43:50 2002 for Aria by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001