Homepage Demos Overview Downloads Tutorials Reference
Credits
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Search

DumbWM2Behavior.h

Go to the documentation of this file.
00001 //-*-c++-*-
00002 #ifndef INCLUDED_DumbWM2Behavior_h_
00003 #define INCLUDED_DumbWM2Behavior_h_
00004 
00005 #include "Behaviors/BehaviorBase.h"
00006 #include "WorldModel2/WorldModel2.h"
00007 
00008 //! Simply turns on a WM2 object. Useful for running concurrently with other behaviors and seeing what shows up in the world model.
00009 class DumbWM2Behavior : public BehaviorBase {
00010  public:
00011   //! constructor
00012   DumbWM2Behavior() : BehaviorBase(), WM2()
00013   { }
00014   //! destructor
00015   virtual ~DumbWM2Behavior() {
00016   }
00017 
00018   virtual void DoStart() {
00019     BehaviorBase::DoStart();
00020     WM2.enableIR();
00021   }
00022 
00023   virtual void DoStop() {
00024     BehaviorBase::DoStop();
00025     WM2.disableIR();
00026   }
00027 
00028   //! doesn't do anything
00029   virtual void processEvent(const EventBase &) { }
00030 
00031   virtual std::string getName() const { return "DumbWM2Behavior"; }
00032   static std::string getClassDescription() { return "Creates a WM2 object.  Useful for running concurrently with other behaviors and seeing what shows up in the world model."; }
00033 
00034  protected:
00035   WorldModel2 WM2; //!< the world model this is associated with
00036 };
00037 
00038 /*! @file
00039  * @brief Describes DumbWM2Behavior - Simply turns on a WM2 object. Useful for running concurrently with other behaviors and seeing what shows up in the world model.
00040  * @author tss (Creator)
00041  * 
00042  * $Author: ejt $
00043  * $Name: tekkotsu-1_4_1 $
00044  * $Revision: 1.7 $
00045  * $State: Exp $
00046  * $Date: 2003/06/12 23:41:39 $
00047  */
00048 
00049 #endif 

Tekkotsu v1.4
Generated Sat Jul 19 00:06:30 2003 by Doxygen 1.3.2