SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
GameObjectExitCommand.h
1#ifndef GameObjectExitCommand_H
2#define GameObjectExitCommand_H
3
4#include "CommandBase.h"
5
6class GameObject;
7
16{
17public:
25 GameObjectExitCommand& operator=(const GameObjectExitCommand&) = delete;
26 ~GameObjectExitCommand() = default;
27
31 void Execute() override;
32
36 GameObject* ptrGO = nullptr;
37};
38
39#endif
Defines the base class for all command objects.
Base class for all command objects.
Definition CommandBase.h:19
GameObject * ptrGO
Pointer to the GameObject to be exited from the scene.
Definition GameObjectExitCommand.h:36
GameObjectExitCommand(GameObject *go)
Constructor for GameObjectExitCommand.
Definition GameObjectExitCommand.cpp:4
void Execute() override
Executes the exit command for the GameObject.
Definition GameObjectExitCommand.cpp:6
Base class for all GameObjects in the engine.
Definition GameObject.h:21