Esempio n. 1
0
        public static PlayerAction FromXml(XmlElement e, IdIssuer <Card> cl, IdIssuer <Lane> lanes)
        {
            object[]     args = new object[] { e, cl, lanes };
            PlayerAction pa   = SendableFactory <PlayerAction> .FromXml(e, args);

            return(pa);
        }
Esempio n. 2
0
 // constructor used by PlayerAction.FromXml
 public PlayUnitCardAction(XmlElement e, IdIssuer <Card> cl, IdIssuer <Lane> lanes)
 {
     this.cardTarget = new SendableTarget <Card>("card", e, cl);
     this.laneTarget = new SendableTarget <Lane>("lane", e, lanes);
     this.pos        = GetXmlInt(e, "pos");
     this.sideIndex  = GetXmlInt(e, "sideIndex");
 }
Esempio n. 3
0
 public SendableTarget(string name, XmlElement from, IdIssuer <T> issuer)
 {
     this.name = name;
     if (from.Attributes[name] != null && from.Attributes[name].Value != "")
     {
         this.target = issuer.GetByID(from.Attributes[name].Value);
     }
 }
Esempio n. 4
0
 public TargetedDelta(XmlElement from, IdIssuer <T> issuer, CardLoader loader)
     : base(from, loader)
 {
     _target = new SendableTarget <T>("targetId", from, issuer);
 }