CSWSetEngineIntensityCommand Class Reference

Inheritance diagram for CSWSetEngineIntensityCommand:

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< CSWEngine > &pEngine, const double &fIntensity)

Detailed Description

This is a specialization of a command. It provides the functionality to set the intensity of an engine.


Member Function Documentation

CSWSetEngineIntensityCommand::PtrType CSWSetEngineIntensityCommand::create ( boost::shared_ptr< CSWEngine > &  pEngine,
const double &  fIntensity 
) [static]

Creates a new command that let the given engine change its intensity.

Parameters:
pEngine The engine which should change its intensity.
fIntensity The new intensity in range [-1, 1].
Returns:
Returns the new constructed command.

ARSTD::Command::PtrType CSWSetEngineIntensityCommand::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