TurretShape

consoledoc.h

More...

Public Static Attributes

bool

Disables rendering of all instances of this type.

bool

Disables selection of all instances of this type.

Public Attributes

bool

Respawn the turret after it has been destroyed.

Public Functions

bool

Does the turret respawn after it has been destroyed.

bool

Get if the turret is allowed to fire through moves.

bool

Get if the turret is allowed to rotate through moves.

string

Get the name of the turret's current state.

Point3F

Get Euler rotation of this turret's heading and pitch nodes.

void
setAllowManualFire(bool allow)

Set if the turret is allowed to fire through moves.

void

Set if the turret is allowed to rotate through moves.

void

Set Euler rotation of this turret's heading and pitch nodes in degrees.

Detailed Description

Public Static Attributes

bool isRenderable 

Disables rendering of all instances of this type.

bool isSelectable 

Disables selection of all instances of this type.

Public Attributes

bool respawn 

Respawn the turret after it has been destroyed.

If true, the turret will respawn after it is destroyed.

Public Functions

doRespawn()

Does the turret respawn after it has been destroyed.

return:

True if the turret respawns.

getAllowManualFire()

Get if the turret is allowed to fire through moves.

return:

True if the turret is allowed to fire through moves.

getAllowManualRotation()

Get if the turret is allowed to rotate through moves.

return:

True if the turret is allowed to rotate through moves.

getState()

Get the name of the turret's current state.

The state is one of the following:

return:

The current state; one of: "Dead", "Mounted", "Ready"

getTurretEulerRotation()

Get Euler rotation of this turret's heading and pitch nodes.

return:

the orientation of the turret's heading and pitch nodes in the form of rotations around the X, Y and Z axes in degrees.

setAllowManualFire(bool allow)

Set if the turret is allowed to fire through moves.

Parameters:

allow

If true then the turret may be fired through moves.

setAllowManualRotation(bool allow)

Set if the turret is allowed to rotate through moves.

Parameters:

allow

If true then the turret may be rotated through moves.

setTurretEulerRotation(Point3F rot)

Set Euler rotation of this turret's heading and pitch nodes in degrees.

Parameters:

rot

The rotation in degrees. The pitch is the X component and the heading is the Z component. The Y component is ignored.