예제 #1
0
 /// <summary>Initialize a new Goal</summary>
 /// <param name="condition">Default Trigger.Condition</param>
 /// <remarks>If <paramref name="condition"/> is set to <b>10</b> ("never (FALSE)"), <see cref="T1AndOrT2"/> is set to <b>true</b> ("OR")</remarks>
 public Goal(byte condition)
 {
     for (int i = 0; i < 2; i++)
     {
         Triggers[i] = new Mission.Trigger
         {
             Condition = condition
         };
     }
     T1AndOrT2 = (condition == 10);
 }
예제 #2
0
 /// <summary>Initializes a blank Goal</summary>
 /// <remarks>All <see cref="Triggers"/> set to <b>"never (FALSE)"</b>, <see cref="AndOr"/> values set to <b>true</b> (OR)</remarks>
 public Goal()
 {
     for (int i = 0; i < 12; i++)
     {
         _strings[i / 3, i % 3] = "";
     }
     for (int i = 0; i < 4; i++)
     {
         Triggers[i] = new Mission.Trigger()
         {
             Condition = 10
         }
     }
     ;
     for (int i = 0; i < 3; i++)
     {
         AndOr[i] = true;
     }
     GoalStrings = new StringsIndexer(this);
 }