diff options
Diffstat (limited to 'CAO_Client.py')
-rw-r--r-- | CAO_Client.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CAO_Client.py b/CAO_Client.py index 6eccc2d..b9da42a 100644 --- a/CAO_Client.py +++ b/CAO_Client.py @@ -2,10 +2,12 @@ from CAO_Status import cao_error from CAO_Game import CAO_Game class CAO_Client(): - def __init__(self, game_manager): + def __init__(self, socket, handler, game_manager): self.game = None self.game_manager = game_manager + self.handler = handler + self.socket = socket self.player = None def join_game(self, game_name): @@ -56,3 +58,6 @@ class CAO_Client(): if self.game is None: return cao_error('You have to join a game first') return self.game.try_view_black_card(self.player) + + def send_notification(self, message): + self.socket.send_message(self.handler, message) |