From 979a9c4123dcfe2b7527caa8ff9caf83bf274384 Mon Sep 17 00:00:00 2001 From: Andy Janata Date: Tue, 17 Jan 2012 21:58:09 -0800 Subject: [PATCH] - create games - list games - automatically refreshes list when game is created or destroyed - destroy games after removing all players (including at logout) --- WebContent/index.jsp | 1 + WebContent/js/cah.app.js | 6 -- WebContent/js/cah.constants.js | 27 +++++---- WebContent/js/cah.gamelist.js | 42 +++++++++++++- WebContent/js/cah.longpoll.handlers.js | 4 ++ src/net/socialgamer/cah/Constants.java | 8 ++- src/net/socialgamer/cah/data/Game.java | 10 +++- src/net/socialgamer/cah/data/GameManager.java | 49 +++++++++++++++- .../socialgamer/cah/data/QueuedMessage.java | 2 +- src/net/socialgamer/cah/data/User.java | 3 + .../cah/handlers/CreateGameHandler.java | 56 +++++++++++++++++++ .../socialgamer/cah/handlers/Handlers.java | 1 + 12 files changed, 188 insertions(+), 21 deletions(-) create mode 100644 src/net/socialgamer/cah/handlers/CreateGameHandler.java diff --git a/WebContent/index.jsp b/WebContent/index.jsp index 34c2ea9..585fed3 100644 --- a/WebContent/index.jsp +++ b/WebContent/index.jsp @@ -39,6 +39,7 @@