//
// $Id: PuzzleCodes.java,v 1.1 2003/11/26 01:42:34 mdb Exp $

package com.threerings.puzzle.data;

import com.threerings.presents.data.InvocationCodes;
import com.threerings.util.MessageBundle;

/**
 * Constants relating to the puzzle services.
 */
public interface PuzzleCodes extends InvocationCodes
{
    /** The message bundle identifier for general puzzle messages. */
    public static final String PUZZLE_MESSAGE_BUNDLE = "puzzle.general";

    /** The ID for puzzle chat. */
    public static final String PUZZLE_CHAT_TYPE = "puzzleChat";

    /** The default puzzle difficulty level. */
    public static final int DEFAULT_DIFFICULTY = 2;

    /** The name of the message event to a placeObject that a player
     * was knocked out of a puzzle. */
    public static final String PLAYER_KNOCKED_OUT = "playerKnocked";

    /** The name of the message event to a placeObject that reports
     * the winners and losers of a game. */
    public static final String WINNERS_AND_LOSERS = "winnersAndLosers";

    /** Enable this flag to have the client send a copy of its board state
     * with every event to the server for checking. */
    public static final boolean SYNC_BOARD_STATE = false;

    /** An error code indicating that a place identified by a particular
     * place id does not exist. Usually generated by a failed enterPuzzle
     * request. */
    public static final String NO_SUCH_PUZZLE = MessageBundle.qualify(
        PUZZLE_MESSAGE_BUNDLE, "m.no_such_puzzle");

    /** An error code sent when a user requests to enter a new puzzle but
     * they are in the middle of moving somewhere already. */
    public static final String ENTER_IN_PROGRESS = "m.enter_in_progress";

    /** An error code sent when a user requests to enter a puzzle, but
     * they are already in it. */
    public static final String ALREADY_IN_PUZZLE = "m.already_in_puzzle";

    /** Whether to enable debug logging and assertions for puzzles. Note
     * that enabling this may result in the server or client exiting
     * unexpectedly if certain error conditions arise in order to
     * facilitate debugging, and so this should never be enabled in any
     * environment even remotely resembling production. */
    public static final boolean DEBUG_PUZZLE = false;
}

@@ -29,33 +29,33 @@
 v 1.
-1
+2
  200
-3/11/26 01:42:34 mdb
+4/07/17 00:24:31 ray
  Exp
@@ -1673,16 +1673,70 @@
 OGRESS =
+ MessageBundle.qualify(%0A        PUZZLE_MESSAGE_BUNDLE,
  %22m.ente
@@ -1749,16 +1749,17 @@
 rogress%22
+)
 ;%0A%0A    /
@@ -1908,16 +1908,70 @@
 PUZZLE =
+ MessageBundle.qualify(%0A        PUZZLE_MESSAGE_BUNDLE,
  %22m.alre
@@ -1984,16 +1984,17 @@
 _puzzle%22
+)
 ;%0A%0A    /

Qualify them error messages.