DriveMeBehavior Class Reference#include <DriveMeBehavior.h>
Inheritance diagram for DriveMeBehavior:
[legend]List of all members.
Detailed Description
A very simple behavior that asks the user for WalkMC walking parameters and a walk duration.
The AIBO walks accordingly and then stands up, then asks again. And so on and so on.
Input is from cin, not the tekkotsu console (sout)
Definition at line 13 of file DriveMeBehavior.h.
Constructor & Destructor Documentation
DriveMeBehavior::DriveMeBehavior |
( |
|
) |
|
|
Member Function Documentation
void DriveMeBehavior::DoStart |
( |
|
) |
[virtual] |
|
void DriveMeBehavior::DoStop |
( |
|
) |
[virtual] |
|
|
By default, subtracts from the reference counter (RemoveReference()), and thus may deletex if zero; Don't forget to still call this when you override this; Warning: call this at the end of your DoStop(), not beginning (it might delete this ).
Reimplemented from BehaviorBase.
Definition at line 45 of file DriveMeBehavior.cc. |
std::string DriveMeBehavior::getClassDescription |
( |
|
) |
[inline, static] |
|
virtual std::string DriveMeBehavior::getDescription |
( |
|
) |
const [inline, virtual] |
|
|
Gives a short description of what this particular instantiation does (in case a more specific description is needed on an individual basis).
By default simply returns getName(), because any calls from a BehaviorBase function to getClassDescription() are going to call BehaviorBase::getClassDescription(), not ~YourSubClass~::getClassDescription(), because static functions can't be virtual in C++ (doh!)
This means that getDescription called on a pointer to a BehaviorBase of unknown subtype would always return an empty string, which is pretty useless. So instead we return the name in this situation. If you want getDescription to return getClassDescription, you'll have to override it in your subclass to do so.
Reimplemented from BehaviorBase.
Definition at line 24 of file DriveMeBehavior.h. |
void DriveMeBehavior::processEvent |
( |
const EventBase & |
event |
) |
[virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|