示例#1
0
 public IntAction(DefaultStorage <int> storage, string bKey, int v, Transcript script)
 {
     bins        = storage;
     key         = bKey;
     value       = v;
     this.script = script;
 }
示例#2
0
 public InitializeAction(CardCollection loc, Tree d, CardGame cg, Transcript script)
 {
     location    = loc;
     before      = new CardCollection(CCType.VIRTUAL);
     deck        = d;
     this.cg     = cg;
     this.script = script;
 }
示例#3
0
 public CardRememberAction(CardLocReference start, CardLocReference end, Transcript script)
 {
     startLocation = start;
     endLocation   = end;
     this.script   = script;
     if (endLocation.cardList.type != CCType.MEMORY)
     {
         throw new InvalidOperationException();
     }
 }
示例#4
0
 public CardMoveAction(CardLocReference start, CardLocReference end, Transcript script)
 {
     if (start.cardList.type == CCType.MEMORY && !start.actual)
     {
         Debug.WriteLine("start is mem loc: " + start.name + ", " + end.name);
         throw new NotSupportedException();
     }
     else if (end.cardList.type == CCType.VIRTUAL)
     {
         Debug.WriteLine("end is not physical");
         throw new NotSupportedException();
     }
     else if (end.cardList.type == CCType.MEMORY)
     {
         Debug.WriteLine("end is mem loc");
         throw new NotSupportedException();
     }
     startLocation = start;
     endLocation   = end;
     this.script   = script;
 }
示例#5
0
 public SetPlayerAction(int idx, CardGame cg, Transcript script)
 {
     this.idx    = idx;
     this.cg     = cg;
     this.script = script;
 }
示例#6
0
 public TeamCreateAction(RecycleParser.TeamcreateContext teamcreate, CardGame cg, Transcript script)
 {
     this.teamcreate = teamcreate;
     this.cg         = cg;
     this.script     = script;
 }
示例#7
0
 public ShuffleAction(CardLocReference locations, Transcript script)
 {
     this.locations = locations;
     unshuffled     = new CardCollection(CCType.VIRTUAL);
     this.script    = script;
 }