SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
GameObjectEntryCommand.h
1#ifndef GameObjectEntryCommand_H
2#define GameObjectEntryCommand_H
3
4#include "CommandBase.h"
5
6class GameObject;
7
16{
17public:
25 GameObjectEntryCommand& operator=(const GameObjectEntryCommand&) = delete;
26 ~GameObjectEntryCommand() = 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 entered into the scene.
Definition GameObjectEntryCommand.h:36
void Execute() override
Executes the entry command for the GameObject.
Definition GameObjectEntryCommand.cpp:6
GameObjectEntryCommand(GameObject *go)
Constructor for GameObjectEntryCommand.
Definition GameObjectEntryCommand.cpp:4
Base class for all GameObjects in the engine.
Definition GameObject.h:21