Homepage Demos Overview Downloads Tutorials Reference
Credits

DumbWM2Behavior Class Reference

#include <DumbWM2Behavior.h>

Inheritance diagram for DumbWM2Behavior:

Inheritance graph
[legend]
List of all members.

Detailed Description

Simply turns on a WM2 object. Useful for running concurrently with other behaviors and seeing what shows up in the world model.

Definition at line 9 of file DumbWM2Behavior.h.

Public Member Functions

 DumbWM2Behavior ()
 constructor

virtual ~DumbWM2Behavior ()
 destructor

virtual void DoStart ()
 By default, merely adds to the reference counter (through AddReference()) you should still call this from your overriding methods.

virtual void DoStop ()
 By default, subtracts from the reference counter, and deletes if zero you should still call this when you override this call this at the end of your DoStop(), not beginning (it might delete this ).

virtual void processEvent (const EventBase &)
 doesn't do anything

virtual std::string getName () const
 Identifies the behavior in menus and such.


Static Public Member Functions

std::string getClassDescription ()
 Gives a short description of what this class of behaviors does... you should override this (but don't have to).


Protected Attributes

WorldModel2 WM2
 the world model this is associated with


Constructor & Destructor Documentation

DumbWM2Behavior::DumbWM2Behavior  )  [inline]
 

constructor

Definition at line 12 of file DumbWM2Behavior.h.

References WM2.

virtual DumbWM2Behavior::~DumbWM2Behavior  )  [inline, virtual]
 

destructor

Definition at line 15 of file DumbWM2Behavior.h.


Member Function Documentation

virtual void DumbWM2Behavior::DoStart  )  [inline, virtual]
 

By default, merely adds to the reference counter (through AddReference()) you should still call this from your overriding methods.

Reimplemented from BehaviorBase.

Definition at line 18 of file DumbWM2Behavior.h.

References BehaviorBase::DoStart(), WorldModel2::enableIR(), and WM2.

Here is the call graph for this function:

virtual void DumbWM2Behavior::DoStop  )  [inline, virtual]
 

By default, subtracts from the reference counter, and deletes if zero you should still call this when you override this call this at the end of your DoStop(), not beginning (it might delete this ).

Reimplemented from BehaviorBase.

Definition at line 23 of file DumbWM2Behavior.h.

References WorldModel2::disableIR(), BehaviorBase::DoStop(), and WM2.

Here is the call graph for this function:

std::string DumbWM2Behavior::getClassDescription  )  [inline, static]
 

Gives a short description of what this class of behaviors does... you should override this (but don't have to).

Reimplemented from BehaviorBase.

Definition at line 32 of file DumbWM2Behavior.h.

virtual std::string DumbWM2Behavior::getName  )  const [inline, virtual]
 

Identifies the behavior in menus and such.

Implements BehaviorBase.

Definition at line 31 of file DumbWM2Behavior.h.

virtual void DumbWM2Behavior::processEvent const EventBase  )  [inline, virtual]
 

doesn't do anything

Reimplemented from BehaviorBase.

Definition at line 29 of file DumbWM2Behavior.h.


Member Data Documentation

WorldModel2 DumbWM2Behavior::WM2 [protected]
 

the world model this is associated with

Definition at line 35 of file DumbWM2Behavior.h.


The documentation for this class was generated from the following file:
Tekkotsu v1.5
Generated Fri Oct 10 15:55:37 2003 by Doxygen 1.3.4