CodeSubWars 0.4.7b
CodeSubWars::CSWSendEventCommand Class Reference

#include <CSWVariousCommands.h>

Inheritance diagram for CodeSubWars::CSWSendEventCommand:

Public Member Functions

virtual ARSTD::Command::PtrType copy () const
- Public Member Functions inherited from CodeSubWars::CSWExecuteCommand
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 (std::shared_ptr< CSWEvent > pEvent)

Detailed Description

This is a specialization of a command. It provides the functionality to send an event.

Member Function Documentation

◆ copy()

ARSTD::Command::PtrType CodeSubWars::CSWSendEventCommand::copy ( ) const

Returns a copy of the command.

The copied command.

Implements ARSTD::Command.

◆ create()

CSWSendEventCommand::PtrType CodeSubWars::CSWSendEventCommand::create ( std::shared_ptr< CSWEvent pEvent)

Creates a new send event command. If no valid event is given an exception is thrown.

pEventThe event which should be sent. This must be not None.
Returns the new constructed command.

Generated at Sun Aug 7 2022 for project CodeSubWars.