Andy Janata
88b68c87b6
comment ALL the files!
2012-02-06 14:00:24 -08:00
Andy Janata
4d5fddd293
add 2-clause bsd-style license to source files
2012-02-02 14:47:23 -08:00
Andy Janata
987c01cc5a
- make a config js file for URIs and debug mode
...
- clean up the ordering of stuff in game.jsp
- only back off 1ms after a successful longpoll, but do the normal backoff delays after error
2012-01-30 23:49:46 -08:00
Andy Janata
7600ec27de
- refactor game handlers a bit to add another abstract class that ensures the user requesting is in the game in question
...
- add play card handler. need to send the white card count down to users that refresh the page.
- ajax event handlers get the request object as well as the result object so the server doesn't have to send the game id back in a response
2012-01-26 18:07:39 -08:00
Andy Janata
76d9be8f1c
more constants instead of immediate strings.
...
add a wrapper around the request parameters so we can use our enum values as the parameter names.
2012-01-16 16:28:21 -08:00
Andy Janata
61451105b0
do not return error messages, only return the error code and let the client look up the error message. this could eventually allow for localization of the error messages (but not the rest of the client yet)
2012-01-16 14:33:58 -08:00
Andy Janata
8da78ebac7
move MessageType back inside QueuedMessage since the client doesn't need it
...
make converter to produce js enums out of java enums
make everything use the constants on both sides for ajax operation code and disconnect reason
move the handler update out of the subpackage that it generates into
make the enum update and handler update run at build
2012-01-12 20:05:39 -08:00
Andy Janata
a7cc7c8d36
messing around with the ajax stuff to make autocomplete work better
2012-01-12 17:05:09 -08:00
Andy Janata
9e8c46ec2f
make ajax requests come from a builder to work on removing constant strings
2012-01-12 14:25:04 -08:00
Andy Janata
37cc770ed3
convert cah.ajax into an object to make things a little neater
2011-12-24 19:38:02 -08:00
Andy Janata
87c77993af
refactor the js code into several files. need to further refactor the ajax handlers, and make the server automatically assemble the list of files the client needs.
...
some sort of dependency ordering needs enforced too.
2011-12-22 18:48:20 -08:00