private void Init() { Player player1 = new Player("string", 1, 1, 1, 1, 1, null, null); Player player2 = new Player("string", 1, 1, 1, 1, 1, null, null); String p1Name = player1.GetName(); String p2Name = player2.GetName(); int p1Hp = player1.GetHp(); int p2Hp = player2.GetHp(); Deck p1Deck = new Deck(player1.GetCardsUsed()); Deck p2Deck = new Deck(player2.GetCardsUsed()); p1Deck.Init(); p2Deck.Init(); AttractCards[] p1HandCards = new AttractCards[5]; AttractCards[] p2HandCards = new AttractCards[5]; for (int i = 0; i < 5; i++) { p1HandCards[i] = p1Deck.GetFirstCard(); p2HandCards[i] = p2Deck.GetFirstCard(); } }
public AttractCards GetFirstCard() { AttractCards a = this.aCards[30 - numLeft]; numLeft = numLeft - 1; return(a); }