Exemple #1
0
 public BetTreeNodeService(PlayerModel[] players)
 {
     _players = players;
     InitialiseNodeDisplays();
     InitialiseNodeStyles();
     LoadPartials();
 }
Exemple #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="table">The table upon which the players for this scenario are seated</param>
 /// <param name="round">The current round of betting</param>
 /// <param name="policy">Policy information dictating what the player can and can't do</param>
 public DefaultNodeDataModel(PlayerModel player, HoldemHandRound round, BetTypeModel betType)
     : base(betType)
 {
     Player = player;
     Round = round;
     Icon = Utilities.LoadBitmap(Properties.Resources.DefaultNodeIcon);
     InfoDisplayType = typeof(BetTreeNodeInfo);
 }
Exemple #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="table">The table upon which the players for this scenario are seated</param>
 /// <param name="round">The current round of betting</param>
 /// <param name="policy">Policy information dictating what the player can and can't do</param>
 public RandomBetModel(PlayerModel player, HoldemHandRound round, BetTypeModel betType)
     : base(betType)
 {
     Player = player;
     Round = round;
     Random = 100;
     Icon = Utilities.LoadBitmap(Properties.Resources.RandomBetIcon);
     InfoDisplayType = typeof(BetTreeNodeInfo);
 }
Exemple #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="table">The table upon which the players for this scenario are seated</param>
 /// <param name="round">The current round of betting</param>
 /// <param name="policy">Policy information dictating what the player can and can't do</param>
 public PreflopBetModel(PlayerModel player, HoldemHandRound round, BetTypeModel betType)
     : base(betType)
 {
     Player = player;
     Round = round;
     Icon = Utilities.LoadBitmap(Properties.Resources.PreflopBetIcon);
     Range = new HandRangeModel();
     InfoDisplayType = typeof(BetTreeNodeInfo);
 }
Exemple #5
0
 protected static void Copy(PlayerModel from, PlayerModel to)
 {
     to.Name = from.Name;
     to.Index = from.Index;
     to.Seat = from.Seat;
     to.Active = from.Active;
     to.HandRange = from.HandRange;
     to.Status = from.Status;
     to.Stack = from.Stack;
     to.Bet = from.Bet;
 }
Exemple #6
0
 public PlayerModel Clone()
 {
     PlayerModel ret = new PlayerModel();
     PlayerModel.Copy(this, ret);
     return ret;
 }
Exemple #7
0
 public void SeatPlayer(PlayerModel player)
 {
     Player = player;
 }
Exemple #8
0
 public void SeatPlayer(int seat, PlayerModel player)
 {
     player.Index = seat;
     Seats[seat].SeatPlayer(player);
 }