Пример #1
0
 protected Card(CardCost cost)
 {
     Id = Guid.NewGuid();
     Cost = cost;
     _currentZone = new NullZone();
     _zoneChanger = zone => _currentZone = zone;            
 }
Пример #2
0
 protected Card(CardCost cost)
 {
     Id           = Guid.NewGuid();
     Cost         = cost;
     _currentZone = new NullZone();
     _zoneChanger = zone => _currentZone = zone;
 }
Пример #3
0
 protected Card(CardCategory category, int cost, int pointValue)
 {
     _currentZone = new NullZone();
     _zoneChanger = zone => _currentZone = zone;
     Category = category;
     Cost = cost;
     PointValue = pointValue;
 }
Пример #4
0
 public virtual void MoveCard(Card card, CardZone targetZone, CardZoneChanger changer)
 {
     RemoveCard(card);
     targetZone.AddCard(card);
     changer(targetZone);
 }
Пример #5
0
 public virtual void MoveCard(Card card, CardZone targetZone, CardZoneChanger changer)
 {
     RemoveCard(card);
     targetZone.AddCard(card);
     changer(targetZone);
 }