Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CollisionPerceptor Class Reference

to store collisions as they occur within the scenegraph. More...

#include <collisionperceptor.h>

Inheritance diagram for CollisionPerceptor:

Inheritance graph
[legend]
Collaboration diagram for CollisionPerceptor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool Percept (boost::shared_ptr< oxygen::PredicateList > predList)
const zeitgeist::Leaf::TLeafListGetCollidees ()
 returns the stored list of collidees
void AddCollidee (boost::shared_ptr< zeitgeist::Node > collidee)
 stores a new collidee

Protected Member Functions

virtual void PrePhysicsUpdateInternal (float deltaTime)
 removes old collidees left over from the previous cycles

Protected Attributes

zeitgeist::Leaf::TLeafList mCollidees

Detailed Description

to store collisions as they occur within the scenegraph.

It is inteded to be used together with the PerceptorHandler that passes collision information from the physics system on to this perceptor.

Definition at line 32 of file collisionperceptor.h.


Member Function Documentation

void CollisionPerceptor::AddCollidee boost::shared_ptr< zeitgeist::Node collidee  ) 
 

stores a new collidee

const zeitgeist::Leaf::TLeafList& CollisionPerceptor::GetCollidees  )  [inline]
 

returns the stored list of collidees

Definition at line 41 of file collisionperceptor.h.

References mCollidees.

bool CollisionPerceptor::Percept boost::shared_ptr< oxygen::PredicateList predList  )  [virtual]
 

Parameters:
predicate set "collidees" as a TLeafList as arguments of predicate
Returns:
true if data is available

Implements oxygen::Perceptor.

void CollisionPerceptor::PrePhysicsUpdateInternal float  deltaTime  )  [protected, virtual]
 

removes old collidees left over from the previous cycles

Reimplemented from oxygen::BaseNode.

Definition at line 53 of file collisionperceptor.cpp.

References mCollidees.


Member Data Documentation

zeitgeist::Leaf::TLeafList CollisionPerceptor::mCollidees [protected]
 

Definition at line 51 of file collisionperceptor.h.

Referenced by GetCollidees(), and PrePhysicsUpdateInternal().


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:37:55 2006 for rcssserver3d by  doxygen 1.4.4