PretendYoureXyzzy/WebContent/js/cah.constants.js

132 lines
4.9 KiB
JavaScript
Raw Normal View History

// This file is automatically generated. Do not edit.
cah.$ = {};
cah.$.AjaxOperation = function() {
// pass
};
cah.$.AjaxOperation.prototype.dummy = undefined;
cah.$.AjaxOperation.FIRST_LOAD = "firstload";
cah.$.AjaxOperation.LOG_OUT = "logout";
cah.$.AjaxOperation.GAME_LIST = "games";
cah.$.AjaxOperation.JOIN_GAME = "join_game";
cah.$.AjaxOperation.REGISTER = "register";
cah.$.AjaxOperation.CREATE_GAME = "create_game";
cah.$.AjaxOperation.CHAT = "chat";
cah.$.AjaxOperation.NAMES = "names";
cah.$.AjaxRequest = function() {
// pass
};
cah.$.AjaxRequest.prototype.dummy = undefined;
cah.$.AjaxRequest.MESSAGE = "message";
cah.$.AjaxRequest.GAME_ID = "game_id";
cah.$.AjaxRequest.SERIAL = "serial";
cah.$.AjaxRequest.OP = "op";
cah.$.AjaxRequest.NICKNAME = "nickname";
cah.$.AjaxResponse = function() {
// pass
};
cah.$.AjaxResponse.prototype.dummy = undefined;
cah.$.AjaxResponse.NEXT = "next";
cah.$.AjaxResponse.GAME_ID = "game_id";
cah.$.AjaxResponse.ERROR = "error";
cah.$.AjaxResponse.ERROR_CODE = "error_code";
cah.$.AjaxResponse.SERIAL = "serial";
cah.$.AjaxResponse.MAX_GAMES = "max_games";
cah.$.AjaxResponse.IN_PROGRESS = "in_progress";
cah.$.AjaxResponse.GAMES = "games";
cah.$.AjaxResponse.NICKNAME = "nickname";
cah.$.AjaxResponse.NAMES = "names";
cah.$.DisconnectReason = function() {
// pass
};
cah.$.DisconnectReason.prototype.dummy = undefined;
cah.$.DisconnectReason.PING_TIMEOUT = "ping_timeout";
cah.$.DisconnectReason.KICKED = "kicked";
cah.$.DisconnectReason.MANUAL = "manual";
cah.$.ErrorCode = function() {
// pass
};
cah.$.ErrorCode.prototype.dummy = undefined;
cah.$.ErrorCode.TOO_MANY_GAMES = "too_many_games";
cah.$.ErrorCode.INVALID_NICK = "invalid_nick";
cah.$.ErrorCode.BAD_REQUEST = "bad_req";
cah.$.ErrorCode.CANNOT_JOIN_ANOTHER_GAME = "cannot_join_another_game";
cah.$.ErrorCode.NO_GAME_SPECIFIED = "no_game_spec";
cah.$.ErrorCode.SESSION_EXPIRED = "session_expired";
cah.$.ErrorCode.MESSAGE_TOO_LONG = "msg_too_long";
cah.$.ErrorCode.BAD_OP = "bad_op";
cah.$.ErrorCode.NO_SESSION = "no_session";
cah.$.ErrorCode.NOT_REGISTERED = "not_registered";
cah.$.ErrorCode.INVALID_GAME = "invalid_game";
cah.$.ErrorCode.OP_NOT_SPECIFIED = "op_not_spec";
cah.$.ErrorCode.NO_MSG_SPECIFIED = "no_msg_spec";
cah.$.ErrorCode.NICK_IN_USE = "nick_in_use";
cah.$.ErrorCode.GAME_FULL = "game_full";
cah.$.ErrorCode.NO_NICK_SPECIFIED = "no_nick_spec";
cah.$.ErrorCode_msg = {};
cah.$.ErrorCode_msg['bad_op'] = "Invalid operation.";
cah.$.ErrorCode_msg['not_registered'] = "Not registered. Refresh the page.";
cah.$.ErrorCode_msg['msg_too_long'] = "Messages cannot be longer than 200 characters.";
cah.$.ErrorCode_msg['session_expired'] = "Your session has expired. Refresh the page.";
cah.$.ErrorCode_msg['invalid_game'] = "Invalid game specified.";
cah.$.ErrorCode_msg['no_game_spec'] = "No game specified.";
cah.$.ErrorCode_msg['game_full'] = "That game is full. Join another.";
cah.$.ErrorCode_msg['invalid_nick'] = "Nickname must contain only upper and lower case letters, numbers, or underscores, must be 3 to 30 characters long, and must not start with a number.";
cah.$.ErrorCode_msg['too_many_games'] = "There are too many games already in progress. Either join an existing game, or wait for one to become available.";
cah.$.ErrorCode_msg['no_nick_spec'] = "No nickname specified.";
cah.$.ErrorCode_msg['no_session'] = "Session not detected. Make sure you have cookies enabled.";
cah.$.ErrorCode_msg['nick_in_use'] = "Nickname is already in use.";
cah.$.ErrorCode_msg['bad_req'] = "Bad request.";
cah.$.ErrorCode_msg['cannot_join_another_game'] = "You cannot join another game.";
cah.$.ErrorCode_msg['op_not_spec'] = "Operation not specified.";
cah.$.ErrorCode_msg['no_msg_spec'] = "No message specified.";
cah.$.GameInfo = function() {
// pass
};
cah.$.GameInfo.prototype.dummy = undefined;
cah.$.GameInfo.HOST = "host";
cah.$.GameInfo.STATE = "state";
cah.$.GameInfo.PLAYERS = "players";
cah.$.GameInfo.ID = "id";
cah.$.GameState = function() {
// pass
};
cah.$.GameState.prototype.dummy = undefined;
cah.$.GameState.LOBBY = "lobby";
cah.$.GameState.DEALING = "dealing";
2012-01-18 04:37:09 +00:00
cah.$.GameState_msg = {};
cah.$.GameState_msg['lobby'] = "Joinable (Not Started)";
cah.$.GameState_msg['dealing'] = "Dealing";
cah.$.LongPollEvent = function() {
// pass
};
cah.$.LongPollEvent.prototype.dummy = undefined;
cah.$.LongPollEvent.NOOP = "noop";
cah.$.LongPollEvent.GAME_REFRESH = "game_refresh";
cah.$.LongPollEvent.NEW_PLAYER = "new_player";
cah.$.LongPollEvent.PLAYER_LEAVE = "player_leave";
cah.$.LongPollEvent.CHAT = "chat";
cah.$.LongPollResponse = function() {
// pass
};
cah.$.LongPollResponse.prototype.dummy = undefined;
cah.$.LongPollResponse.MESSAGE = "message";
cah.$.LongPollResponse.REASON = "reason";
cah.$.LongPollResponse.GAME_ID = "game_id";
cah.$.LongPollResponse.FROM = "from";
cah.$.LongPollResponse.EVENT = "event";
cah.$.LongPollResponse.ERROR = "error";
cah.$.LongPollResponse.ERROR_CODE = "error_code";
cah.$.LongPollResponse.TIMESTAMP = "timestamp";
cah.$.LongPollResponse.NICKNAME = "nickname";