C# Class MissionController.Mission

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

Méthodes publiques

Свойство Type Description
category Category
clientControlled bool
description String
destroyPunishment int
inOrder bool
lifetime double
name String
packageOrder int
passiveMission bool
passiveReward int
randomized bool
repeatable bool
repeatableSameVessel bool
requiresMission String
reward int

Méthodes publiques

Méthode Description
Sort ( List missions, SortBy sortBy ) : void

Sorts the given missions with the given method

SortByName ( Mission x, Mission y ) : int
SortByPackageOrder ( Mission x, Mission y ) : int
SortByReward ( Mission x, Mission y ) : int
ToString ( ) : string
add ( MissionGoal c ) : void

Needed for reflection

isDone ( Vessel vessel, GameEvent events ) : bool

Checks if the mission is finishable with the vessel

Method Details

Sort() public static méthode

Sorts the given missions with the given method
public static Sort ( List missions, SortBy sortBy ) : void
missions List Missions.
sortBy SortBy Sort by.
Résultat void

SortByName() public static méthode

public static SortByName ( Mission x, Mission y ) : int
x Mission
y Mission
Résultat int

SortByPackageOrder() public static méthode

public static SortByPackageOrder ( Mission x, Mission y ) : int
x Mission
y Mission
Résultat int

SortByReward() public static méthode

public static SortByReward ( Mission x, Mission y ) : int
x Mission
y Mission
Résultat int

ToString() public méthode

public ToString ( ) : string
Résultat string

add() public méthode

Needed for reflection
public add ( MissionGoal c ) : void
c MissionGoal C.
Résultat void

isDone() public méthode

Checks if the mission is finishable with the vessel
public isDone ( Vessel vessel, GameEvent events ) : bool
vessel Vessel current vessel
events GameEvent
Résultat bool

Property Details

category public_oe property

Mission category
public Category category
Résultat Category

clientControlled public_oe property

if true then the vessel that finished this mission is controlled by the client, not by the user
public bool clientControlled
Résultat bool

description public_oe property

Missions Description
public String description
Résultat String

destroyPunishment public_oe property

The punishment if the user destroyed the vessel
public int destroyPunishment
Résultat int

inOrder public_oe property

If true, the mission goals needs to be finished in the right order
public bool inOrder
Résultat bool

lifetime public_oe property

Lifetime of this mission in secondes. use TIME.
public double lifetime
Résultat double

name public_oe property

Unique name
public String name
Résultat String

packageOrder public_oe property

The order in the mission package. Set to a very high number so that it is the last mission
public int packageOrder
Résultat int

passiveMission public_oe property

If true, then this mission is a passive mission with a lifetime and income gerneration
public bool passiveMission
Résultat bool

passiveReward public_oe property

The passive reward per day
public int passiveReward
Résultat int

randomized public_oe property

If true, the mission will be initialized with a random seed and this seed is saved within the space program object. Once loaded (until discarded), the mission will stay the same.
public bool randomized
Résultat bool

repeatable public_oe property

If true, this mission is repeatable. You can't finish the same mission with one vessel twice.
public bool repeatable
Résultat bool

repeatableSameVessel public_oe property

If true, then the repeatable mission (repeatable must be true), then this mission is repeatable with the same vessel. This field is ignored, when the mission is not client controlled of passive!
public bool repeatableSameVessel
Résultat bool

requiresMission public_oe property

If this field is not empty, then this mission requires another mission to be finished. If it has not been finished, then this mission can not be finished either.
public String requiresMission
Résultat String

reward public_oe property

Reward for finishing the mission
public int reward
Résultat int