From 7281d7d352d2ea43c4f71ba7c60e4ba92a8bc0e4 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Tue, 9 Jun 2015 02:28:55 +0100 Subject: ui: allow to get the event associated with a card Signed-off-by: Olivier Gayot --- cao-common.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cao-common.js b/cao-common.js index 56ada43..e39317f 100644 --- a/cao-common.js +++ b/cao-common.js @@ -55,6 +55,10 @@ var CAO = function() { self.on_change_nbr_played_cards(nbr_played_cards); }; + this.get_white_card_event = function(idx) { + return white_cards[idx]['event']; + }; + this.change_state = function(state) { game_state = state; -- cgit v1.2.3