Command to handle the registration of a collidable object for collision detection. More...
#include <CollisionRegistrationCommand.h>
Public Member Functions | |
CollisionRegistrationCommand (Collidable *col) | |
Constructor for CollisionRegistrationCommand. | |
CollisionRegistrationCommand (const CollisionRegistrationCommand &)=delete | |
CollisionRegistrationCommand & | operator= (const CollisionRegistrationCommand &)=delete |
void | Execute () override |
Executes the registration command for the collidable object. | |
![]() | |
virtual | ~CommandBase ()=default |
Destructor for CommandBase. | |
Public Attributes | |
Collidable * | ptrCol = nullptr |
Pointer to the collidable object. | |
Command to handle the registration of a collidable object for collision detection.
The CollisionRegistrationCommand class is responsible for executing the registration of a collidable object for collision detection. It inherits from the CommandBase class and overrides the Execute method to perform the registration action.
CollisionRegistrationCommand::CollisionRegistrationCommand | ( | Collidable * | col | ) |
Constructor for CollisionRegistrationCommand.
col | Pointer to the collidable object. |
|
overridevirtual |
Executes the registration command for the collidable object.
Implements CommandBase.