Command to handle the entry of a GameObject into the scene. More...
#include <GameObjectEntryCommand.h>
Public Member Functions | |
GameObjectEntryCommand (GameObject *go) | |
Constructor for GameObjectEntryCommand. | |
GameObjectEntryCommand (const GameObjectEntryCommand &)=delete | |
GameObjectEntryCommand & | operator= (const GameObjectEntryCommand &)=delete |
void | Execute () override |
Executes the entry command for the GameObject. | |
![]() | |
virtual | ~CommandBase ()=default |
Destructor for CommandBase. | |
Public Attributes | |
GameObject * | ptrGO = nullptr |
Pointer to the GameObject to be entered into the scene. | |
Command to handle the entry of a GameObject into the scene.
The GameObjectEntryCommand class is responsible for executing the entry of a GameObject into the scene. It inherits from the CommandBase class and overrides the Execute method to perform the entry action.
GameObjectEntryCommand::GameObjectEntryCommand | ( | GameObject * | go | ) |
Constructor for GameObjectEntryCommand.
go | Pointer to the GameObject to be entered into the scene. |
|
overridevirtual |
Executes the entry command for the GameObject.
Implements CommandBase.