CEL

Public API Reference

Public Member Functions
iPcMechanicsThruster Struct Reference

Property class representing a thruster that affect forces on the attached object. More...

#include <propclass/mechthruster.h>

Inheritance diagram for iPcMechanicsThruster:
iBase

List of all members.

Public Member Functions

virtual float AvailableThrust ()=0
 How much thrust is available on this thruster?
virtual float GetMaxThrust ()=0
 Get the maximum thrust.
virtual iPcMechanicsObjectGetMechanicsObject ()=0
 Get the associated mechanics object.
virtual const csVector3GetOrientation ()=0
 Get the orientation of the thruster.
virtual const csVector3GetPosition ()=0
 Get the thruster's position relative to the object.
virtual float GetThrustForce (float thrust)=0
 Get the amount of force a given thrust will produce, taking into account the current environment.
virtual void SetMaxThrust (float maxthrust)=0
 Set the maximum thrust.
virtual void SetMechanicsObject (iPcMechanicsObject *mechsys)=0
 Set the mechanics object to affect.
virtual void SetOrientation (const csVector3 &orientation)=0
 Set the orientation of the thruster.
virtual void SetPosition (const csVector3 &pos)=0
 Set the thruster's position relative to the object.
virtual void ThrustChange (float deltathrust)=0
 Applies a delta to the thruster's current thrust.

Detailed Description

Property class representing a thruster that affect forces on the attached object.

This property class supports the following actions (add prefix 'cel.mechanics.reactionary.action.' if you want to access this action through a message):

Definition at line 40 of file mechthruster.h.


Member Function Documentation

virtual float iPcMechanicsThruster::AvailableThrust ( ) [pure virtual]

How much thrust is available on this thruster?

virtual float iPcMechanicsThruster::GetMaxThrust ( ) [pure virtual]

Get the maximum thrust.

Get the associated mechanics object.

virtual const csVector3& iPcMechanicsThruster::GetOrientation ( ) [pure virtual]

Get the orientation of the thruster.

virtual const csVector3& iPcMechanicsThruster::GetPosition ( ) [pure virtual]

Get the thruster's position relative to the object.

virtual float iPcMechanicsThruster::GetThrustForce ( float  thrust) [pure virtual]

Get the amount of force a given thrust will produce, taking into account the current environment.

Parameters:
thrustthe amount of thrust to convert.
virtual void iPcMechanicsThruster::SetMaxThrust ( float  maxthrust) [pure virtual]

Set the maximum thrust.

Parameters:
maxthrustthe maximum amount of thrust this thruster can accomodate.
virtual void iPcMechanicsThruster::SetMechanicsObject ( iPcMechanicsObject mechsys) [pure virtual]

Set the mechanics object to affect.

This is required.

Parameters:
mechsysthe object the thruster is attached to.
virtual void iPcMechanicsThruster::SetOrientation ( const csVector3 orientation) [pure virtual]

Set the orientation of the thruster.

Parameters:
orientationthe direction in which the thruster points.
virtual void iPcMechanicsThruster::SetPosition ( const csVector3 pos) [pure virtual]

Set the thruster's position relative to the object.

Parameters:
posthe offset from the center of the object to the thruster.
virtual void iPcMechanicsThruster::ThrustChange ( float  deltathrust) [pure virtual]

Applies a delta to the thruster's current thrust.

Parameters:
deltathrustthe change in thrust.

The documentation for this struct was generated from the following file:

Generated for CEL: Crystal Entity Layer 2.0 by doxygen 1.7.6.1