Open Rails

MSTSWagon Members

MSTSWagon overview

Public Static Methods

ParseFloat

Public Instance Constructors

MSTSWagon Constructor

Public Instance Fields

_AccelerationMpSS (inherited from TrainCar)
_PrevSpeedMpS (inherited from TrainCar)
_SpeedMpS (inherited from TrainCar)
AcceptMUSignals (inherited from TrainCar)
accumedAcceTime (inherited from TrainCar)
Adhesion1
Adhesion2
Adhesion3
AdhesionK
AuxPowerOn
AxleInertiaKgm2
BrakeForceN (inherited from TrainCar)
BrakeSystem (inherited from TrainCar)
Cab3DShapeFileName
Cab3DSoundFileName
CabViewpoints (inherited from TrainCar)
CarHeatLossWpT (inherited from TrainCar)
CarHeatPipeAreaM2 (inherited from TrainCar)
CarHeatVolumeM3 (inherited from TrainCar)
CarHeightM (inherited from TrainCar)
CarID (inherited from TrainCar)
CarLengthM (inherited from TrainCar)
CarTunnelData (inherited from TrainCar)
CarWidthM (inherited from TrainCar)
CouplerForceA (inherited from TrainCar)
CouplerForceB (inherited from TrainCar)
CouplerForceC (inherited from TrainCar)
CouplerForceG (inherited from TrainCar)
CouplerForceR (inherited from TrainCar)
CouplerForceU (inherited from TrainCar)
CouplerOverloaded (inherited from TrainCar)
Couplers
CouplerSlack2M (inherited from TrainCar)
CouplerSlackM (inherited from TrainCar)
CurrentCurveRadius (inherited from TrainCar)
CurrentElevationPercent (inherited from TrainCar)
currentStiffness (inherited from TrainCar)
Curtius_KnifflerA
Curtius_KnifflerB
Curtius_KnifflerC
CurveForceN (inherited from TrainCar)
CurveResistanceSpeedDependent (inherited from TrainCar)
CurveSpeedDependent (inherited from TrainCar)
DavisAN
DavisBNSpM
DavisCNSSpMM
DistanceM (inherited from TrainCar)
DistributorPresent True if triple valve is capable of releasing brake gradually
DoorLeftOpen
DoorRightOpen
DriverWheelRadiusM
EmergencyReservoirPresent True if vehicle is equipped with an additional emergency brake reservoir
EventHandlers
Flipped (inherited from TrainCar)
FreightAnimFlag
FreightAnimMaxLevelM
FreightAnimMinLevelM
FreightShapeFileName
Friction0N
FrictionForceN (inherited from TrainCar)
GravityForceN (inherited from TrainCar)
HandBrakePresent True if equipped with handbrake. (Not common for older steam locomotives.)
HasFreightAnim (inherited from TrainCar)
HasInsideView (inherited from TrainCar)
HasPassengerCapacity (inherited from TrainCar)
Headlight (inherited from TrainCar)
HeadOutViewpoints (inherited from TrainCar)
InitialMassKG (inherited from TrainCar)
IntakePointList
InteriorShapeFileName
InteriorSoundFileName
IsDavisFriction
IsDriveable (inherited from TrainCar)
IsEngine
IsFreight (inherited from TrainCar)
IsFrictionBearing
IsLowSpeed
IsLowTorqueRollerBearing
IsMetric (inherited from TrainCar)
IsPartOfActiveTrain (inherited from TrainCar)
IsPassenger
IsRollerBearing
IsStandStill
IsTender (inherited from TrainCar)
IsUK (inherited from TrainCar)
lastTime (inherited from TrainCar)
Lights (inherited from TrainCar)
LocalGearboxGearIndex (inherited from TrainCar)
LocalThrottlePercent (inherited from TrainCar)
MainShapeFileName
MainSoundFileName
MassKG (inherited from TrainCar)
MirrorOpen
MotiveForceN (inherited from TrainCar)
MotiveForceSmoothedN (inherited from TrainCar)
NumWheelsBrakingFactor
ORTSFreightAnimData (inherited from TrainCar)
Pantographs
Parts (inherited from TrainCar)
PassengerViewpoints (inherited from TrainCar)
prevElev (inherited from TrainCar)
PrevMotiveForceN (inherited from TrainCar)
prevTilted (inherited from TrainCar)
prevY (inherited from TrainCar)
prevY2 (inherited from TrainCar)
RealWagFilePath (inherited from TrainCar)
RealXNAMatrix (inherited from TrainCar)
RetainerPositions Number of available retainer positions. (Used on freight cars, mostly.) Might be 0, 3 or 4.
Simulator (inherited from TrainCar)
SlipWarningThresholdPercent
SoundSourceIDs (inherited from TrainCar)
SuperElevationMatrix (inherited from TrainCar)
sx (inherited from TrainCar)
sy (inherited from TrainCar)
sz (inherited from TrainCar)
TotalForceN (inherited from TrainCar)
totalRotationX (inherited from TrainCar)
totalRotationZ (inherited from TrainCar)
TrackSoundDistSquared (inherited from TrainCar)
TrackSoundLocation (inherited from TrainCar)
TrackSoundType (inherited from TrainCar)
Train (inherited from TrainCar)
TunnelForceN (inherited from TrainCar)
TunnelResistanceDependent (inherited from TrainCar)
UiD (inherited from TrainCar)
UnloadingPartsOpen
Variable1
Variable2
Variable3
Velocity (inherited from TrainCar)
WagFilePath (inherited from TrainCar)
WaitForAnimationReady
WeightLoadController
WheelAxles (inherited from TrainCar)
WheelAxlesLoaded (inherited from TrainCar)
WheelRadiusM
WheelSlip (inherited from TrainCar)
WheelSlipWarning (inherited from TrainCar)
WheelSpeedMpS
WorldPosition (inherited from TrainCar)

