Holy crap Batman! It's the beginnings of refactoring the basic puzzle
stuff into Narya. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2876 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
//
|
||||
// $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;
|
||||
}
|
||||
Reference in New Issue
Block a user