from plomrogue.io import GameIO
from plomrogue.misc import quote
from plomrogue.things import Thing, ThingPlayer
+from plomrogue.mapping import MapGeometrySquare
self.io = GameIO(self)
self.tasks = {'WAIT': Task_WAIT,
'MOVE': Task_MOVE}
- self.commands = {'QUERY': cmd_QUERY, 'ALL': cmd_ALL, 'LOGIN': cmd_LOGIN}
+ self.map_geometry = MapGeometrySquare()
+ self.commands = {'QUERY': cmd_QUERY,
+ 'ALL': cmd_ALL,
+ 'LOGIN': cmd_LOGIN}
self.thing_type = Thing
self.thing_types = {'player': ThingPlayer}
self.sessions = {}
def get_string_options(self, string_option_type):
if string_option_type == 'direction':
- return ['UP', 'DOWN', 'LEFT', 'RIGHT']
+ return self.map_geometry.get_directions()
return None
def send_gamestate(self, connection_id=None):