SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
UpdateRegistrationCommand.h
1#ifndef UpdateRegistrationCommand_H
2#define UpdateRegistrationCommand_H
3
4#include "../CommandBase.h"
5
6class Updatable;
7
17{
18public:
25 UpdateRegistrationCommand& operator=(const UpdateRegistrationCommand&) = delete;
27
33 void Execute() override;
34
38 Updatable* ptrUp = nullptr;
39};
40
41#endif
Defines the base class for all command objects.
Base class for all command objects.
Definition CommandBase.h:19
Base class for objects that can be updated in the game loop.
Definition Updatable.h:19
Updatable * ptrUp
Pointer to the updatable object to be registered.
Definition UpdateRegistrationCommand.h:38
void Execute() override
Executes the registration command.
Definition UpdateRegistrationCommand.cpp:7
UpdateRegistrationCommand(Updatable *up)
Constructor for UpdateRegistrationCommand.
Definition UpdateRegistrationCommand.cpp:5