X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=new2%2Fplomrogue%2Fgame.py;h=25f4d809b69b04083abb4bcea83996608920ee42;hb=1dc47266dcb1f7f692a7e993d2fb0bfb9f7ceeb1;hp=81bd530d8b3cde8c12db964042dabc505468256e;hpb=f70b38598ec55eb8036d3f0e301c9e39df567dee;p=plomrogue2-experiments diff --git a/new2/plomrogue/game.py b/new2/plomrogue/game.py index 81bd530..25f4d80 100755 --- a/new2/plomrogue/game.py +++ b/new2/plomrogue/game.py @@ -1,6 +1,6 @@ from plomrogue.tasks import Task_WAIT, Task_MOVE, Task_WRITE from plomrogue.errors import GameError -from plomrogue.commands import cmd_ALL, cmd_LOGIN, cmd_QUERY +from plomrogue.commands import cmd_ALL, cmd_LOGIN, cmd_QUERY, cmd_PING from plomrogue.io import GameIO from plomrogue.misc import quote from plomrogue.things import Thing, ThingPlayer @@ -41,7 +41,8 @@ class Game(GameBase): self.map_geometry = MapGeometrySquare(YX(24, 40)) self.commands = {'QUERY': cmd_QUERY, 'ALL': cmd_ALL, - 'LOGIN': cmd_LOGIN} + 'LOGIN': cmd_LOGIN, + 'PING': cmd_PING} self.thing_type = Thing self.thing_types = {'player': ThingPlayer} self.sessions = {}