public void StoryDeckCheck() { QuestMatch game = ScenarioCreator.GameNoDeal(3); StoryDeck deck = new StoryDeck(game); Assert.IsTrue(deck.Peek(deck) == "King's Call To Arms"); for (int i = 0; i < 27; i++) { deck.Draw(); if (i == 1) { Assert.IsTrue(deck.Peek(deck) == "Chivalrous Deed"); } if (i == 10) { Assert.IsTrue(deck.Peek(deck) == "Tournament At York"); } if (i == 20) { Assert.IsTrue(deck.Peek(deck) == "Vanquish King Arthur's Enemies"); } } Assert.IsTrue(deck.Peek(deck) == "Search For The Holy Grail"); }
public void PickupStoryCards(int player) { if (StoryCard != null) { Destroy(StoryCard); } StoryCard = storyDeck.Draw(); StoryCard.transform.SetParent(GameObject.Find("MainUI").transform); StoryCard.transform.GetComponent <RectTransform> ().anchoredPosition = new Vector2(0.0f, 0.0f); // logger.info ("GameManager.cs :: StoryCards :: Player " + player + " Picks up: " + StoryCard); }