CSWRechargeWeaponBatteryCommand Class Reference

Inheritance diagram for CSWRechargeWeaponBatteryCommand:

Inheritance graph
[legend]
List of all members.

Public Member Functions

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

Static Public Member Functions

static PtrType create (boost::shared_ptr< CSWWeaponBattery > &pWeaponBattery, const std::string &strSupplyName, unsigned long nResourceIDs)

Detailed Description

This is a specialization of a command. It provides the functionality to request recharge of a weapon battery at a resource provider.


Member Function Documentation

CSWRechargeWeaponBatteryCommand::PtrType CSWRechargeWeaponBatteryCommand::create ( boost::shared_ptr< CSWWeaponBattery > &  pWeaponBattery,
const std::string &  strSupplyName,
unsigned long  nResourceIDs 
) [static]

Creates a new command that let the given WeaponBattery tries to recharge at the given supply.

Parameters:
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.
Returns:
Returns the new constructed command.

ARSTD::Command::PtrType CSWRechargeWeaponBatteryCommand::copy (  )  const [virtual]

Returns a copy of the command.

Returns:
The copied command.

Implements ARSTD::Command.


Generated at 2 Jan 2007 for project CodeSubWars. www.codesubwars.org