#include <CSWCommands.h>
Static Public Member Functions | |
static ARSTD::Command::PtrType | setMainEngineIntensity (CSWSubmarine *pSubmarine, double fIntensity) |
static ARSTD::Command::PtrType | setMainEngineDirection (CSWSubmarine *pSubmarine, const double &fHAngle, const double &fVAngle) |
static ARSTD::Command::PtrType | setMainEngineDirection (CSWSubmarine *pSubmarine, const Vector3D &vecDirection) |
static ARSTD::Command::PtrType | disableMainEngine (CSWSubmarine *pSubmarine) |
static ARSTD::Command::PtrType | setBuoyancyTank (CSWSubmarine *pSubmarine, double fIntensity) |
static ARSTD::Command::PtrType | disableBuoyancyTank (CSWSubmarine *pSubmarine) |
static ARSTD::Command::PtrType | setAxialInclinationJetOar (CSWSubmarine *pSubmarine, double fIntensity) |
static ARSTD::Command::PtrType | disableAxialInclinationJetOar (CSWSubmarine *pSubmarine) |
static ARSTD::Command::PtrType | disableAllJetOars (CSWSubmarine *pSubmarine) |
static ARSTD::Command::PtrType | disableAllEngines (CSWSubmarine *pSubmarine) |
static ARSTD::Command::PtrType | stopRotation (CSWSubmarine *pSubmarine) |
static ARSTD::Command::PtrType | setOrientationAbsoluteTowardPosition (CSWSubmarine *pSubmarine, const Vector3D &vecPosition, double fRotationTolerance=0.1, double fEndVelocityTolerance=0.3) |
static ARSTD::Command::PtrType | setOrientationAbsoluteTowardDirection (CSWSubmarine *pSubmarine, const Vector3D &vecDirection, double fRotationTolerance=0.1, double fEndVelocityTolerance=0.3) |
static ARSTD::Command::PtrType | stopMoving (CSWSubmarine *pSubmarine) |
static ARSTD::Command::PtrType | moveForward (CSWSubmarine *pSubmarine, double fDistance, double fEndMoveVelocity=0, double fEndMoveVelocityTolerance=0.1) |
static ARSTD::Command::PtrType | moveUpward (CSWSubmarine *pSubmarine, double fDistance, double fEndMoveVelocity=0, double fEndMoveVelocityTolerance=0.1) |
static ARSTD::Command::PtrType | stopAll (CSWSubmarine *pSubmarine) |
static ARSTD::Command::PtrType | fireSalvo (std::shared_ptr< CSWWeaponBattery > &pWeaponBattery, int nNumTorpedos, double fTimeBetweenLaunches=0) |
This class provides useful predefined macro commands.
|
static |
Creates a new command that disables all engines.
pSubmarine | The submarine where the command should be executed (should always be self). |
|
static |
Creates a new command that disables the jet oars which are responsible for rotating a submarine.
pSubmarine | The submarine where the command should be executed (should always be self). |
|
static |
Creates a new command that disables the axial inclination jet oar. (sets the intensity to zero)
pSubmarine | The submarine where the command should be executed (should always be self). |
|
static |
Creates a new command that disables the buoyancy tank. (sets the intensity to zero)
pSubmarine | The submarine where the command should be executed (should always be self). |
|
static |
Creates a new command that disables the main engine. (sets the intensity to zero)
pSubmarine | The submarine where the command should be executed (should always be self). |
|
static |
Creates a new command that make the submarine launches weapon from the specified WeaponBattery.
pWeaponBattery | The weapon battery from which the weapons should be launched. |
nNumTorpedos | The number of torpedoes that should be launched. |
fTimeBetweenLaunches | The time between launches that should be wait in seconds. |
|
static |
Creates a new command that make the submarine moves forward by a given distance.
pSubmarine | The submarine where the command should be executed (should always be self). |
fDistance | The distance that the submarine should move. (positive means forward, negative means backward) |
fEndMoveVelocity | The end translation velocity in meter per second. |
fEndMoveVelocityTolerance | The end translation velocity tolerance in degree per second. |
|
static |
Creates a new command that make the submarine moves upward by a given distance.
pSubmarine | The submarine where the command should be executed (should always be self). |
fDistance | The distance that the submarine should move. (positive means upward, negative means downward) |
fEndMoveVelocity | The end translation velocity in meter per second. |
fEndMoveVelocityTolerance | The end translation velocity tolerance in degree per second. |
|
static |
Creates a new command that sets the intensity of the axial inclination jet oar.
pSubmarine | The submarine where the command should be executed (should always be self). |
fIntensity | The new intensity. |
|
static |
Creates a new command that sets the intensity of the buoyancy tank.
pSubmarine | The submarine where the command should be executed (should always be self). |
fIntensity | The new intensity. |
|
static |
Creates a new command that sets the direction of the main engine.
pSubmarine | The submarine where the command should be executed (should always be self). |
fHAngle | The new horizontal angle. Positiv means rightward (in degree). |
fVAngle | The new vertical angle. Positiv means upward (in degree). |
|
static |
Creates a new command that sets the direction of the main engine.
pSubmarine | The submarine where the command should be executed (should always be self). |
vecDirection | The new direction relative to its parent. |
|
static |
Creates a new command that sets the intensity of the main engine.
pSubmarine | The submarine where the command should be executed (should always be self). |
fIntensity | The new intensity. |
|
static |
Creates a new command that controlls the absolute orientation by controlling the intensities of:
pSubmarine | The submarine where the command should be executed (should always be self). |
vecDirection | The direction in world coorinates which the subarmine should direct. |
fRotationTolerance | The destination rotation tolerance in degree. Should be larger or equal than 0.1. |
fEndVelocityTolerance | The angular end velocity tolerance in degree per second. |
|
static |
Creates a new command that controlls the absolute orientation by controlling the intensities of:
pSubmarine | The submarine where the command should be executed (should always be self). |
vecPosition | The position in world coorinates to which the subarmine should direct to. |
fRotationTolerance | The destination rotation tolerance in degree. Should be larger or equal than 0.1. |
fEndVelocityTolerance | The angular end velocity tolerance in degree per second. |
|
static |
Creates a new command that make the submarine does a full stop. The translation velocity and the rotation velocity becomes nearly zero.
pSubmarine | The submarine where the command should be executed (should always be self). |
|
static |
Creates a new command that controlls the translation by controlling the intensities of: main engine and the buoyancy tank. so that the submarine has nearly no end translation velocity.
pSubmarine | The submarine where the command should be executed (should always be self). |
|
static |
Creates a new command that controlls the rotation velocity by controlling the intensities of:
pSubmarine | The submarine where the command should be executed (should always be self). |