private DeltaMode Mode; // WHETHER TO ADD OR REMOVE THE CARD IN QUESITON

        public CardListDelta(T list, Card c, int i, DeltaMode m)
            : base(list)
        {
            SendableCard = new SendableTarget <Card>("card", c); // TODO: shouldn't have to know what to name this...
            Index        = i;
            Mode         = m;
        }
Beispiel #2
0
 public SwapPositionDelta(XmlElement from, CardLoader loader)
     : base(from, loader)
 {
     SendableLane1   = new SendableTarget <Lane>("lane1", from, Lane.IdIssuer);
     this.SideIndex1 = Int32.Parse(from.Attributes["sideIndex1"].Value);
     this.Position1  = Int32.Parse(from.Attributes["position1"].Value);
     SendableLane2   = new SendableTarget <Lane>("lane2", from, Lane.IdIssuer);
     this.SideIndex2 = Int32.Parse(from.Attributes["sideIndex2"].Value);
     this.Position2  = Int32.Parse(from.Attributes["position2"].Value);
 }
Beispiel #3
0
 public SwapPositionDelta(Lane l1, int side1, int pos1, Lane l2, int side2, int pos2)
     : base()
 {
     SendableLane1 = new SendableTarget <Lane>("lane1", l1);
     SideIndex1    = side1;
     Position1     = pos1;
     SendableLane2 = new SendableTarget <Lane>("lane2", l2);
     SideIndex2    = side2;
     Position2     = pos2;
 }
Beispiel #4
0
 public ResourcePoolDelta(XmlElement e, CardLoader cl)
     : base(e, cl)
 {
     this.rp     = new SendableTarget <ResourcePool>("poolId", e, ResourcePool.IdIssuer);
     this.amount = Int32.Parse(e.Attributes["amount"].Value);
 }
Beispiel #5
0
 public ResourcePoolDelta(int amount, ResourcePool rp)
 {
     this.amount = amount;
     this.rp     = new SendableTarget <ResourcePool>("poolId", rp);
 }
Beispiel #6
0
 public UnitDelta(XmlElement from, CardLoader cl)
     : base(from, cl)
 {
     sendableTarget = new SendableTarget <Unit>("target", from, Unit.IdIssuer);
     sendableSource = new SendableTarget <Unit>("source", from, Unit.IdIssuer);
 }
Beispiel #7
0
 public UnitDelta(Unit t, Unit s)
 {
     sendableTarget = new SendableTarget <Unit>("target", t);
     sendableSource = new SendableTarget <Unit>("source", s);
 }