Beispiel #1
0
 public override ActionInstant Reverse()
 {
     ActionInstant[] aList = new ActionInstant[actions.Length];
     for (int i = 0; i < actions.Length; i++)
     {
         aList[actions.Length - 1 - i] = actions[i].Reverse();
     }
     return new ActionSequence(aList);
 }
Beispiel #2
0
 public override ActionInstant Clone()
 {
     ActionInstant[] aList = new ActionInstant[actions.Length];
     for (int i = 0; i < actions.Length; i++)
     {
         aList[i] = actions[i].Clone();
     }
     return new ActionRandom(aList);
 }
Beispiel #3
0
 public ActionSequence(ActionInstant[] actionsList)
     : base(0)
 {
     actions = actionsList;
 }
Beispiel #4
0
 public ActionSequence(ActionInstant action1, ActionInstant action2)
     : base(0)
 {
     actions = new ActionInstant[] { action1, action2 };
 }
Beispiel #5
0
 public ActionRandom(ActionInstant[] actionsList)
     : base(0)
 {
     actions = actionsList;
 }
Beispiel #6
0
 public ActionRandom(ActionInstant action1, ActionInstant action2)
     : base(0)
 {
     actions = new ActionInstant[] { action1, action2 };
 }