public LogPlayer(double init, Hand hand) { initStack = init; stack = init; this.hand = hand; initTime = new DateTime(); actionList = new List<KeyValuePair<DateTime, string>>(); actionList.Add(new KeyValuePair<DateTime, string>(new DateTime(), "cards dealt")); }
public void setHand(Hand hand) { this.hand = hand; }
/// <summary> /// Initalisierung der Variablen /// </summary> public void init() { //Deck initalisieren deck = new Deck(); //Die 6 möglichen Hände initalisieren hand1 = new Hand(); hand2 = new Hand(); hand3 = new Hand(); hand4 = new Hand(); hand5 = new Hand(); hand6 = new Hand(); //Spieler initalisieren player1 = new Player("", 10000, false, 1); player2 = new Player("", 10000, false, 2); player3 = new Player("", 10000, false, 3); player4 = new Player("", 10000, false, 1); player5 = new Player("", 10000, false, 2); player6 = new Player("", 10000, false, 4); player1.PlayerID = 0; player2.PlayerID = 1; player3.PlayerID = 2; player4.PlayerID = 3; player5.PlayerID = 4; player6.PlayerID = 5; player1.setTagID(1); player2.setTagID(2); player3.setTagID(3); activePlayers = new List<Player>(); //Aktive Spieler am Tisch activeHands = new List<Hand>(); //Händer der Aktiven Spieler am Tisch activeRoundPlayers = new List<Player>(); //Aktive Spieler einer Runde chipsOnTable = new List<Canvas>(); //Alle Chips die sich auf dem Tisch befinden table = new Table(); //Tisch init blind = new Blind(); //Blind init }