C# 클래스 MissionController.Manager

Manages the missions and the current space program (budget and so on)
상속: IManager
파일 보기 프로젝트 열기: pweingardt/KSPMissionController

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
Manager ( ) : System
costs ( int value ) : int
discardRandomMission ( Mission m ) : void

Discards the given random mission. Removed it from the random missions list

finishMission ( Mission m, Vessel vessel, GameEvent events ) : void

Finishes the given mission with the given vessel. Rewards the space program with the missions reward.

finishMissionGoal ( MissionGoal goal, Vessel vessel, GameEvent events ) : void

Finishes the given mission goal with the given vessel. Rewards the space program with the reward from mission goal.

getActivePassiveMissions ( ) : List

Gets all passive missions that are currently active. Removes old passive missions

getBudget ( ) : int
getClientControlledMission ( Vessel vessel ) : MissionStatus

Gets the client controlled mission that has been finished with the given vessel

getClientControlledMissions ( ) : List

Gets all client controlled missions

getPassiveMission ( Vessel vessel ) : MissionStatus

Gets the passive mission for the given vessel.

isClientControlled ( Vessel vessel ) : bool

Checks if the given vessel is controlled by a client.

isMissionAlreadyFinished ( Mission m, Vessel v ) : bool

Returns true, if the given mission has been finished with the given vessel.

isMissionAlreadyFinished ( String name ) : bool

If true, the given mission name has been finished. False otherwise.

isMissionGoalAlreadyFinished ( MissionGoal c, Vessel v ) : bool

Returns true, if the given mission goal has been finish in another game with the given vessel, false otherwise

isOnPassiveMission ( Vessel vessel ) : bool

Checks if the given vessel in on a passive mission

loadMissionPackage ( String path ) : MissionPackage

Loads the given mission package

loadProgram ( String title ) : void
recycleVessel ( Vessel vessel, int costs ) : void

Recycles the vessel with the given costs. It is added to the recycled vessels list.

reloadMission ( Mission m, Vessel vessel ) : Mission

Reloads the given mission for the given vessel. Checks for already finished mission goals and reexecutes the instructions.

removeMission ( MissionStatus s ) : void

Removes an mission status

resetSpaceProgram ( ) : void

Reset the current space program.

reward ( int value ) : int
rewind ( ) : void

Rewinds the latest expenses.

saveProgram ( ) : void

Saves the current space program

메소드 상세

Manager() 공개 메소드

public Manager ( ) : System
리턴 System

costs() 공개 메소드

public costs ( int value ) : int
value int
리턴 int

discardRandomMission() 공개 메소드

Discards the given random mission. Removed it from the random missions list
public discardRandomMission ( Mission m ) : void
m Mission M.
리턴 void

finishMission() 공개 메소드

Finishes the given mission with the given vessel. Rewards the space program with the missions reward.
public finishMission ( Mission m, Vessel vessel, GameEvent events ) : void
m Mission mission
vessel Vessel vessel
events GameEvent
리턴 void

finishMissionGoal() 공개 메소드

Finishes the given mission goal with the given vessel. Rewards the space program with the reward from mission goal.
public finishMissionGoal ( MissionGoal goal, Vessel vessel, GameEvent events ) : void
goal MissionGoal Goal.
vessel Vessel Vessel.
events GameEvent
리턴 void

getActivePassiveMissions() 공개 메소드

Gets all passive missions that are currently active. Removes old passive missions
public getActivePassiveMissions ( ) : List
리턴 List

getBudget() 공개 메소드

public getBudget ( ) : int
리턴 int

getClientControlledMission() 공개 메소드

Gets the client controlled mission that has been finished with the given vessel
public getClientControlledMission ( Vessel vessel ) : MissionStatus
vessel Vessel Vessel.
리턴 MissionStatus

getClientControlledMissions() 공개 메소드

Gets all client controlled missions
public getClientControlledMissions ( ) : List
리턴 List

getPassiveMission() 공개 메소드

Gets the passive mission for the given vessel.
public getPassiveMission ( Vessel vessel ) : MissionStatus
vessel Vessel Vessel.
리턴 MissionStatus

isClientControlled() 공개 메소드

Checks if the given vessel is controlled by a client.
public isClientControlled ( Vessel vessel ) : bool
vessel Vessel Vessel.
리턴 bool

isMissionAlreadyFinished() 공개 메소드

Returns true, if the given mission has been finished with the given vessel.
public isMissionAlreadyFinished ( Mission m, Vessel v ) : bool
m Mission mission
v Vessel vessel
리턴 bool

isMissionAlreadyFinished() 공개 메소드

If true, the given mission name has been finished. False otherwise.
public isMissionAlreadyFinished ( String name ) : bool
name String mission name
리턴 bool

isMissionGoalAlreadyFinished() 공개 메소드

Returns true, if the given mission goal has been finish in another game with the given vessel, false otherwise
public isMissionGoalAlreadyFinished ( MissionGoal c, Vessel v ) : bool
c MissionGoal goal
v Vessel vessel
리턴 bool

isOnPassiveMission() 공개 메소드

Checks if the given vessel in on a passive mission
public isOnPassiveMission ( Vessel vessel ) : bool
vessel Vessel Vessel.
리턴 bool

loadMissionPackage() 공개 메소드

Loads the given mission package
public loadMissionPackage ( String path ) : MissionPackage
path String Path.
리턴 MissionPackage

loadProgram() 공개 메소드

public loadProgram ( String title ) : void
title String
리턴 void

recycleVessel() 공개 메소드

Recycles the vessel with the given costs. It is added to the recycled vessels list.
public recycleVessel ( Vessel vessel, int costs ) : void
vessel Vessel Vessel.
costs int Costs.
리턴 void

reloadMission() 공개 메소드

Reloads the given mission for the given vessel. Checks for already finished mission goals and reexecutes the instructions.
public reloadMission ( Mission m, Vessel vessel ) : Mission
m Mission mission
vessel Vessel vessel
리턴 Mission

removeMission() 공개 메소드

Removes an mission status
public removeMission ( MissionStatus s ) : void
s MissionStatus S.
리턴 void

resetSpaceProgram() 공개 메소드

Reset the current space program.
public resetSpaceProgram ( ) : void
리턴 void

reward() 공개 메소드

public reward ( int value ) : int
value int
리턴 int

rewind() 공개 메소드

Rewinds the latest expenses.
public rewind ( ) : void
리턴 void

saveProgram() 공개 메소드

Saves the current space program
public saveProgram ( ) : void
리턴 void