#include <CSWVariousCommands.h>
Public Member Functions | |
virtual ARSTD::Command::PtrType | copy () const |
![]() | |
virtual std::string | getName () const |
![]() | |
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< CSWWeaponBattery > &pWeaponBattery, const std::string &strSupplyName, unsigned long nResourceIDs) |
This is a specialization of a command. It provides the functionality to request recharge of a weapon battery at a resource provider.
|
virtual |
|
static |
Creates a new command that let the given WeaponBattery tries to recharge at the given supply.
pWeaponBattery | The weapon battery which should be recharged. |
strSupplyName | The name of the object where the battery should try to be recharged. |
nResourceIDs | The ORed combination of resourceIDs that should be recharged at that supply. |