예제 #1
0
 public BetTreeNodeService(PlayerModel[] players)
 {
     _players = players;
     InitialiseNodeDisplays();
     InitialiseNodeStyles();
     LoadPartials();
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #5
0
파일: PlayerModel.cs 프로젝트: ddksaku/rzr
 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;
 }
예제 #6
0
파일: PlayerModel.cs 프로젝트: ddksaku/rzr
 public PlayerModel Clone()
 {
     PlayerModel ret = new PlayerModel();
     PlayerModel.Copy(this, ret);
     return ret;
 }
예제 #7
0
파일: SeatModel.cs 프로젝트: ddksaku/rzr
 public void SeatPlayer(PlayerModel player)
 {
     Player = player;
 }
예제 #8
0
파일: TableModel.cs 프로젝트: ddksaku/rzr
 public void SeatPlayer(int seat, PlayerModel player)
 {
     player.Index = seat;
     Seats[seat].SeatPlayer(player);
 }