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

Command to register a drawable object for drawing. More...

#include <DrawRegistrationCommand.h>

Inheritance diagram for DrawRegistrationCommand:
Inheritance graph

Public Member Functions

 DrawRegistrationCommand (Drawable *dr)
 Constructor for DrawRegistrationCommand.
 
 DrawRegistrationCommand (const DrawRegistrationCommand &)=delete
 
DrawRegistrationCommandoperator= (const DrawRegistrationCommand &)=delete
 
void Execute () override
 Executes the registration command. This method registers the drawable object with 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 registered.
 

Detailed Description

Command to register a drawable object for drawing.

The DrawRegistrationCommand class is responsible for registering a drawable object with the DrawableManager. It inherits from CommandBase and overrides the Execute method to perform the registration.

Constructor & Destructor Documentation

◆ DrawRegistrationCommand()

DrawRegistrationCommand::DrawRegistrationCommand ( Drawable * dr)

Constructor for DrawRegistrationCommand.

Parameters
drPointer to the drawable object to be registered.

Member Function Documentation

◆ Execute()

void DrawRegistrationCommand::Execute ( )
overridevirtual

Executes the registration command. This method registers the drawable object with the DrawableManager.

Implements CommandBase.

Here is the call graph for this function:

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