SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
GameObjectExitCommand Class Reference

Command to handle the exit of a GameObject from the scene. More...

#include <GameObjectExitCommand.h>

Inheritance diagram for GameObjectExitCommand:
Inheritance graph

Public Member Functions

 GameObjectExitCommand (GameObject *go)
 Constructor for GameObjectExitCommand.
 
 GameObjectExitCommand (const GameObjectExitCommand &)=delete
 
GameObjectExitCommandoperator= (const GameObjectExitCommand &)=delete
 
void Execute () override
 Executes the exit command for the GameObject.
 
- Public Member Functions inherited from CommandBase
virtual ~CommandBase ()=default
 Destructor for CommandBase.
 

Public Attributes

GameObjectptrGO = nullptr
 Pointer to the GameObject to be exited from the scene.
 

Detailed Description

Command to handle the exit of a GameObject from the scene.

The GameObjectExitCommand class is responsible for executing the exit of a GameObject from the scene. It inherits from the CommandBase class and overrides the Execute method to perform the exit action.

Constructor & Destructor Documentation

◆ GameObjectExitCommand()

GameObjectExitCommand::GameObjectExitCommand ( GameObject * go)

Constructor for GameObjectExitCommand.

Parameters
goPointer to the GameObject to be exited from the scene.

Member Function Documentation

◆ Execute()

void GameObjectExitCommand::Execute ( )
overridevirtual

Executes the exit command for the GameObject.

Implements CommandBase.

Here is the call graph for this function:

The documentation for this class was generated from the following files: