C# Class SpaceSim.Engines.EngineBase

Inheritance: IEngine
Show file Open project: zlynn1990/SpaceSim

Protected Properties

Property Type Description
Offset VectorMath.DVector2
Parent ISpaceCraft

Public Methods

Method Description
AdjustCant ( double targetAngle ) : void
AdjustThrottle ( double targetThrottle ) : void
Clone ( ) : IEngine
Draw ( Graphics graphics, RectangleD cameraBounds ) : void
MassFlowRate ( ) : double
Shutdown ( ) : void
Startup ( ) : void
Thrust ( double ispMultiplier ) : double
Update ( SpaceSim.Physics.TimeStep timeStep, double ispMultiplier ) : void

Protected Methods

Method Description
EngineBase ( ISpaceCraft parent, DVector2 offset, EngineFlame flame ) : System

Method Details

AdjustCant() public method

public AdjustCant ( double targetAngle ) : void
targetAngle double
return void

AdjustThrottle() public method

public AdjustThrottle ( double targetThrottle ) : void
targetThrottle double
return void

Clone() public abstract method

public abstract Clone ( ) : IEngine
return IEngine

Draw() public method

public Draw ( Graphics graphics, RectangleD cameraBounds ) : void
graphics System.Drawing.Graphics
cameraBounds VectorMath.RectangleD
return void

EngineBase() protected method

protected EngineBase ( ISpaceCraft parent, DVector2 offset, EngineFlame flame ) : System
parent ISpaceCraft
offset VectorMath.DVector2
flame SpaceSim.Drawing.EngineFlame
return System

MassFlowRate() public abstract method

public abstract MassFlowRate ( ) : double
return double

Shutdown() public method

public Shutdown ( ) : void
return void

Startup() public method

public Startup ( ) : void
return void

Thrust() public abstract method

public abstract Thrust ( double ispMultiplier ) : double
ispMultiplier double
return double

Update() public method

public Update ( SpaceSim.Physics.TimeStep timeStep, double ispMultiplier ) : void
timeStep SpaceSim.Physics.TimeStep
ispMultiplier double
return void

Property Details

Offset protected property

protected DVector2,VectorMath Offset
return VectorMath.DVector2

Parent protected property

protected ISpaceCraft Parent
return ISpaceCraft