Spinning Topp Logo BlackTopp Studios
inc
Public Member Functions | Protected Attributes | List of all members
Mezzanine::Physics::CollisionDispatcher Class Reference

Used to provide better reporting of collisions. More...

+ Inheritance diagram for Mezzanine::Physics::CollisionDispatcher:
+ Collaboration diagram for Mezzanine::Physics::CollisionDispatcher:

Public Member Functions

 CollisionDispatcher (PhysicsManager *PhysMan, btCollisionConfiguration *CollisionConfig)
 Class constructor. More...
 
virtual ~CollisionDispatcher ()
 Class destructor.
 
void * allocateCollisionAlgorithm (int size)
 Allocates space for a new Collision Algorithm between two objects. More...
 
void freeCollisionAlgorithm (void *ptr)
 Frees up the space belonging to a Collision Algorithm that is no longer needed. More...
 
AlgoListGetAlgoCreationQueue ()
 Gets the list of algorithms that have been created and need processing. More...
 

Protected Attributes

AlgoList AlgoCreationQueue
 A list of all the algorithms that have been created and need processing. More...
 
PhysicsManagerPhysMan
 Physics Manager.
 

Detailed Description

Used to provide better reporting of collisions.

Definition at line 63 of file collisiondispatcher.h.cpp.

Constructor & Destructor Documentation

Mezzanine::Physics::CollisionDispatcher::CollisionDispatcher ( PhysicsManager PhysMan,
btCollisionConfiguration *  CollisionConfig 
)

Class constructor.

Parameters
CollisionConfigThe collision configuration for the world being created.

Definition at line 56 of file collisiondispatcher.cpp.

Member Function Documentation

void * Mezzanine::Physics::CollisionDispatcher::allocateCollisionAlgorithm ( int  size)

Allocates space for a new Collision Algorithm between two objects.

Note
This usually means that a collision has started between two objects.
Parameters
sizeThe size needed for the new Collision Algorithm.

Definition at line 67 of file collisiondispatcher.cpp.

void Mezzanine::Physics::CollisionDispatcher::freeCollisionAlgorithm ( void *  ptr)

Frees up the space belonging to a Collision Algorithm that is no longer needed.

Note
This usually means that a collision has ended between two objects.
Parameters
ptrA pointer to Collision Algorithim that is being removed.

Definition at line 74 of file collisiondispatcher.cpp.

AlgoList * Mezzanine::Physics::CollisionDispatcher::GetAlgoCreationQueue ( )

Gets the list of algorithms that have been created and need processing.

Returns
Returns a reference to the list of algorithms that need processing.

Definition at line 105 of file collisiondispatcher.cpp.

Member Data Documentation

AlgoList Mezzanine::Physics::CollisionDispatcher::AlgoCreationQueue
protected

A list of all the algorithms that have been created and need processing.

Definition at line 71 of file collisiondispatcher.h.cpp.


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