![]() |
Om
1.0.0
A universal framework for multimedia simulation
|
A class that wraps a function callback object that receives collision events. More...
#include <omPhysicsCollisionCallback.h>
Public Member Functions | |
| CollisionCallback () | |
| Create a new collision callback that has a NULL callback function. More... | |
| CollisionCallback (const Function< void(const CollisionResult &)> &newCallback) | |
| Create a new collision callback that wraps the specified callback function. More... | |
| const Function< void(const CollisionResult &)> & | getCallback () const |
| Return a reference to the function callback object that receives collision events. More... | |
| void | setCallback (const Function< void(const CollisionResult &)> &newCallback) |
| Set the function callback object that receives collision events. More... | |
| virtual void | collisionEvent (const CollisionResult &result) |
| Process the specified collision event, forwarding it to the callback function. More... | |
Public Member Functions inherited from om::physics::collision::CollisionListener | |
| virtual | ~CollisionListener () |
| Destroy a collision listener object. More... | |
A class that wraps a function callback object that receives collision events.
|
inline |
Create a new collision callback that has a NULL callback function.
|
inline |
Create a new collision callback that wraps the specified callback function.
|
inline |
Return a reference to the function callback object that receives collision events.
|
inline |
Set the function callback object that receives collision events.
|
inlinevirtual |
Process the specified collision event, forwarding it to the callback function.
Implements om::physics::collision::CollisionListener.
1.8.11