public void GiveExhibition(IExhibitionCard exhibition) { int cardIndex = Array.IndexOf(Exhibitions, exhibition); if (cardIndex < 0) { throw new InvalidOperationException("Exhibition is not active."); } Exhibitions[cardIndex] = null; }
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; }
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"; }
/// <summary> /// /// </summary> /// <param name="exhibition">Exhibition to execute</param> public ExecuteExhibitionAction(IExhibitionCard exhibition) { this.exhibition = exhibition; }