SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
CollisionDispatch< C1, C2 > Class Template Reference

Handles the dispatching of collision callbacks between two collidable objects. More...

#include <CollisionDispatch.h>

Inheritance diagram for CollisionDispatch< C1, C2 >:
Inheritance graph

Public Member Functions

virtual void ProcessCallbacks (Collidable *c1, Collidable *c2) override
 Processes the collision callbacks between two collidable objects.
 
- Public Member Functions inherited from CollisionDispatchBase
 CollisionDispatchBase (const CollisionDispatchBase &)=delete
 
CollisionDispatchBaseoperator= (const CollisionDispatchBase &)=delete
 

Detailed Description

template<typename C1, typename C2>
class CollisionDispatch< C1, C2 >

Handles the dispatching of collision callbacks between two collidable objects.

The CollisionDispatch class is responsible for processing collision callbacks between two collidable objects. It inherits from the CollisionDispatchBase class and overrides the ProcessCallbacks method to perform the collision dispatch.

Template Parameters
C1The type of the first collidable object.
C2The type of the second collidable object.

Member Function Documentation

◆ ProcessCallbacks()

template<typename C1, typename C2>
virtual void CollisionDispatch< C1, C2 >::ProcessCallbacks ( Collidable * c1,
Collidable * c2 )
inlineoverridevirtual

Processes the collision callbacks between two collidable objects.

Parameters
c1Pointer to the first collidable object.
c2Pointer to the second collidable object.

Implements CollisionDispatchBase.


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