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

Command to register an updatable object for updates. More...

#include <UpdateRegistrationCommand.h>

Inheritance diagram for UpdateRegistrationCommand:
Inheritance graph

Public Member Functions

 UpdateRegistrationCommand (Updatable *up)
 Constructor for UpdateRegistrationCommand.
 
 UpdateRegistrationCommand (const UpdateRegistrationCommand &)=delete
 
UpdateRegistrationCommandoperator= (const UpdateRegistrationCommand &)=delete
 
void Execute () override
 Executes the registration command.
 
- Public Member Functions inherited from CommandBase
virtual ~CommandBase ()=default
 Destructor for CommandBase.
 

Public Attributes

UpdatableptrUp = nullptr
 Pointer to the updatable object to be registered.
 

Detailed Description

Command to register an updatable object for updates.

The UpdateRegistrationCommand class is responsible for registering an updatable object with the UpdatableManager. It inherits from CommandBase and implements the Execute method to perform the registration.

Constructor & Destructor Documentation

◆ UpdateRegistrationCommand()

UpdateRegistrationCommand::UpdateRegistrationCommand ( Updatable * up)

Constructor for UpdateRegistrationCommand.

Parameters
upPointer to the updatable object to be registered.

Member Function Documentation

◆ Execute()

void UpdateRegistrationCommand::Execute ( )
overridevirtual

Executes the registration command.

This method registers the updatable object with the UpdatableManager.

Implements CommandBase.

Here is the call graph for this function:

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