public IntAction(DefaultStorage <int> storage, string bKey, int v, Transcript script) { bins = storage; key = bKey; value = v; this.script = script; }
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; }
public CardRememberAction(CardLocReference start, CardLocReference end, Transcript script) { startLocation = start; endLocation = end; this.script = script; if (endLocation.cardList.type != CCType.MEMORY) { throw new InvalidOperationException(); } }
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; }
public SetPlayerAction(int idx, CardGame cg, Transcript script) { this.idx = idx; this.cg = cg; this.script = script; }
public TeamCreateAction(RecycleParser.TeamcreateContext teamcreate, CardGame cg, Transcript script) { this.teamcreate = teamcreate; this.cg = cg; this.script = script; }
public ShuffleAction(CardLocReference locations, Transcript script) { this.locations = locations; unshuffled = new CardCollection(CCType.VIRTUAL); this.script = script; }