diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-06-04 23:22:05 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-06-04 23:22:05 +0100 |
commit | 0c961c2a1252d0ee9d656516761b350f977d263d (patch) | |
tree | feb304dcb1c1bf65930327ee36e4dcedc2363b0f /CAO_Player.py | |
parent | 1cf99f4b45ae926052af21a7fe9c47bccfda5c91 (diff) |
transmit a new card to the player using a notification
when it's time for another turn, we send a notification to the user plus
its new card so he does not need to execute a query again.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'CAO_Player.py')
-rw-r--r-- | CAO_Player.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CAO_Player.py b/CAO_Player.py index a4dc326..91e6351 100644 --- a/CAO_Player.py +++ b/CAO_Player.py @@ -28,6 +28,7 @@ class CAO_Player(): def receive_card(self, card): self.cards[self.next_idx] = card self.next_idx += 1 + return self.next_idx - 1 def send_notification(self, obj): if self.client is None: |