home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve Map class design.
[plomrogue2-experiments]
/
client.py
diff --git
a/client.py
b/client.py
index 80cac96aab380849a29c4e54edb6cb5c5bc86579..07d59c235c5a2b21f9b3ff7ba90c6f29b75a86e2 100755
(executable)
--- a/
client.py
+++ b/
client.py
@@
-4,10
+4,10
@@
import plom_socket_io
import socket
import threading
from parser import ArgError, Parser
import socket
import threading
from parser import ArgError, Parser
-from game_common import World, Comm
ander
+from game_common import World, Comm
onCommandsMixin
-class Game(Comm
ander
):
+class Game(Comm
onCommandsMixin
):
world = World()
log_text = ''
world = World()
log_text = ''
@@
-23,6
+23,11
@@
class Game(Commander):
symbol = 'm'
return symbol
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
def cmd_TURN_FINISHED(self, n):
"""Do nothing. (This may be extended later.)"""
pass