All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.threerings.parlor.data.ParlorCodes Maven / Gradle / Ivy

The newest version!
//
// $Id$
//
// Vilya library - tools for developing networked games
// Copyright (C) 2002-2012 Three Rings Design, Inc., All Rights Reserved
// http://code.google.com/p/vilya/
//
// This library is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; either version 2.1 of the License, or
// (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

package com.threerings.parlor.data;

import com.threerings.presents.data.InvocationCodes;

/**
 * Contains codes used by the parlor invocation services.
 */
public interface ParlorCodes extends InvocationCodes
{
    /** Defines our invocation services group. */
    public static final String PARLOR_GROUP = "parlor";

    /** The response code for an accepted invitation. */
    public static final int INVITATION_ACCEPTED = 0;

    /** The response code for a refused invitation. */
    public static final int INVITATION_REFUSED = 1;

    /** The response code for a countered invitation. */
    public static final int INVITATION_COUNTERED = 2;

    /** An error code explaining that an invitation was rejected because the invited user was not
     * online at the time the invitation was received. */
    public static final String INVITEE_NOT_ONLINE = "m.invitee_not_online";

    /** An error code returned by the table services. */
    public static final String NO_SUCH_TABLE = "m.no_such_table";

    /** An error code returned by the table services. */
    public static final String INVALID_TABLE_POSITION = "m.invalid_table_position";

    /** An error code returned by the table services. */
    public static final String MUST_BE_CREATOR = "m.must_be_creator";

    /** An error code returned by the table services. */
    public static final String NO_SELF_BOOT = "m.no_self_boot";

    /** An error code returned by the table services. */
    public static final String TABLE_POSITION_OCCUPIED = "m.table_position_occupied";

    /** An error code returned by the table services when a user requests to create or join a table
     * but they're already sitting at another table. */
    public static final String ALREADY_AT_TABLE = "m.already_at_table";

    /** An error code returned by the table services when a user requests to leave a table that
     * they were not sitting at in the first place. */
    public static final String NOT_AT_TABLE = "m.not_at_table";

    /** An error code returned by the table services for a request to join a table that the
     * requester been banned from. */
    public static final String BANNED_FROM_TABLE = "m.banned_from_table";

    /** An error code returned by the table services when a user requests to leave a table for
     * which the game is already in progress. */
    public static final String GAME_ALREADY_STARTED = "m.game_already_started";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy