public BetTreeNodeService(PlayerModel[] players) { _players = players; InitialiseNodeDisplays(); InitialiseNodeStyles(); LoadPartials(); }
/// <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); }
/// <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); }
/// <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); }
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; }
public PlayerModel Clone() { PlayerModel ret = new PlayerModel(); PlayerModel.Copy(this, ret); return ret; }
public void SeatPlayer(PlayerModel player) { Player = player; }
public void SeatPlayer(int seat, PlayerModel player) { player.Index = seat; Seats[seat].SeatPlayer(player); }