2012-01-13 04:05:39 +00:00
// This file is automatically generated. Do not edit.
cah . $ = { } ;
cah . $ . AjaxOperation = function ( ) {
2012-01-25 00:20:43 +00:00
// Dummy constructor to make Eclipse auto-complete.
2012-01-13 04:05:39 +00:00
} ;
2012-01-25 00:20:43 +00:00
cah . $ . AjaxOperation . prototype . dummyForAutocomplete = undefined ;
2012-01-13 04:05:39 +00:00
cah . $ . AjaxOperation . FIRST _LOAD = "firstload" ;
2012-01-27 02:07:39 +00:00
cah . $ . AjaxOperation . START _GAME = "start_game" ;
2012-01-13 04:05:39 +00:00
cah . $ . AjaxOperation . LOG _OUT = "logout" ;
2012-01-18 01:48:21 +00:00
cah . $ . AjaxOperation . GAME _LIST = "games" ;
2012-01-23 07:58:36 +00:00
cah . $ . AjaxOperation . GET _GAME _INFO = "get_game_info" ;
2012-01-27 02:07:39 +00:00
cah . $ . AjaxOperation . PLAY _CARD = "play_card" ;
2012-01-18 05:58:09 +00:00
cah . $ . AjaxOperation . CREATE _GAME = "create_game" ;
2012-01-27 02:07:39 +00:00
cah . $ . AjaxOperation . GET _CARDS = "get_cards" ;
cah . $ . AjaxOperation . JOIN _GAME = "join_game" ;
cah . $ . AjaxOperation . REGISTER = "register" ;
2012-01-13 04:05:39 +00:00
cah . $ . AjaxOperation . CHAT = "chat" ;
2012-01-23 21:20:15 +00:00
cah . $ . AjaxOperation . LEAVE _GAME = "leave_game" ;
2012-01-27 02:07:39 +00:00
cah . $ . AjaxOperation . NAMES = "names" ;
2012-01-13 04:05:39 +00:00
2012-01-13 05:36:31 +00:00
cah . $ . AjaxRequest = function ( ) {
2012-01-25 00:20:43 +00:00
// Dummy constructor to make Eclipse auto-complete.
2012-01-13 05:36:31 +00:00
} ;
2012-01-25 00:20:43 +00:00
cah . $ . AjaxRequest . prototype . dummyForAutocomplete = undefined ;
2012-01-17 00:28:21 +00:00
cah . $ . AjaxRequest . MESSAGE = "message" ;
2012-01-27 02:07:39 +00:00
cah . $ . AjaxRequest . CARD _ID = "card_id" ;
2012-01-19 00:42:18 +00:00
cah . $ . AjaxRequest . GAME _ID = "game_id" ;
2012-01-13 05:36:31 +00:00
cah . $ . AjaxRequest . SERIAL = "serial" ;
2012-01-17 00:28:21 +00:00
cah . $ . AjaxRequest . OP = "op" ;
cah . $ . AjaxRequest . NICKNAME = "nickname" ;
2012-01-13 05:36:31 +00:00
cah . $ . AjaxResponse = function ( ) {
2012-01-25 00:20:43 +00:00
// Dummy constructor to make Eclipse auto-complete.
2012-01-13 05:36:31 +00:00
} ;
2012-01-25 00:20:43 +00:00
cah . $ . AjaxResponse . prototype . dummyForAutocomplete = undefined ;
2012-01-27 03:25:40 +00:00
cah . $ . AjaxResponse . WHITE _CARDS = "white_cards" ;
2012-01-18 05:58:09 +00:00
cah . $ . AjaxResponse . GAME _ID = "game_id" ;
2012-01-24 07:02:59 +00:00
cah . $ . AjaxResponse . HAND = "hand" ;
cah . $ . AjaxResponse . PLAYER _INFO = "player_info" ;
2012-01-25 00:20:43 +00:00
cah . $ . AjaxResponse . BLACK _CARD = "black_card" ;
2012-01-24 07:02:59 +00:00
cah . $ . AjaxResponse . IN _PROGRESS = "in_progress" ;
cah . $ . AjaxResponse . GAMES = "games" ;
cah . $ . AjaxResponse . NICKNAME = "nickname" ;
2012-01-27 02:07:39 +00:00
cah . $ . AjaxResponse . CARD _ID = "card_id" ;
2012-01-24 07:02:59 +00:00
cah . $ . AjaxResponse . NEXT = "next" ;
2012-01-23 07:58:36 +00:00
cah . $ . AjaxResponse . GAME _INFO = "game_info" ;
2012-01-13 05:36:31 +00:00
cah . $ . AjaxResponse . ERROR = "error" ;
cah . $ . AjaxResponse . ERROR _CODE = "error_code" ;
cah . $ . AjaxResponse . SERIAL = "serial" ;
2012-01-18 01:48:21 +00:00
cah . $ . AjaxResponse . MAX _GAMES = "max_games" ;
2012-01-13 05:36:31 +00:00
cah . $ . AjaxResponse . NAMES = "names" ;
2012-01-25 00:20:43 +00:00
cah . $ . BlackCardData = function ( ) {
// Dummy constructor to make Eclipse auto-complete.
} ;
cah . $ . BlackCardData . prototype . dummyForAutocomplete = undefined ;
cah . $ . BlackCardData . TEXT = "text" ;
cah . $ . BlackCardData . PICK = "pick" ;
cah . $ . BlackCardData . ID = "id" ;
cah . $ . BlackCardData . DRAW = "draw" ;
2012-01-13 04:05:39 +00:00
cah . $ . DisconnectReason = function ( ) {
2012-01-25 00:20:43 +00:00
// Dummy constructor to make Eclipse auto-complete.
2012-01-13 04:05:39 +00:00
} ;
2012-01-25 00:20:43 +00:00
cah . $ . DisconnectReason . prototype . dummyForAutocomplete = undefined ;
2012-01-13 04:05:39 +00:00
cah . $ . DisconnectReason . PING _TIMEOUT = "ping_timeout" ;
cah . $ . DisconnectReason . KICKED = "kicked" ;
cah . $ . DisconnectReason . MANUAL = "manual" ;
2012-01-13 05:36:31 +00:00
cah . $ . ErrorCode = function ( ) {
2012-01-25 00:20:43 +00:00
// Dummy constructor to make Eclipse auto-complete.
2012-01-13 05:36:31 +00:00
} ;
2012-01-25 00:20:43 +00:00
cah . $ . ErrorCode . prototype . dummyForAutocomplete = undefined ;
2012-01-18 05:58:09 +00:00
cah . $ . ErrorCode . TOO _MANY _GAMES = "too_many_games" ;
2012-01-27 02:07:39 +00:00
cah . $ . ErrorCode . NO _CARD _SPECIFIED = "no_card_spec" ;
cah . $ . ErrorCode . NOT _YOUR _TURN = "not_your_turn" ;
2012-01-16 22:33:58 +00:00
cah . $ . ErrorCode . INVALID _NICK = "invalid_nick" ;
2012-01-23 23:06:20 +00:00
cah . $ . ErrorCode . NOT _GAME _HOST = "not_game_host" ;
2012-01-25 00:20:43 +00:00
cah . $ . ErrorCode . ALREADY _STARTED = "already_started" ;
2012-01-13 05:36:31 +00:00
cah . $ . ErrorCode . BAD _REQUEST = "bad_req" ;
2012-01-19 00:42:18 +00:00
cah . $ . ErrorCode . CANNOT _JOIN _ANOTHER _GAME = "cannot_join_another_game" ;
2012-01-27 02:07:39 +00:00
cah . $ . ErrorCode . INVALID _CARD = "invalid_card" ;
cah . $ . ErrorCode . DO _NOT _HAVE _CARD = "do_not_have_card" ;
2012-01-19 00:42:18 +00:00
cah . $ . ErrorCode . NO _GAME _SPECIFIED = "no_game_spec" ;
2012-01-18 05:58:09 +00:00
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" ;
2012-01-23 23:06:20 +00:00
cah . $ . ErrorCode . NOT _ENOUGH _PLAYERS = "not_enough_players" ;
2012-01-19 00:42:18 +00:00
cah . $ . ErrorCode . INVALID _GAME = "invalid_game" ;
2012-01-13 05:36:31 +00:00
cah . $ . ErrorCode . OP _NOT _SPECIFIED = "op_not_spec" ;
2012-01-27 02:07:39 +00:00
cah . $ . ErrorCode . NOT _IN _THAT _GAME = "not_in_that_game" ;
2012-01-16 22:33:58 +00:00
cah . $ . ErrorCode . NO _MSG _SPECIFIED = "no_msg_spec" ;
cah . $ . ErrorCode . NICK _IN _USE = "nick_in_use" ;
cah . $ . ErrorCode . NO _NICK _SPECIFIED = "no_nick_spec" ;
2012-01-27 02:07:39 +00:00
cah . $ . ErrorCode . GAME _FULL = "game_full" ;
2012-01-16 22:33:58 +00:00
cah . $ . ErrorCode _msg = { } ;
cah . $ . ErrorCode _msg [ 'bad_op' ] = "Invalid operation." ;
cah . $ . ErrorCode _msg [ 'not_registered' ] = "Not registered. Refresh the page." ;
2012-01-23 23:06:20 +00:00
cah . $ . ErrorCode _msg [ 'not_enough_players' ] = "There are not enough players to start the game." ;
2012-01-27 02:07:39 +00:00
cah . $ . ErrorCode _msg [ 'do_not_have_card' ] = "You don't have that card." ;
2012-01-25 00:20:43 +00:00
cah . $ . ErrorCode _msg [ 'msg_too_long' ] = "Messages cannot be longer than 200 characters." ;
2012-01-16 22:33:58 +00:00
cah . $ . ErrorCode _msg [ 'session_expired' ] = "Your session has expired. Refresh the page." ;
2012-01-19 00:42:18 +00:00
cah . $ . ErrorCode _msg [ 'invalid_game' ] = "Invalid game specified." ;
cah . $ . ErrorCode _msg [ 'no_game_spec' ] = "No game specified." ;
2012-01-27 02:07:39 +00:00
cah . $ . ErrorCode _msg [ 'no_card_spec' ] = "No card specified." ;
2012-01-19 00:42:18 +00:00
cah . $ . ErrorCode _msg [ 'game_full' ] = "That game is full. Join another." ;
2012-01-16 22:33:58 +00:00
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." ;
2012-01-19 00:42:18 +00:00
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." ;
2012-01-27 02:07:39 +00:00
cah . $ . ErrorCode _msg [ 'not_your_turn' ] = "It is not your turn to play a card." ;
2012-01-18 05:58:09 +00:00
cah . $ . ErrorCode _msg [ 'no_session' ] = "Session not detected. Make sure you have cookies enabled." ;
2012-01-27 02:07:39 +00:00
cah . $ . ErrorCode _msg [ 'no_nick_spec' ] = "No nickname specified." ;
2012-01-18 05:58:09 +00:00
cah . $ . ErrorCode _msg [ 'nick_in_use' ] = "Nickname is already in use." ;
2012-01-23 23:06:20 +00:00
cah . $ . ErrorCode _msg [ 'not_game_host' ] = "Only the game host can do that." ;
2012-01-18 05:58:09 +00:00
cah . $ . ErrorCode _msg [ 'bad_req' ] = "Bad request." ;
2012-01-19 00:42:18 +00:00
cah . $ . ErrorCode _msg [ 'cannot_join_another_game' ] = "You cannot join another game." ;
2012-01-27 02:07:39 +00:00
cah . $ . ErrorCode _msg [ 'invalid_card' ] = "Invalid card specified." ;
2012-01-18 05:58:09 +00:00
cah . $ . ErrorCode _msg [ 'op_not_spec' ] = "Operation not specified." ;
cah . $ . ErrorCode _msg [ 'no_msg_spec' ] = "No message specified." ;
2012-01-27 02:07:39 +00:00
cah . $ . ErrorCode _msg [ 'already_started' ] = "The game has already started." ;
cah . $ . ErrorCode _msg [ 'not_in_that_game' ] = "You are not in that game." ;
2012-01-13 05:36:31 +00:00
2012-01-18 01:48:21 +00:00
cah . $ . GameInfo = function ( ) {
2012-01-25 00:20:43 +00:00
// Dummy constructor to make Eclipse auto-complete.
2012-01-18 01:48:21 +00:00
} ;
2012-01-25 00:20:43 +00:00
cah . $ . GameInfo . prototype . dummyForAutocomplete = undefined ;
2012-01-18 01:48:21 +00:00
cah . $ . GameInfo . HOST = "host" ;
cah . $ . GameInfo . STATE = "state" ;
cah . $ . GameInfo . PLAYERS = "players" ;
cah . $ . GameInfo . ID = "id" ;
2012-01-23 07:58:36 +00:00
cah . $ . GamePlayerInfo = function ( ) {
2012-01-25 00:20:43 +00:00
// Dummy constructor to make Eclipse auto-complete.
2012-01-23 07:58:36 +00:00
} ;
2012-01-25 00:20:43 +00:00
cah . $ . GamePlayerInfo . prototype . dummyForAutocomplete = undefined ;
2012-01-23 07:58:36 +00:00
cah . $ . GamePlayerInfo . NAME = "name" ;
cah . $ . GamePlayerInfo . SCORE = "score" ;
cah . $ . GamePlayerInfo . STATUS = "status" ;
cah . $ . GamePlayerStatus = function ( ) {
2012-01-25 00:20:43 +00:00
// Dummy constructor to make Eclipse auto-complete.
2012-01-23 07:58:36 +00:00
} ;
2012-01-25 00:20:43 +00:00
cah . $ . GamePlayerStatus . prototype . dummyForAutocomplete = undefined ;
2012-01-23 21:20:15 +00:00
cah . $ . GamePlayerStatus . HOST = "host" ;
2012-01-23 07:58:36 +00:00
cah . $ . GamePlayerStatus . IDLE = "idle" ;
cah . $ . GamePlayerStatus . PLAYING = "playing" ;
cah . $ . GamePlayerStatus . JUDGE = "judge" ;
cah . $ . GamePlayerStatus . JUDGING = "judging" ;
cah . $ . GamePlayerStatus _msg = { } ;
cah . $ . GamePlayerStatus _msg [ 'playing' ] = "Playing" ;
cah . $ . GamePlayerStatus _msg [ 'idle' ] = "" ;
cah . $ . GamePlayerStatus _msg [ 'judging' ] = "Judging" ;
2012-01-23 21:20:15 +00:00
cah . $ . GamePlayerStatus _msg [ 'host' ] = "Host" ;
2012-01-23 07:58:36 +00:00
cah . $ . GamePlayerStatus _msg [ 'judge' ] = "Judge" ;
2012-01-25 00:20:43 +00:00
cah . $ . GamePlayerStatus _msg _2 = { } ;
cah . $ . GamePlayerStatus _msg _2 [ 'playing' ] = "Select a card to play." ;
cah . $ . GamePlayerStatus _msg _2 [ 'idle' ] = "Waiting for players..." ;
cah . $ . GamePlayerStatus _msg _2 [ 'judging' ] = "Select a winning card." ;
cah . $ . GamePlayerStatus _msg _2 [ 'host' ] = "Wait for players then click Start Game." ;
cah . $ . GamePlayerStatus _msg _2 [ 'judge' ] = "You are the judge this round." ;
2012-01-23 07:58:36 +00:00
2012-01-18 01:48:21 +00:00
cah . $ . GameState = function ( ) {
2012-01-25 00:20:43 +00:00
// Dummy constructor to make Eclipse auto-complete.
2012-01-18 01:48:21 +00:00
} ;
2012-01-25 00:20:43 +00:00
cah . $ . GameState . prototype . dummyForAutocomplete = undefined ;
2012-01-23 23:06:20 +00:00
cah . $ . GameState . PLAYING = "playing" ;
2012-01-18 01:48:21 +00:00
cah . $ . GameState . LOBBY = "lobby" ;
2012-01-23 23:06:20 +00:00
cah . $ . GameState . JUDGING = "judging" ;
2012-01-18 01:48:21 +00:00
cah . $ . GameState . DEALING = "dealing" ;
2012-01-18 04:37:09 +00:00
cah . $ . GameState _msg = { } ;
2012-01-23 23:06:20 +00:00
cah . $ . GameState _msg [ 'playing' ] = "In Progress" ;
cah . $ . GameState _msg [ 'judging' ] = "In Progress" ;
2012-01-18 04:37:09 +00:00
cah . $ . GameState _msg [ 'lobby' ] = "Joinable (Not Started)" ;
2012-01-27 06:17:36 +00:00
cah . $ . GameState _msg [ 'dealing' ] = "In Progress" ;
2012-01-18 01:48:21 +00:00
2012-01-13 05:36:31 +00:00
cah . $ . LongPollEvent = function ( ) {
2012-01-25 00:20:43 +00:00
// Dummy constructor to make Eclipse auto-complete.
2012-01-13 05:36:31 +00:00
} ;
2012-01-25 00:20:43 +00:00
cah . $ . LongPollEvent . prototype . dummyForAutocomplete = undefined ;
2012-01-13 05:36:31 +00:00
cah . $ . LongPollEvent . NOOP = "noop" ;
2012-01-25 00:20:43 +00:00
cah . $ . LongPollEvent . GAME _PLAYER _INFO _CHANGE = "game_player_info_change" ;
cah . $ . LongPollEvent . GAME _STATE _CHANGE = "game_state_change" ;
2012-01-23 21:20:15 +00:00
cah . $ . LongPollEvent . GAME _PLAYER _LEAVE = "game_player_leave" ;
2012-01-13 05:36:31 +00:00
cah . $ . LongPollEvent . NEW _PLAYER = "new_player" ;
cah . $ . LongPollEvent . PLAYER _LEAVE = "player_leave" ;
2012-01-23 21:20:15 +00:00
cah . $ . LongPollEvent . GAME _PLAYER _JOIN = "game_player_join" ;
2012-01-23 23:06:20 +00:00
cah . $ . LongPollEvent . HAND _DEAL = "hand_deal" ;
2012-01-13 05:36:31 +00:00
cah . $ . LongPollEvent . CHAT = "chat" ;
2012-01-25 00:20:43 +00:00
cah . $ . LongPollEvent . GAME _LIST _REFRESH = "game_list_refresh" ;
2012-01-13 05:36:31 +00:00
cah . $ . LongPollResponse = function ( ) {
2012-01-25 00:20:43 +00:00
// Dummy constructor to make Eclipse auto-complete.
2012-01-13 05:36:31 +00:00
} ;
2012-01-25 00:20:43 +00:00
cah . $ . LongPollResponse . prototype . dummyForAutocomplete = undefined ;
2012-01-27 06:17:36 +00:00
cah . $ . LongPollResponse . WHITE _CARDS = "white_cards" ;
2012-01-13 05:36:31 +00:00
cah . $ . LongPollResponse . GAME _ID = "game_id" ;
2012-01-25 00:20:43 +00:00
cah . $ . LongPollResponse . REASON = "reason" ;
2012-01-23 23:06:20 +00:00
cah . $ . LongPollResponse . HAND = "hand" ;
2012-01-25 00:20:43 +00:00
cah . $ . LongPollResponse . PLAYER _INFO = "player_info" ;
cah . $ . LongPollResponse . BLACK _CARD = "black_card" ;
cah . $ . LongPollResponse . GAME _STATE = "game_state" ;
cah . $ . LongPollResponse . NICKNAME = "nickname" ;
cah . $ . LongPollResponse . MESSAGE = "message" ;
2012-01-17 00:28:21 +00:00
cah . $ . LongPollResponse . ERROR = "error" ;
2012-01-25 00:20:43 +00:00
cah . $ . LongPollResponse . EVENT = "event" ;
cah . $ . LongPollResponse . FROM = "from" ;
2012-01-17 00:28:21 +00:00
cah . $ . LongPollResponse . ERROR _CODE = "error_code" ;
2012-01-13 05:36:31 +00:00
cah . $ . LongPollResponse . TIMESTAMP = "timestamp" ;
2012-01-23 07:58:36 +00:00
cah . $ . ReconnectNextAction = function ( ) {
2012-01-25 00:20:43 +00:00
// Dummy constructor to make Eclipse auto-complete.
2012-01-23 07:58:36 +00:00
} ;
2012-01-25 00:20:43 +00:00
cah . $ . ReconnectNextAction . prototype . dummyForAutocomplete = undefined ;
2012-01-23 07:58:36 +00:00
cah . $ . ReconnectNextAction . GAME = "game" ;
cah . $ . ReconnectNextAction . NONE = "none" ;
2012-01-23 23:06:20 +00:00
cah . $ . WhiteCardData = function ( ) {
2012-01-25 00:20:43 +00:00
// Dummy constructor to make Eclipse auto-complete.
2012-01-23 23:06:20 +00:00
} ;
2012-01-25 00:20:43 +00:00
cah . $ . WhiteCardData . prototype . dummyForAutocomplete = undefined ;
2012-01-23 23:06:20 +00:00
cah . $ . WhiteCardData . TEXT = "text" ;
cah . $ . WhiteCardData . ID = "id" ;