QSDK 1.1 Documentation
Main Page | Modules | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

Q::BoundsReactor Struct Reference
[QServer]

Bounds event filter. More...

#include <Q/q.h>

Inheritance diagram for Q::BoundsReactor:

Q::ObjectBase List of all members.

Public Member Functions

 BoundsReactor ()
Utils::Result addListener (BoundsListener &l)
Utils::Result removeListener (BoundsListener &l)

Static Public Member Functions

BoundsReactor create ()
BoundsReactor create (const Instance &source)
BoundsReactor create (const Instance &source, const Instance &target)
ClassType classType ()
BoundsReactor cast (const ObjectBase &)

Detailed Description

Bounds event filter.

The BoundsReactor is used to generate collision events. The application can choose to generate events for all collisions, all collisions with a given object or just for collisions between a single pair of objects. To activate a BoundsReactor it should be added to the Application.

See also:
Q::Application::add(const Q::BoundsReactor&)


Constructor & Destructor Documentation

Q::BoundsReactor::BoundsReactor  )  [inline]
 

Create a null bounds reactor reference.


Member Function Documentation

Utils::Result Q::BoundsReactor::addListener BoundsListener l  ) 
 

Add l to the list of listeners called when this reactor generates an event.

BoundsReactor Q::BoundsReactor::cast const ObjectBase  )  [static]
 

If the object referenced by obj is a BoundsReactor, then return a suitable BoundsReactor reference to the object.

ClassType Q::BoundsReactor::classType  )  [static]
 

Return the type for this class.

BoundsReactor Q::BoundsReactor::create const Instance source,
const Instance target
[static]
 

Create a bounds reactor for collisions between source and target.

BoundsReactor Q::BoundsReactor::create const Instance source  )  [static]
 

Create a bounds reactor for all collisions with the object source.

BoundsReactor Q::BoundsReactor::create  )  [static]
 

Create a bounds reactor which generates events for all collisions.

Utils::Result Q::BoundsReactor::removeListener BoundsListener l  ) 
 

Remove l from the list of listeners called when this reactor generates an event.

Return to QSDK documentation Contents page. Contact details for support, information and fault-reporting.
Qube Software Limited © 2000-2004