diff options
Diffstat (limited to 'CAO_Client.py')
-rw-r--r-- | CAO_Client.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/CAO_Client.py b/CAO_Client.py index 67ce54f..6eccc2d 100644 --- a/CAO_Client.py +++ b/CAO_Client.py @@ -12,9 +12,13 @@ class CAO_Client(): if self.game is not None: return cao_error('You are already in a game') - self.game = self.game_manager.join_game(game_name) - return self.game.try_join(self) + game = self.game_manager.join_game(game_name) + # XXX self.game will be assigned by game.try_join() + return game.try_join(self) + + def set_game(self, game): + self.game = game def set_player(self, player): self.player = player |