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

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

#include <CollisionRegistrationCommand.h>

Inheritance diagram for CollisionRegistrationCommand:
Inheritance graph

Public Member Functions

 CollisionRegistrationCommand (Collidable *col)
 Constructor for CollisionRegistrationCommand.
 
 CollisionRegistrationCommand (const CollisionRegistrationCommand &)=delete
 
CollisionRegistrationCommandoperator= (const CollisionRegistrationCommand &)=delete
 
void Execute () override
 Executes the registration command for the collidable object.
 
- Public Member Functions inherited from CommandBase
virtual ~CommandBase ()=default
 Destructor for CommandBase.
 

Public Attributes

CollidableptrCol = nullptr
 Pointer to the collidable object.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CollisionRegistrationCommand()

CollisionRegistrationCommand::CollisionRegistrationCommand ( Collidable * col)

Constructor for CollisionRegistrationCommand.

Parameters
colPointer to the collidable object.

Member Function Documentation

◆ Execute()

void CollisionRegistrationCommand::Execute ( )
overridevirtual

Executes the registration command for the collidable object.

Implements CommandBase.

Here is the call graph for this function:

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