コード例 #1
0
        private Decorator SetDecoratoresNoLimitWithSpectatores()
        {
            Decorator mid    = new MiddleGameDecorator(GameMode.NoLimit, 10, 5);
            Decorator before = new BeforeGameDecorator(10, 1000, true, 2, 4, 20, LeagueName.A);

            before.SetNextDecorator(mid);
            return(before);
        }
コード例 #2
0
ファイル: GameRoomTests.cs プロジェクト: shoferb/OYAOB
        private void SetDecoratoresPotLimitWithSpectatores()
        {
            Decorator mid    = new MiddleGameDecorator(GameMode.PotLimit, 10, 5);
            Decorator before = new BeforeGameDecorator(10, 1000, true, 2, 4, 20, LeagueName.A);

            before.SetNextDecorator(mid);
            gameRoom.SetDecorator(before);
        }
コード例 #3
0
ファイル: GameCenter.cs プロジェクト: shoferb/OYAOB
        public Decorator CreateDecorator(int minBet, int startingChip, bool canSpectate, int minPlayersInRoom, int maxPlayersInRoom, int enterPayingMoney, GameMode gameModeChosen, LeagueName league)
        {
            Decorator mid    = new MiddleGameDecorator(gameModeChosen, minBet, minBet / 2);
            Decorator before = new BeforeGameDecorator(minBet, startingChip, canSpectate, minPlayersInRoom, maxPlayersInRoom, enterPayingMoney, league);

            before.SetNextDecorator(mid);
            return(before);
        }
コード例 #4
0
ファイル: GameRoomTests.cs プロジェクト: shoferb/OYAOB
        private void SetDecoratoresLimitNoSpectatores()
        {
            Decorator mid    = new MiddleGameDecorator(GameMode.Limit, 20, 10);
            Decorator before = new BeforeGameDecorator(20, 1500, false, 2, 5, 25, LeagueName.B);

            before.SetNextDecorator(mid);
            gameRoom.SetDecorator(before);
        }
コード例 #5
0
        private Decorator SetDecoratoresNoLimitWithSpectatores()
        {
            Decorator mid    = new MiddleGameDecorator(TexasHoldemShared.CommMessages.GameMode.NoLimit, 10, 5);
            Decorator before = new BeforeGameDecorator(10, 1000, true, 2, 4, 20, TexasHoldem.Logic.GameControl.LeagueName.A);

            before.SetNextDecorator(mid);
            return(before);
        }