isDone() публичный Метод

Checks, if this mission goal has been accomplished.
public isDone ( Vessel vessel, GameEvent events ) : bool
vessel Vessel current vessel
events GameEvent
Результат bool
Пример #1
0
 /// <summary>
 /// Finishes the given mission goal with the given vessel.
 /// Rewards the space program with the reward from mission goal.
 /// </summary>
 /// <param name="goal">Goal.</param>
 /// <param name="vessel">Vessel.</param>
 public void finishMissionGoal(MissionGoal goal, Vessel vessel, GameEvent events)
 {
     if (!isMissionGoalAlreadyFinished(goal, vessel) && goal.nonPermanent && goal.isDone(vessel, events))
     {
         currentProgram.add(new GoalStatus(vessel.id.ToString(), goal.id));
         reward(goal.reward);
     }
 }
Пример #2
0
 /// <summary>
 /// Finishes the given mission goal with the given vessel.
 /// Rewards the space program with the reward from mission goal.
 /// </summary>
 /// <param name="goal">Goal.</param>
 /// <param name="vessel">Vessel.</param>
 public void finishMissionGoal(MissionGoal goal, Vessel vessel, GameEvent events)
 {
     if (!isMissionGoalAlreadyFinished (goal, vessel) && goal.nonPermanent && goal.isDone(vessel, events)) {
         currentProgram.add(new GoalStatus(vessel.id.ToString(), goal.id));
         reward (goal.reward);
     }
 }