summaryrefslogtreecommitdiff
path: root/cao-common.js
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-09 02:28:55 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-09 02:29:12 +0100
commit7281d7d352d2ea43c4f71ba7c60e4ba92a8bc0e4 (patch)
tree6c2aeb0678dc6dea842605bafefa0ca856e647c0 /cao-common.js
parentd5f32920b1be4a5a7974a93687ece8b02609acff (diff)
ui: allow to get the event associated with a card
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'cao-common.js')
-rw-r--r--cao-common.js4
1 files changed, 4 insertions, 0 deletions
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;