summaryrefslogtreecommitdiff
path: root/cao-common.js
AgeCommit message (Collapse)Author
2015-06-09ui: allow to get the event associated with a cardOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-09ui: handle the changes of game state in a generic wayOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-09ui: handle the number of played cards properlyOlivier Gayot
the number is stored in the cao object and can be retrieved by the mobile / desktop part. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-09mobile: use .text instead of .html for numbersOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-09ui: allow to check if we are judgeOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-08handle the notification for score updateOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-08generate the callbacks for white cards in the common partOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05fix invalid field nameOlivier Gayot
renamed state in game_state Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05provide the state of the game to a newcomerOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05removed the promptOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05remove desktop things from the common fileOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05fixed invalid removal of cardOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05removed debug logsOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05handle the notifications on the clientOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05use a map to handle the response handlingOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05fix desktop code in the common partOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04js: pay attention to the scope of the variablesOlivier Gayot
use the keyword var to avoid assigning them to the global object window. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04js: fixed invalid scope for thisOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04display the cards played and allow to select oneOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04moved the content of the desktop version into the proper fileOlivier Gayot
moved from cao-common.js to cao-desktop.js Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04renamed files to prepare for the mobile versionOlivier Gayot
the files have been renamed from game to cao. Moreover, we now prepare them to adapt to the mobile version of the game. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>