Package bluffinmuffin.protocol.commands.lobby

Examples of bluffinmuffin.protocol.commands.lobby.ListTableCommand


    }
   
    public List<TupleTableInfoCareer> getListTablesCareer()
    {
        // Ask the server for all available tables.
        send(new ListTableCommand(false));
       
        final StringTokenizer token = receiveCommand(ListTableCareerResponse.COMMAND_NAME);
        final ListTableCareerResponse response = new ListTableCareerResponse(token);
        return response.getTables();
    }
View Full Code Here


    }
   
    public List<TupleTableInfoTraining> getListTablesTraining()
    {
        // Ask the server for all available tables.
        send(new ListTableCommand(true));
       
        final StringTokenizer token = receiveCommand(ListTableTrainingResponse.COMMAND_NAME);
        final ListTableTrainingResponse response = new ListTableTrainingResponse(token);
        return response.getTables();
    }
View Full Code Here

    public static String COMMAND_NAME = "lobbyCAREER_LIST_TABLES_RESPONSE";
    private final List<TupleTableInfoCareer> m_tables;
   
    public ListTableCareerResponse(StringTokenizer argsToken)
    {
        super(new ListTableCommand(argsToken));
        m_tables = new ArrayList<TupleTableInfoCareer>();
        final int count = Integer.parseInt(argsToken.nextToken());
        for (int i = 0; i < count; ++i)
        {
            m_tables.add(new TupleTableInfoCareer(argsToken));
View Full Code Here

        {
            disconnect(new DisconnectCommand(token));
        }
        else if (commandName.equals(ListTableCommand.COMMAND_NAME))
        {
            listTables(new ListTableCommand(token));
        }
        else if (commandName.equals(JoinTableCommand.COMMAND_NAME))
        {
            joinTables(new JoinTableCommand(token));
        }
View Full Code Here

    public static String COMMAND_NAME = "lobbyTRAINING_LIST_TABLES_RESPONSE";
    private final List<TupleTableInfoTraining> m_tables;
   
    public ListTableTrainingResponse(StringTokenizer argsToken)
    {
        super(new ListTableCommand(argsToken));
        m_tables = new ArrayList<TupleTableInfoTraining>();
        final int count = Integer.parseInt(argsToken.nextToken());
        for (int i = 0; i < count; ++i)
        {
            m_tables.add(new TupleTableInfoTraining(argsToken));
View Full Code Here

TOP

Related Classes of bluffinmuffin.protocol.commands.lobby.ListTableCommand

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.