Public Instance Properties

AccelerationMpSS (inherited from TrainCar)
Coupler
Direction (inherited from TrainCar)
DynamicBrakePercent (inherited from TrainCar)
GearboxGearIndex (inherited from TrainCar)
HasFrontCab (inherited from TrainCar)
HasRearCab (inherited from TrainCar)
IsPlayerTrain (inherited from TrainCar)
MSTSBrakeSystem
SpeedMpS (inherited from TrainCar)
TendersSteamLocomotive Attached steam locomotive in case this wagon is a tender
ThrottlePercent (inherited from TrainCar)

Public Instance Methods

AddBogie (inherited from TrainCar)
AddWheelSet (inherited from TrainCar)
ComputeMaxXZ (inherited from TrainCar)
ComputePosition (inherited from TrainCar)
Copy This initializer is called when we are making a new copy of a car already loaded in memory. We use this one to speed up loading by eliminating the need to parse the wag file multiple times. IMPORTANT NOTE: everything you initialized in parse, must be initialized here
CopyControllerSettings (inherited from TrainCar)
CopyCoupler
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
FindTendersSteamLocomotive
GetCabFlipped (inherited from TrainCar)
GetCentreofGravityM
GetCouplerStiffnessNpM
GetCouplerZeroLengthM
GetDebugStatus (inherited from TrainCar)
GetDriverWheelRadiusM
GetDynamicBrakeStatus (inherited from TrainCar)
GetEngineBrakeStatus (inherited from TrainCar)
GetEngineType (inherited from TrainCar)
GetFilledFraction Returns the fraction of load already in wagon.
GetHashCode (inherited from Object)Serves as a hash function for a particular type.
GetLocoNumWheels (inherited from TrainCar)
GetMaximumCouplerForceN (inherited from TrainCar)
GetMaximumCouplerSlack1M
GetMaximumCouplerSlack2M
GetMeasurementUnits
GetRigidWheelBaseM
GetSanderOn (inherited from TrainCar)
GetStatus (inherited from TrainCar)
GetTrackGaugeM
GetTrainBrakeStatus (inherited from TrainCar)
GetTrainHandbrakeStatus
GetType (inherited from Object)Gets the type of the current instance.
GetUnbalancedSuperElevationM
GetWagonNumWheels
GetWagonType
GetXNAMatrix (inherited from TrainCar)
Initialize
InitializeMoving (inherited from TrainCar)
IsOverTrough (inherited from TrainCar) Checks if traincar is over trough. Used to check if refill possible
Load
LoadFromWagFile This initializer is called when we haven't loaded this type of car before and must read it new from the wag file.
Parse Parse the wag file parameters required for the simulator and viewer classes
Restore We are restoring a saved game. The TrainCar class has already been initialized. Restore the game state.
Save We are saving the game. Save anything that we'll need to restore the status later.
SetUpWheels (inherited from TrainCar)
SetWagonHandbrake
SignalEventOverloaded.
StartRefillingOrUnloading Starts a continuous increase in controlled value.
SuperElevation (inherited from TrainCar)
SwitchToAutopilotControl (inherited from TrainCar)
SwitchToPlayerControl (inherited from TrainCar)
ToggleDoorsLeft
ToggleDoorsRight
ToggleMirrors
ToString (inherited from Object)Returns a string that represents the current object.
Update
UpdateCarriageHeatLoss (inherited from TrainCar) This section calculates the heat loss in a carriage, and is used in conjunction with steam heating. Overall heat loss is made up of the following components - heat loss due to transmission through walls, windows, doors, floors and more (W) + heat loss caused by ventilation (W) + heat loss caused by infiltration (W)
UpdateCurveForce (inherited from TrainCar) Reads current curve radius and computes the CurveForceN friction. Can be overriden by calling base.UpdateCurveForce(); CurveForceN *= someCarSpecificCoef;
UpdateCurveSpeedLimit (inherited from TrainCar) Reads current curve radius and computes the maximum recommended speed around the curve based upon the superelevation of the track
UpdateSoundPosition (inherited from TrainCar)
UpdateTunnelForce (inherited from TrainCar) Tunnel force (resistance calculations based upon formula presented in papaer titled "Reasonable compensation coefficient of maximum gradient in long railway tunnels"

Protected Instance Methods

Finalize (inherited from Object)Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

MSTSWagon Class | ORTS Namespace