C# Class MissionController.Mission

A mission
Inheritance: InstructionSet
Mostra file Open project: pweingardt/KSPMissionController Class Usage Examples

Public Properties

Property 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

Public Methods

Method 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 method

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

SortByName() public static method

public static SortByName ( Mission x, Mission y ) : int
x Mission
y Mission
return int

SortByPackageOrder() public static method

public static SortByPackageOrder ( Mission x, Mission y ) : int
x Mission
y Mission
return int

SortByReward() public static method

public static SortByReward ( Mission x, Mission y ) : int
x Mission
y Mission
return int

ToString() public method

public ToString ( ) : string
return string

add() public method

Needed for reflection
public add ( MissionGoal c ) : void
c MissionGoal C.
return void

isDone() public method

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

Property Details

category public_oe property

Mission category
public Category category
return 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
return bool

description public_oe property

Missions Description
public String description
return String

destroyPunishment public_oe property

The punishment if the user destroyed the vessel
public int destroyPunishment
return int

inOrder public_oe property

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

lifetime public_oe property

Lifetime of this mission in secondes. use TIME.
public double lifetime
return double

name public_oe property

Unique name
public String name
return 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
return int

passiveMission public_oe property

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

passiveReward public_oe property

The passive reward per day
public int passiveReward
return 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
return 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
return 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
return 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
return String

reward public_oe property

Reward for finishing the mission
public int reward
return int