CodeSubWars 0.4.7b
ARSTD::PopCommand Class Reference

#include <BasicCommands.h>

Inheritance diagram for ARSTD::PopCommand:

Public Member Functions

virtual ARSTD::Command::PtrType copy () const
 
virtual std::string getName () const
 
- Public Member Functions inherited from ARSTD::Command
virtual PtrType copy () const =0
 
virtual std::string getName () const =0
 
virtual bool wasExecuted () const
 
virtual double getProgress () const
 

Static Public Member Functions

static PtrType create ()
 

Detailed Description

This command makes the topmost stored command processor context from a stack beeing restored and used as current context. If the stack is empty nothing will be done.

Warning
All commands that are in queue after this command are not executed.

Member Function Documentation

◆ copy()

ARSTD::Command::PtrType ARSTD::PopCommand::copy ( ) const
virtual

Returns a copy of the command.

Returns
The copied command.

Implements ARSTD::Command.

◆ create()

PopCommand::PtrType ARSTD::PopCommand::create ( )
static

Creates a new PopCommand command.

Returns
Returns the new constructed command.

◆ getName()

std::string ARSTD::PopCommand::getName ( ) const
virtual

Returns the name of the command.

Returns
The name of the command.

Implements ARSTD::Command.


Generated at Sun Aug 7 2022 for project CodeSubWars. www.codesubwars.org