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

Command to deregister a drawable object from drawing. More...

#include <DrawDeregistrationCommand.h>

Inheritance diagram for DrawDeregistrationCommand:
Inheritance graph

Public Member Functions

 DrawDeregistrationCommand (Drawable *dr)
 Constructor for DrawDeregistrationCommand.
 
 DrawDeregistrationCommand (const DrawDeregistrationCommand &)=delete
 
DrawDeregistrationCommandoperator= (const DrawDeregistrationCommand &)=delete
 
void Execute () override
 Executes the deregistration command. This method deregisters the drawable object from the DrawableManager.
 
- Public Member Functions inherited from CommandBase
virtual ~CommandBase ()=default
 Destructor for CommandBase.
 

Public Attributes

DrawableptrDr = nullptr
 Pointer to the drawable object to be deregistered.
 

Detailed Description

Command to deregister a drawable object from drawing.

The DrawDeregistrationCommand class is responsible for deregistering a drawable object from the DrawableManager. It inherits from CommandBase and overrides the Execute method to perform the deregistration.

Constructor & Destructor Documentation

◆ DrawDeregistrationCommand()

DrawDeregistrationCommand::DrawDeregistrationCommand ( Drawable * dr)

Constructor for DrawDeregistrationCommand.

Parameters
drPointer to the drawable object to be deregistered.

Member Function Documentation

◆ Execute()

void DrawDeregistrationCommand::Execute ( )
overridevirtual

Executes the deregistration command. This method deregisters the drawable object from the DrawableManager.

Implements CommandBase.

Here is the call graph for this function:

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