Wraith
0.1.5
Basic 3D game engine in C++
|
A game object exit command. More...
#include <GameObjectExitCommand.h>
Public Member Functions | |
GameObjectExitCommand (const GameObjectExitCommand &)=default | |
GameObjectExitCommand & | operator= (const GameObjectExitCommand &)=default |
GameObjectExitCommand (GameObjectExitCommand &&)=default | |
GameObjectExitCommand & | operator= (GameObjectExitCommand &&)=default |
GameObjectExitCommand (GameObject *pGameObject) | |
Constructor getting a pointer to a GameObject. More... | |
virtual void | execute () override |
Calls on GameObject::sceneExit() to its current GameObject pointer. More... | |
![]() | |
SceneRegistrationCommand (const SceneRegistrationCommand &)=default | |
SceneRegistrationCommand & | operator= (const SceneRegistrationCommand &)=default |
SceneRegistrationCommand (SceneRegistrationCommand &&)=default | |
SceneRegistrationCommand & | operator= (SceneRegistrationCommand &&)=default |
Private Attributes | |
GameObject * | _pGameObject |
A game object exit command.
Responsible for calling on GameObject::sceneExit().
GameObjectExitCommand::GameObjectExitCommand | ( | GameObject * | pGameObject | ) |
Constructor getting a pointer to a GameObject.
Initialzed ONLY by GameObject::GameObject().
pGameObject | a game object pointer. |
|
overridevirtual |
Calls on GameObject::sceneExit() to its current GameObject pointer.
Called ONLY by SceneRegistrationBroker::executeCommands().
Implements SceneRegistrationCommand.