From: Christian Heller Date: Tue, 15 Jan 2019 02:07:33 +0000 (+0100) Subject: Class renaming. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7Bdb.prefix%7D%7D/template?a=commitdiff_plain;h=02d7ae7eb4e030ad84bc215c9d5703943607f66d;p=plomrogue2-experiments Class renaming. --- diff --git a/client.py b/client.py index dd40323..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 = '' diff --git a/game_common.py b/game_common.py index 689398d..39a12f1 100644 --- a/game_common.py +++ b/game_common.py @@ -52,7 +52,7 @@ class Thing: self.position = [0,0] -class Commander: +class CommonCommandsMixin: def cmd_MAP_SIZE(self, yx): """Set self.map_size to yx, redraw self.terrain_map as '?' cells.""" diff --git a/server_/game.py b/server_/game.py index c881f8e..e2a1187 100644 --- a/server_/game.py +++ b/server_/game.py @@ -193,7 +193,7 @@ def fib(n): return fib(n-1) + fib(n-2) -class Game(game_common.Commander): +class Game(game_common.CommonCommandsMixin): def __init__(self, game_file_name): import server_.io