X-Git-Url: https://plomlompom.com/repos//%22https:/validator.w3.org/check?a=blobdiff_plain;f=client.py;h=07d59c235c5a2b21f9b3ff7ba90c6f29b75a86e2;hb=02d7ae7eb4e030ad84bc215c9d5703943607f66d;hp=80cac96aab380849a29c4e54edb6cb5c5bc86579;hpb=827134a13175939231b85fbc159c013e0f024e78;p=plomrogue2-experiments diff --git a/client.py b/client.py index 80cac96..07d59c2 100755 --- a/client.py +++ b/client.py @@ -4,10 +4,10 @@ import plom_socket_io import socket import threading from parser import ArgError, Parser -from game_common import World, Commander +from game_common import World, CommonCommandsMixin -class Game(Commander): +class Game(CommonCommandsMixin): world = World() log_text = '' @@ -23,6 +23,11 @@ class Game(Commander): symbol = 'm' return symbol + def cmd_LAST_PLAYER_TASK_RESULT(self, msg): + if msg != "success": + self.log_text = msg + '\n' + self.log_text + cmd_LAST_PLAYER_TASK_RESULT.argtypes = 'string' + def cmd_TURN_FINISHED(self, n): """Do nothing. (This may be extended later.)""" pass