Changeset 108
Legend:
- Unmodified
- Added
- Removed
-
adventure/player.py
r103 r108 1 1 # -*- coding: utf-8 -*- 2 3 from thing import Thing 4 from xmpp import Message 5 2 6 class Player(Thing): 3 7 def __init__(self, world, name, jid): … … 14 18 send_message(None, line.strip()) 15 19 16 se nd_message(None, ' ')17 se nd_message(None, 'You can go %s}' % ', '.join(place.exits.keys()))20 self.send_message(None, ' ') 21 self.send_message(None, 'You can go %s}' % ', '.join(place.exits.keys())) 18 22 19 23 def send_message(self, fromresource, text, subject=None): -
adventure/thing.py
r104 r108 44 44 thing.send_message(fromresource, text) 45 45 46 def on_enter(thing, from ):46 def on_enter(thing, from_): 47 47 for c in each_element('on-enter'): 48 command(thing, c, [from ])48 command(thing, c, [from_]) 49 49 50 50 def on_leave(thing, to):
