Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
TimeWarp Class Reference
Inheritance diagram for TimeWarp:

Public Types

enum  MaxRailsRateMode { MaxRailsRateMode.VesselAltitude, MaxRailsRateMode.PeAltitude }
 Method used to calc Max Warp rate when on Rails More...
 
enum  Modes { Modes.HIGH, Modes.LOW }
 

Public Member Functions

bool CancelAutoWarp (int rateIdx=-1, bool delay_unlock=false)
 
double GetAltitudeLimit (int i, CelestialBody body)
 
int GetMaxRateForAltitude (double altitude, CelestialBody cb)
 
void WarpTo (double UT, double maxTimeWarping=8.0, double minTimeWarping=2.5)
 

Static Public Member Functions

static void SetRate (int rate_index, bool instant, bool postScreenMessage=true)
 

Public Attributes

float[] altitudeLimits
 
int current_rate_index
 
int maxModeSwitchRate_index
 
int maxPhysicsRate_index
 
Modes Mode
 
float[] physicsWarpRates
 
bool setAutoWarp = false
 
float textDuration = 3f
 
float[] warpRates
 
double warpToMaxWarping
 
double warpToMinWarping
 
double warpToUT
 

Static Public Attributes

static TimeWarp fetch
 
static double GThreshold = 0.1d
 

Properties

static float CurrentRate [get]
 
static int CurrentRateIndex [get]
 
static bool CurrentRateIsTargetRate [get]
 
static float deltaTime [get]
 
static float fixedDeltaTime [get]
 
static float MaxPhysicsRate [get]
 
static float MaxRate [get]
 Max onrails warp rate More...
 
float tgt_rate [get, set]
 
static Modes WarpMode [get]
 

Member Enumeration Documentation

Method used to calc Max Warp rate when on Rails

Enumerator
VesselAltitude 

Based on vessel altitude this frame and next frame

PeAltitude 

Based on vessels orbital Pe and the height of the atmosphere/surface of the body being orbited

Enumerator
HIGH 
LOW 

Member Function Documentation

bool TimeWarp.CancelAutoWarp ( int  rateIdx = -1,
bool  delay_unlock = false 
)
inline
double TimeWarp.GetAltitudeLimit ( int  i,
CelestialBody  body 
)
inline
int TimeWarp.GetMaxRateForAltitude ( double  altitude,
CelestialBody  cb 
)
inline
static void TimeWarp.SetRate ( int  rate_index,
bool  instant,
bool  postScreenMessage = true 
)
inlinestatic
void TimeWarp.WarpTo ( double  UT,
double  maxTimeWarping = 8.0,
double  minTimeWarping = 2.5 
)
inline

Member Data Documentation

float [] TimeWarp.altitudeLimits
int TimeWarp.current_rate_index
TimeWarp TimeWarp.fetch
static
double TimeWarp.GThreshold = 0.1d
static
int TimeWarp.maxModeSwitchRate_index
int TimeWarp.maxPhysicsRate_index
Modes TimeWarp.Mode
float [] TimeWarp.physicsWarpRates
bool TimeWarp.setAutoWarp = false
float TimeWarp.textDuration = 3f
float [] TimeWarp.warpRates
double TimeWarp.warpToMaxWarping
double TimeWarp.warpToMinWarping
double TimeWarp.warpToUT

Property Documentation

float TimeWarp.CurrentRate
staticget
int TimeWarp.CurrentRateIndex
staticget
bool TimeWarp.CurrentRateIsTargetRate
staticget
float TimeWarp.deltaTime
staticget
float TimeWarp.fixedDeltaTime
staticget
float TimeWarp.MaxPhysicsRate
staticget
float TimeWarp.MaxRate
staticget

Max onrails warp rate

float TimeWarp.tgt_rate
getset
Modes TimeWarp.WarpMode
staticget

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