SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
DrawRegistrationCommand.h
1#ifndef DrawRegistrationCommand_H
2#define DrawRegistrationCommand_H
3
4#include "../CommandBase.h"
5
6class Drawable;
7
17{
18public:
25 DrawRegistrationCommand& operator=(const DrawRegistrationCommand&) = delete;
26 ~DrawRegistrationCommand() = default;
27
32 void Execute() override;
33
37 Drawable* ptrDr = nullptr;
38};
39
40#endif
Defines the base class for all command objects.
Base class for all command objects.
Definition CommandBase.h:19
void Execute() override
Executes the registration command. This method registers the drawable object with the DrawableManager...
Definition DrawRegistrationCommand.cpp:7
DrawRegistrationCommand(Drawable *dr)
Constructor for DrawRegistrationCommand.
Definition DrawRegistrationCommand.cpp:5
Drawable * ptrDr
Pointer to the drawable object to be registered.
Definition DrawRegistrationCommand.h:37
Base class for objects that can be drawn in the game loop.
Definition Drawable.h:19