Esempio n. 1
0
        /// <summary>
        /// Create a new Objective providing its duration as an Expiration object
        /// </summary>
        public Objective(Expiration aExpiration, bool aCanBeObtained = true)
        {
            Expiration = aExpiration;
            List = new List<IntentObtainer>();

            CanBeObtained = aCanBeObtained;
            Obtained = false;
        }
Esempio n. 2
0
 public EmergencyReset(Expiration aExpiration) : base(aExpiration)
 {
     CreateTask();
 }
Esempio n. 3
0
 public Land(Expiration aExpiration) : base(aExpiration)
 {
     CreateTask();
 }
Esempio n. 4
0
 public Hover(Expiration aExpiration) : base(aExpiration)
 {
     CreateTask();
 }
Esempio n. 5
0
 public Takeoff(Expiration aExpiration)
     : base(aExpiration)
 {
     CreateTask();
 }
Esempio n. 6
0
 public FlatTrim(Expiration aExpiration)
     : base(aExpiration)
 {
     CreateTask();
 }
Esempio n. 7
0
 /// <see>
 ///     <cref>Create(long aDuration, params IntentObtainer[] aIntentObtainerList)</cref>
 /// </see>
 public static Objective Create(Expiration aExpiration, params IntentObtainer[] aIntentObtainerList)
 {
     var obj = new Objective(aExpiration);
     foreach (IntentObtainer io in aIntentObtainerList) obj.Add(io);
     return obj;
 }