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

Command to handle the deregistration of a collidable object for collision detection. More...

#include <CollisionDeregistrationCommand.h>

Inheritance diagram for CollisionDeregistrationCommand:
Inheritance graph

Public Member Functions

 CollisionDeregistrationCommand (Collidable *col)
 Constructor for CollisionDeregistrationCommand.
 
 CollisionDeregistrationCommand (const CollisionDeregistrationCommand &)=delete
 
CollisionDeregistrationCommandoperator= (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

CollidableptrCol = nullptr
 Pointer to the collidable object to be deregistered. This pointer is used to access the collidable object for deregistration.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CollisionDeregistrationCommand()

CollisionDeregistrationCommand::CollisionDeregistrationCommand ( Collidable * col)

Constructor for CollisionDeregistrationCommand.

Parameters
colPointer to the collidable object to be deregistered.

Member Function Documentation

◆ Execute()

void CollisionDeregistrationCommand::Execute ( )
overridevirtual

Executes the deregistration command for the collidable object. This method removes the collidable object from the collision detection system.

Implements CommandBase.

Here is the call graph for this function:

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