Homepage Demos Overview Downloads Tutorials Reference
Credits

VisualTargetTrans Class Reference

#include <VisualTargetTrans.h>

Inheritance diagram for VisualTargetTrans:

Inheritance graph
[legend]
List of all members.

Detailed Description

causes a transition when a visual object is "close"

Definition at line 11 of file VisualTargetTrans.h.

Public Member Functions

 VisualTargetTrans (StateNode *destination, unsigned int source_id)
 constructor
virtual void DoStart ()
 starts listening for the object specified by the source id in the constructor
virtual void DoStop ()
 called by StateNode when it becomes inactive - undo whatever you did in Enable()
virtual void processEvent (const EventBase &e)
 if the object is "close", calls fire()
virtual std::string getName () const
 Identifies the behavior in menus and such.

Protected Attributes

unsigned int sid
 Source ID of object to track.
unsigned int count
 number of frames for which we've seen the object


Constructor & Destructor Documentation

VisualTargetTrans::VisualTargetTrans StateNode destination,
unsigned int  source_id
[inline]
 

constructor

Definition at line 14 of file VisualTargetTrans.h.


Member Function Documentation

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

starts listening for the object specified by the source id in the constructor

Reimplemented from BehaviorBase.

Definition at line 18 of file VisualTargetTrans.h.

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

called by StateNode when it becomes inactive - undo whatever you did in Enable()

Reimplemented from BehaviorBase.

Definition at line 27 of file VisualTargetTrans.h.

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

Identifies the behavior in menus and such.

Implements BehaviorBase.

Definition at line 49 of file VisualTargetTrans.h.

virtual void VisualTargetTrans::processEvent const EventBase e  )  [inline, virtual]
 

if the object is "close", calls fire()

Reimplemented from BehaviorBase.

Definition at line 36 of file VisualTargetTrans.h.


Member Data Documentation

unsigned int VisualTargetTrans::count [protected]
 

number of frames for which we've seen the object

Definition at line 55 of file VisualTargetTrans.h.

Referenced by DoStart(), DoStop(), processEvent(), and VisualTargetTrans().

unsigned int VisualTargetTrans::sid [protected]
 

Source ID of object to track.

Definition at line 53 of file VisualTargetTrans.h.

Referenced by DoStart(), and VisualTargetTrans().


The documentation for this class was generated from the following file:

Tekkotsu v2.2
Generated Tue Oct 19 14:20:24 2004 by Doxygen 1.3.9.1