CodeSubWars 0.4.7b
CodeSubWars::CSWWaitCommand Class Reference

#include <CSWWaitCommand.h>

Inheritance diagram for CodeSubWars::CSWWaitCommand:

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 (double fWaitTime)
 

Detailed Description

This is a specialization of a command. It provides the functionality to let the execution waits a given period.

Member Function Documentation

◆ copy()

ARSTD::Command::PtrType CodeSubWars::CSWWaitCommand::copy ( ) const
virtual

Returns a copy of the command.

Returns
The copied command.

Implements ARSTD::Command.

◆ create()

CSWWaitCommand::PtrType CodeSubWars::CSWWaitCommand::create ( double  fWaitTime)
static

Creates a new wait command.

Parameters
fWaitTimeThe time in seconds that should be waited.
Returns
Returns the new constructed command.

◆ getName()

std::string CodeSubWars::CSWWaitCommand::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