summaryrefslogtreecommitdiff
path: root/CAO_Player.py
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-08 22:19:45 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-08 22:19:45 +0100
commiteb9edafa80a60bfc642011de38fd28f0d9dc9274 (patch)
tree3010fe0cec660eec8089075305d8502b2b148b51 /CAO_Player.py
parent3ad5555256afc58f1d74ceec8cb9b0b47c19ffd7 (diff)
send a notification when the score is updated
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'CAO_Player.py')
-rw-r--r--CAO_Player.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/CAO_Player.py b/CAO_Player.py
index 91e6351..d08a0a1 100644
--- a/CAO_Player.py
+++ b/CAO_Player.py
@@ -24,6 +24,10 @@ class CAO_Player():
def inc_score(self):
self.score += 1
+ self.send_notification({
+ 'op': 'updated_score',
+ 'content': self.score,
+ })
def receive_card(self, card):
self.cards[self.next_idx] = card