Пример #1
0
        public override void CloneFrom(CardLocation source)
        {
            base.CloneFrom(source);

            if (!source.IsBattlefield())
            {
                return;
            }
            var cardFieldLocation = source as CardFieldLocation;

            if (cardFieldLocation == null)
            {
                return;
            }
            var cell = cardFieldLocation.GetCell();

            ToCell(Card.GetChief().GetEngine().Field.GetCell(cell.X, cell.Y));
        }
Пример #2
0
 public virtual void CreateLocation()
 {
     _location = new CardLocation(this);
 }
Пример #3
0
 public virtual void CloneFrom(CardLocation source)
 {
     Location = source.GetValue();
 }