#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, double fArmDelay=5.0, std::shared_ptr< CSWWeapon > &pWeapon=std::shared_ptr< CSWWeapon >()) |
This is a specialization of a command. It provides the functionality to launch a Weapon from a WeaponBattery.
|
virtual |
|
static |
Creates a new fire command. If no Weapon is loaded to the WeaponBattery nothing will be done.
pWeaponBattery | The WeaponBattery from where the Weapon should be launched. |
fArmDelay | The time in seconds when the weapon should be armed. |
pWeapon | The Weapon that will be launched. If the given Weapon is not found nothing will be done. If None is given the next available Weapon will be launched. (by default None) |