Package bluffinmuffin.poker

Examples of bluffinmuffin.poker.PokerGame


           
            @Override
            public void joinTableCommandReceived(JoinTableCommand command)
            {
                GameTCPServer client = null;
                final PokerGame game = m_lobby.getGame(command.getTableID());
                if (game.getClass().equals(PokerGameTraining.class))
                {
                    final PokerGameTraining tgame = (PokerGameTraining) game;
                    client = new GameTCPServer(game, m_playerName, tgame.getTrainingTable().getStartingMoney());
                }
                else
                {
                    client = new GameTCPServer(game, DataManager.Persistance.get(command.getPlayerName()));
                }
                final TableInfo table = game.getTable();
                if (!game.isRunning())
                {
                    sendMessage(command.encodeErrorResponse());
                    return;
                }
               
View Full Code Here


        final ArrayList<TupleTableInfoCareer> tables = new ArrayList<TupleTableInfoCareer>();
        final ArrayList<Integer> tablesToRemove = new ArrayList<Integer>();
       
        for (final Integer noPort : m_games.keySet())
        {
            final PokerGame game = m_games.get(noPort);
           
            // Check if the table is still running.
            if (game.isRunning())
            {
                final TableInfo table = game.getTable();
                if (table.getClass().equals(TableInfoCareer.class))
                {
                    tables.add(new TupleTableInfoCareer(noPort, table.getName(), table.getBigBlindAmnt(), table.getPlayers().size(), table.getNbMaxSeats(), table.getBetLimit(), PossibleActionType.None));
                }
            }
View Full Code Here

        final ArrayList<TupleTableInfoTraining> tables = new ArrayList<TupleTableInfoTraining>();
        final ArrayList<Integer> tablesToRemove = new ArrayList<Integer>();
       
        for (final Integer noPort : m_games.keySet())
        {
            final PokerGame game = m_games.get(noPort);
           
            // Check if the table is still running.
            if (game.isRunning())
            {
                final TableInfo table = game.getTable();
                if (table.getClass().equals(TableInfoTraining.class))
                {
                    tables.add(new TupleTableInfoTraining(noPort, table.getName(), table.getBigBlindAmnt(), table.getPlayers().size(), table.getNbMaxSeats(), table.getBetLimit(), PossibleActionType.None));
                }
            }
View Full Code Here

TOP

Related Classes of bluffinmuffin.poker.PokerGame

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.