Command to handle the deregistration of a collidable object for collision detection. More...
#include <CollisionDeregistrationCommand.h>

Public Member Functions | |
| CollisionDeregistrationCommand (Collidable *col) | |
| Constructor for CollisionDeregistrationCommand. | |
| CollisionDeregistrationCommand (const CollisionDeregistrationCommand &)=delete | |
| CollisionDeregistrationCommand & | operator= (const CollisionDeregistrationCommand &)=delete |
| void | Execute () override |
| Executes the deregistration command for the collidable object. This method removes the collidable object from the collision detection system. | |
Public Member Functions inherited from CommandBase | |
| virtual | ~CommandBase ()=default |
| Destructor for CommandBase. | |
Public Attributes | |
| Collidable * | ptrCol = nullptr |
| Pointer to the collidable object to be deregistered. This pointer is used to access the collidable object for deregistration. | |
Command to handle the deregistration of a collidable object for collision detection.
The CollisionDeregistrationCommand class is responsible for executing the deregistration of a collidable object for collision detection. It inherits from the CommandBase class and overrides the Execute method to perform the deregistration action.
| CollisionDeregistrationCommand::CollisionDeregistrationCommand | ( | Collidable * | col | ) |
Constructor for CollisionDeregistrationCommand.
| col | Pointer to the collidable object to be deregistered. |
|
overridevirtual |
Executes the deregistration command for the collidable object. This method removes the collidable object from the collision detection system.
Implements CommandBase.
