KSP API
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Member Functions | Properties | List of all members
IDiscoverable Interface Reference

Methods allowing information for celestial bodies or ships to be hidden at game start More...

Public Member Functions

double RevealAltitude ()
 Returns the object's altitude More...
 
float RevealMass ()
 Returns the object's mass More...
 
string RevealName ()
 Returns the object's tracking station name More...
 
string RevealSituationString ()
 Describes the state of the object More...
 
double RevealSpeed ()
 Returns the speed of the object More...
 
string RevealType ()
 Gives the type of object used More...
 

Properties

DiscoveryInfo DiscoveryInfo [get]
 Describes to what extent this object has been explored More...
 

Detailed Description

Methods allowing information for celestial bodies or ships to be hidden at game start

These methods appear to be used in the tracking station.

Implemented by CelestialBody Implemented by Vessel

Member Function Documentation

double IDiscoverable.RevealAltitude ( )

Returns the object's altitude

Returns
The height above the reference sphere of the Celestial Body in whose sphere of influence the object lies, in meters.
float IDiscoverable.RevealMass ( )

Returns the object's mass

Units are implementation-dependent.

string IDiscoverable.RevealName ( )

Returns the object's tracking station name

Returns
The string to display in the tracking station
string IDiscoverable.RevealSituationString ( )

Describes the state of the object

Returns

A string containing the sphere of influence and trajectory of the object

"Orbiting the Sun"

double IDiscoverable.RevealSpeed ( )

Returns the speed of the object

Returns
The inertial speed relative to the Celestial Body in whose sphere of influence the object lies, in meters per second.
string IDiscoverable.RevealType ( )

Gives the type of object used

Meaning is implementation-dependent.

Property Documentation

DiscoveryInfo IDiscoverable.DiscoveryInfo
get

Describes to what extent this object has been explored


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