Ejemplo n.º 1
0
        public void GiveExhibition(IExhibitionCard exhibition)
        {
            int cardIndex = Array.IndexOf(Exhibitions, exhibition);

            if (cardIndex < 0)
            {
                throw new InvalidOperationException("Exhibition is not active.");
            }

            Exhibitions[cardIndex] = null;
        }
Ejemplo n.º 2
0
        public void DisplayExhibition(IExhibitionCard exhibition)
        {
            if (Exhibitions[Exhibitions.Length - 1] != null)
            {
                DiscardCard(Exhibitions[Exhibitions.Length - 1]);
            }

            for (int i = Exhibitions.Length - 1; i > 0; i--)
            {
                Exhibitions[i] = Exhibitions[i - 1];
            }
            Exhibitions[0] = exhibition;
        }
Ejemplo n.º 3
0
 public ExhibitionCardView(IExhibitionCard card)
 {
     this._Card       = card;
     this.Description = $"You can execute an exhibition if you have the artifacts required. You'll get {_Card.Points} points for it";
 }
Ejemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="exhibition">Exhibition to execute</param>
 public ExecuteExhibitionAction(IExhibitionCard exhibition)
 {
     this.exhibition = exhibition;
 }