SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
CollisionTestPairCommand Class Reference

Command to handle collision tests between two collidable groups. More...

#include <CollisionTestPairCommand.h>

Inheritance diagram for CollisionTestPairCommand:
Inheritance graph

Public Member Functions

 CollisionTestPairCommand (const CollisionTestPairCommand &)=delete
 
CollisionTestPairCommandoperator= (const CollisionTestPairCommand &)=delete
 
 CollisionTestPairCommand (CollidableGroup *g1, CollidableGroup *g2, CollisionDispatchBase *d)
 Constructor for CollisionTestPairCommand with collidable groups and dispatch.
 
virtual void Execute () override
 Executes the collision test command between the two collidable groups.
 
- Public Member Functions inherited from CollisionTestCommandBase
 CollisionTestCommandBase (const CollisionTestCommandBase &)=default
 
CollisionTestCommandBaseoperator= (const CollisionTestCommandBase &)=default
 

Private Attributes

CollidableGrouppG1
 Pointer to the first collidable group.
 
CollidableGrouppG2
 Pointer to the second collidable group.
 
CollisionDispatchBasepDispatch
 Pointer to the collision dispatch.
 

Detailed Description

Command to handle collision tests between two collidable groups.

The CollisionTestPairCommand class is responsible for executing collision tests between two collidable groups. It inherits from the CollisionTestCommandBase class and overrides the Execute method to perform the collision test.

Constructor & Destructor Documentation

◆ CollisionTestPairCommand()

CollisionTestPairCommand::CollisionTestPairCommand ( CollidableGroup * g1,
CollidableGroup * g2,
CollisionDispatchBase * d )

Constructor for CollisionTestPairCommand with collidable groups and dispatch.

Parameters
g1Pointer to the first collidable group.
g2Pointer to the second collidable group.
dPointer to the collision dispatch.

Member Function Documentation

◆ Execute()

void CollisionTestPairCommand::Execute ( )
overridevirtual

Executes the collision test command between the two collidable groups.

Implements CollisionTestCommandBase.

Here is the call graph for this function:

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