C# Класс MissionController.Manager

Manages the missions and the current space program (budget and so on)
Наследование: IManager
Показать файл Открыть проект

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