C# Class kOS.Suffixed.WaypointValue

Inheritance: Structure
Afficher le fichier Open project: KSP-KOS/KOS Class Usage Examples

Méthodes publiques

Méthode Description
BuildGeoCoordinates ( ) : GeoCoordinates
BuildSeaLevelAltitude ( ) : ScalarValue
CookedName ( ) : kOS.Safe.Encapsulation.StringValue
GetBody ( ) : CelestialBody
GetPosition ( ) : kOS.Suffixed.Vector
GreekToInteger ( string greekLetterName, int &index, string &baseName ) : bool

Return an integer to go with the alphabet position of the string given in greek lettering. For example, input "alpha" and get out 0. input "beta" and get out 1. If no match is found, -1 is returned.
This is used by waypoints so that you can figure out that a waypoint named like "Jebadiah's lament Gamma" is really the 3rd (index 2) member of the "Jebadiah's lament" cluster of waypoints.
Because that is its purpose, it actually operates on the LASTMOST word in the string it is given. given a string like "foo bar baz", it will check if "baz" is a greek letter, not "foo". Thus you can pass in exactly the name as it appears onscreen.

ToString ( ) : string
ToVerboseString ( ) : kOS.Safe.Encapsulation.StringValue
WaypointValue ( FinePrint.Waypoint wayPoint, SharedObjects shared ) : System

Private Methods

Méthode Description
InitializeGreekMap ( ) : void
InitializeSuffixes ( ) : void

Method Details

BuildGeoCoordinates() public méthode

public BuildGeoCoordinates ( ) : GeoCoordinates
Résultat GeoCoordinates

BuildSeaLevelAltitude() public méthode

public BuildSeaLevelAltitude ( ) : ScalarValue
Résultat kOS.Safe.Encapsulation.ScalarValue

CookedName() public méthode

public CookedName ( ) : kOS.Safe.Encapsulation.StringValue
Résultat kOS.Safe.Encapsulation.StringValue

GetBody() public méthode

public GetBody ( ) : CelestialBody
Résultat CelestialBody

GetPosition() public méthode

public GetPosition ( ) : kOS.Suffixed.Vector
Résultat kOS.Suffixed.Vector

GreekToInteger() public static méthode

Return an integer to go with the alphabet position of the string given in greek lettering. For example, input "alpha" and get out 0. input "beta" and get out 1. If no match is found, -1 is returned.
This is used by waypoints so that you can figure out that a waypoint named like "Jebadiah's lament Gamma" is really the 3rd (index 2) member of the "Jebadiah's lament" cluster of waypoints.
Because that is its purpose, it actually operates on the LASTMOST word in the string it is given. given a string like "foo bar baz", it will check if "baz" is a greek letter, not "foo". Thus you can pass in exactly the name as it appears onscreen.
public static GreekToInteger ( string greekLetterName, int &index, string &baseName ) : bool
greekLetterName string string name to check. Case insensitively.
index int integer position in alphabet. -1 if no match.
baseName string the name after the last term has been stripped off, if there are /// space separated terms. Note that if the return value of this method is false, this /// shouldn't be used and you should stick with the original full name.
Résultat bool

ToString() public méthode

public ToString ( ) : string
Résultat string

ToVerboseString() public méthode

public ToVerboseString ( ) : kOS.Safe.Encapsulation.StringValue
Résultat kOS.Safe.Encapsulation.StringValue

WaypointValue() public méthode

public WaypointValue ( FinePrint.Waypoint wayPoint, SharedObjects shared ) : System
wayPoint FinePrint.Waypoint
shared SharedObjects
Résultat System