Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Properties | List of all members
VehiclePhysics.Block Class Reference
Inheritance diagram for VehiclePhysics.Block:
VehiclePhysics.Brake VehiclePhysics.Clutch VehiclePhysics.Differential VehiclePhysics.DifferentialGeneric VehiclePhysics.DirectDrive VehiclePhysics.Engine VehiclePhysics.Gear VehiclePhysics.Gearbox VehiclePhysics.Gearset VehiclePhysics.InertialDrive VehiclePhysics.InertialFlywheel VehiclePhysics.Retarder VehiclePhysics.SynchronousDrive VehiclePhysics.TorqueInjector VehiclePhysics.TorqueSplitter VehiclePhysics.Wheel

Classes

class  Connection
 
struct  Derivative
 
struct  State
 

Public Member Functions

 Block ()
 
virtual bool CheckConnections ()
 
virtual void ComputeStateUpstream ()
 
void CountConnections ()
 
bool DisconnectInput (int inputSlot)
 
bool DisconnectOutput (int outputSlot)
 
virtual void EvaluateTorqueDownstream ()
 
virtual void GetState (ref State S)
 
virtual void GetSubstepDerivative (ref Derivative D)
 
virtual void PreStep ()
 
virtual void SetState (State S)
 
virtual void SetSubstepState (State S)
 

Static Public Member Functions

static bool Connect (Block inputUnit, int inputSlot, Block outputUnit, int outputSlot)
 
static bool Connect (Block inputUnit, Block outputUnit)
 
static bool Connect (Block inputUnit, Block outputUnit, int outputSlot)
 
static bool Connect (params Block[] blocks)
 

Static Public Attributes

static float RpmToW = (2.0f * Mathf.PI) / 60.0f
 
static float WToRpm = 60.0f / (2.0f * Mathf.PI)
 

Protected Member Functions

virtual void Initialize ()
 
void SetInputs (int count)
 
void SetOutputs (int count)
 

Properties

int connectedInputs [get]
 
int connectedOutputs [get]
 
bool hasInputs [get]
 
bool hasOutputs [get]
 
Connection[] inputs [get]
 
Connection[] outputs [get]
 

Constructor & Destructor Documentation

VehiclePhysics.Block.Block ( )
inline

Member Function Documentation

virtual bool VehiclePhysics.Block.CheckConnections ( )
inlinevirtual
virtual void VehiclePhysics.Block.ComputeStateUpstream ( )
inlinevirtual
static bool VehiclePhysics.Block.Connect ( Block  inputUnit,
int  inputSlot,
Block  outputUnit,
int  outputSlot 
)
inlinestatic
static bool VehiclePhysics.Block.Connect ( Block  inputUnit,
Block  outputUnit 
)
inlinestatic
static bool VehiclePhysics.Block.Connect ( Block  inputUnit,
Block  outputUnit,
int  outputSlot 
)
inlinestatic
static bool VehiclePhysics.Block.Connect ( params Block[]  blocks)
inlinestatic
void VehiclePhysics.Block.CountConnections ( )
inline
bool VehiclePhysics.Block.DisconnectInput ( int  inputSlot)
inline
bool VehiclePhysics.Block.DisconnectOutput ( int  outputSlot)
inline
virtual void VehiclePhysics.Block.EvaluateTorqueDownstream ( )
inlinevirtual
virtual void VehiclePhysics.Block.GetState ( ref State  S)
inlinevirtual
virtual void VehiclePhysics.Block.GetSubstepDerivative ( ref Derivative  D)
inlinevirtual
virtual void VehiclePhysics.Block.Initialize ( )
inlineprotectedvirtual
virtual void VehiclePhysics.Block.PreStep ( )
inlinevirtual
void VehiclePhysics.Block.SetInputs ( int  count)
inlineprotected
void VehiclePhysics.Block.SetOutputs ( int  count)
inlineprotected
virtual void VehiclePhysics.Block.SetState ( State  S)
inlinevirtual
virtual void VehiclePhysics.Block.SetSubstepState ( State  S)
inlinevirtual

Member Data Documentation

float VehiclePhysics.Block.RpmToW = (2.0f * Mathf.PI) / 60.0f
static
float VehiclePhysics.Block.WToRpm = 60.0f / (2.0f * Mathf.PI)
static

Property Documentation

int VehiclePhysics.Block.connectedInputs
get
int VehiclePhysics.Block.connectedOutputs
get
bool VehiclePhysics.Block.hasInputs
get
bool VehiclePhysics.Block.hasOutputs
get
Connection [] VehiclePhysics.Block.inputs
get
Connection [] VehiclePhysics.Block.outputs
get

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