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

Command to deregister an updatable object from updates. More...

#include <UpdateDeregistrationCommand.h>

Inheritance diagram for UpdateDeregistrationCommand:
Inheritance graph

Public Member Functions

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

Public Attributes

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

Detailed Description

Command to deregister an updatable object from updates.

The UpdateDeregistrationCommand class is responsible for deregistering an updatable object from the UpdatableManager. It inherits from CommandBase and implements the Execute method to perform the deregistration.

Constructor & Destructor Documentation

◆ UpdateDeregistrationCommand()

UpdateDeregistrationCommand::UpdateDeregistrationCommand ( Updatable * up)

Constructor for UpdateDeregistrationCommand.

Parameters
upPointer to the updatable object to be deregistered.

Member Function Documentation

◆ Execute()

void UpdateDeregistrationCommand::Execute ( )
overridevirtual

Executes the deregistration command.

This method deregisters the updatable object from the UpdatableManager.

Implements CommandBase.

Here is the call graph for this function:

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