C# Class MissionController.MissionGoal

A single mission goal.
Inheritance: InstructionSet
Afficher le fichier Open project: pweingardt/KSPMissionController Class Usage Examples

Méthodes publiques

Свойство Type Description
crewCount int
description String
doneOnce bool
id String
maxTotalMass double
minSeconds double
minTotalMass double
nonPermanent bool
optional bool
repeatable bool
reward int
throttleDown bool
vesselIndenpendent bool

Méthodes publiques

Méthode Description
getType ( ) : String

Caption in the window for this mission goal

getValues ( Vessel vessel, GameEvent events ) : List

Returns all values related to this mission goal

isDone ( Vessel vessel, GameEvent events ) : bool

Checks, if this mission goal has been accomplished.

Méthodes protégées

Méthode Description
values ( Vessel v, GameEvent events ) : List

Returns an array of necessary values, like orbital parameters.

Method Details

getType() public méthode

Caption in the window for this mission goal
public getType ( ) : String
Résultat String

getValues() public méthode

Returns all values related to this mission goal
public getValues ( Vessel vessel, GameEvent events ) : List
vessel Vessel current vessel
events GameEvent
Résultat List

isDone() public méthode

Checks, if this mission goal has been accomplished.
public isDone ( Vessel vessel, GameEvent events ) : bool
vessel Vessel current vessel
events GameEvent
Résultat bool

values() protected méthode

Returns an array of necessary values, like orbital parameters.
protected values ( Vessel v, GameEvent events ) : List
v Vessel current vessel, might be null when in editor mode or in space center mode!
events GameEvent
Résultat List

Property Details

crewCount public_oe property

The minimal crew count needed for this mission goal
public int crewCount
Résultat int

description public_oe property

The mission goals description
public String description
Résultat String

doneOnce public_oe property

Indicates that the mission goals has been finished once. Don't set this inside a mission file.
public bool doneOnce
Résultat bool

id public_oe property

Used to store finished mission goals. Do not set manually!
public String id
Résultat String

maxTotalMass public_oe property

public double maxTotalMass
Résultat double

minSeconds public_oe property

Minimal time for this mission goal in seconds.
public double minSeconds
Résultat double

minTotalMass public_oe property

The maximal and minimal total mass
public double minTotalMass
Résultat double

nonPermanent public_oe property

nonPermanent = false makes the mission goal a permanent condition to finish the mission goal. Use with caution.
public bool nonPermanent
Résultat bool

optional public_oe property

optional = true makes this mission goal optional
public bool optional
Résultat bool

repeatable public_oe property

If repeatable = true, this mission goals can be accomplished more than once.
public bool repeatable
Résultat bool

reward public_oe property

Optional reward for this specific mission goal
public int reward
Résultat int

throttleDown public_oe property

If true, the vessel needs to be throttled down in order to finish this mission goal
public bool throttleDown
Résultat bool

vesselIndenpendent public_oe property

If true it does not matter with which vessel this goal has been finished.
public bool vesselIndenpendent
Résultat bool