00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef ARACTIONBACKWARDSSPEEDLIMITER_H
00027 #define ARACTIONBACKWARDSSPEEDLIMITER_H
00028
00029 #include "ariaTypedefs.h"
00030 #include "ArAction.h"
00031
00033
00039 class ArActionLimiterBackwards : public ArAction
00040 {
00041 public:
00043 AREXPORT ArActionLimiterBackwards(const char *name = "speed limiter",
00044 double stopDistance = -250,
00045 double slowDistance = -600,
00046 double maxBackwardsSpeed = -250,
00047 double widthRatio = 1.5);
00049 AREXPORT virtual ~ArActionLimiterBackwards();
00050 AREXPORT virtual ArActionDesired *fire(ArActionDesired currentDesired);
00051 AREXPORT virtual ArActionDesired *getDesired(void) { return &myDesired; }
00052 #ifndef SWIG
00053 AREXPORT virtual const ArActionDesired *getDesired(void) const
00054 { return &myDesired; }
00055 #endif
00056 protected:
00057 double myStopDist;
00058 double mySlowDist;
00059 double myMaxBackwardsSpeed;
00060 double myWidthRatio;
00061 ArActionDesired myDesired;
00062 };
00063
00064 #endif // ARACTIONBACKWARDSSPEEDLIMITER_H
00065