CSWSetEngineDirectionCommand Class Reference

Inheritance diagram for CSWSetEngineDirectionCommand:

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 &fHAngle, const double &fVAngle)
static PtrType create (boost::shared_ptr< CSWEngine > &pEngine, const Vector3D &vecDirection)

Detailed Description

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


Member Function Documentation

CSWSetEngineDirectionCommand::PtrType CSWSetEngineDirectionCommand::create ( boost::shared_ptr< CSWEngine > &  pEngine,
const double &  fHAngle,
const double &  fVAngle 
) [static]

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

Parameters:
pEngine The engine which should change its direction.
fHAngle The new horizontal angle. Positiv means rightward (in degree).
fVAngle The new vertical angle. Positiv means upward (in degree).
Returns:
Returns the new constructed command.

CSWSetEngineDirectionCommand::PtrType CSWSetEngineDirectionCommand::create ( boost::shared_ptr< CSWEngine > &  pEngine,
const Vector3D &  vecDirection 
) [static]

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

Parameters:
pEngine The engine which should change its direction.
vecDirection The new direction relative to its parent.
Returns:
Returns the new constructed command.

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