Sly Engine
|
#include <KillCommand.h>
Public Types | |
typedef std::list< KillCommand * > | ItemList |
Defines an alias representing list of items. More... | |
typedef ItemList::iterator | StorageRef |
Public Member Functions | |
KillCommand () | |
Default Constructor. More... | |
KillCommand (const KillCommand &)=delete | |
Copy Constructor. More... | |
KillCommand (KillCommand &&)=delete | |
Move operator. More... | |
KillCommand & | operator= (const KillCommand &)=delete |
Copy assignment operator. More... | |
KillCommand & | operator= (KillCommand &&)=delete |
Move assignment operator. More... | |
virtual | ~KillCommand ()=default |
Destructor (Virtual from CommandBase) More... | |
KillCommand (GameObject *toKill) | |
Specialized constructor. More... | |
virtual void | execute () override |
Kills the stored game object. More... | |
void | setObject (GameObject *target, StorageRef ref) |
Sets an object. More... | |
StorageRef | getDeleteRef () |
Public Member Functions inherited from ConsoleCommand | |
ConsoleCommand ()=default | |
Default Constructor. More... | |
ConsoleCommand (const ConsoleCommand &)=delete | |
Copy Constructor. More... | |
ConsoleCommand (ConsoleCommand &&)=delete | |
Move operator. More... | |
ConsoleCommand & | operator= (const ConsoleCommand &)=delete |
Copy assignment operator. More... | |
ConsoleCommand & | operator= (ConsoleCommand &&)=delete |
Move assignment operator. More... | |
virtual | ~ConsoleCommand ()=default |
Destructor (Virtual from CommandBase) More... | |
virtual void | initialize (std::vector< std::string > arguments) |
Initializer list of arguments. More... | |
Public Member Functions inherited from CommandBase | |
CommandBase ()=default | |
Default constructor. More... | |
CommandBase (const CommandBase &)=delete | |
Copy constructor. More... | |
CommandBase (CommandBase &&)=delete | |
Move constructor. More... | |
CommandBase & | operator= (const CommandBase &)=delete |
Assignment operator. More... | |
CommandBase & | operator= (CommandBase &&)=delete |
Move assignment operator. More... | |
virtual | ~CommandBase ()=default |
Deconstructor. More... | |
Private Attributes | |
StorageRef | myStorageRef |
GameObject * | target |
std::list< KillCommand * > KillCommand::ItemList |
Defines an alias representing list of items.
typedef ItemList::iterator KillCommand::StorageRef |
KillCommand::KillCommand | ( | ) |
Default Constructor.
|
delete |
Copy Constructor.
|
delete |
Move operator.
|
virtualdefault |
Destructor (Virtual from CommandBase)
KillCommand::KillCommand | ( | GameObject * | toKill | ) |
Specialized constructor.
[in,out] | toKill | If non-null, the object to kill. |
The kill command requires a specific object to be initialized in order to kill. This object must be a game object with the SceneExit() function overridden. If this method is not overriden, the base class SceneExit() for GameObject will be called and nothing will happen.
|
overridevirtual |
KillCommand::StorageRef KillCommand::getDeleteRef | ( | ) |
|
delete |
Copy assignment operator.
|
delete |
Move assignment operator.
void KillCommand::setObject | ( | GameObject * | target, |
StorageRef | ref | ||
) |
Sets an object.
[in,out] | target | If non-null, target for the. |
ref | The reference. |
|
private |
|
private |