Exemplo n.º 1
0
 def __init__(self, tag, **keywords):
     self.visitor_places = []
     self.visitor_moved = []
     self.distance = 0
     self.distance_filter = distance_filter
     self.timer = 16
     Actor.__init__(self, tag, **keywords)
Exemplo n.º 2
0
 def __init__(self, tag, **keywords):
     self.visitor_places = []
     self.visitor_moved = []
     self.distance = 0
     self.distance_filter = distance_filter
     self.timer = 16
     Actor.__init__(self, tag, **keywords)
Exemplo n.º 3
0
 def __init__(self, tag, **keywords):
     self.waves_next_turn = True
     self.angry = False
     Actor.__init__(self, tag, **keywords)
Exemplo n.º 4
0
 def __init__(self, tag, **keywords):
     self.waves_next_turn = True
     self.angry = False
     Actor.__init__(self, tag, **keywords)
Exemplo n.º 5
0
     called='(tasty) (corn) tortilla',
     referring='tasty typical circular thin white corn | circle disc disk',
     sight='a thin white circle, a corn tortilla',
     taste='bland but wholesome nutriment',
     consumable=True,
     prominence=0.2),
 Actor('@flaneur in @plaza_center',
       article='a',
       called='flaneur',
       referring='distracted foppish | flaneur',
       allowed=can.possess_any_thing,
       sight='a foppish man who [seem/1/v] dedicated to strolling about',
       qualities=['person', 'man'],
       gender='male',
       script=[
           'leave north', 'wait', 'wait', 'wander', 'wait', 'leave east',
           'wait', 'wait', 'wander', 'wait', 'leave south', 'wait',
           'wander', 'wait', 'wander', 'wait', 'wait', 'leave south',
           'wait', 'wait', 'leave west', 'wait', 'wait', 'wander', 'wait',
           'wait', 'leave west', 'wait', 'wait', 'wander', 'wait', 'wait',
           'leave north', 'wait', 'wait', 'wander', 'wait', 'wait',
           'leave north', 'wait', 'wait', 'leave east', 'wait', 'wait',
           'leave southwest', 'wait', 'wait'
       ],
       start=5),
 Actor(
     '@punk in @plaza_w',
     article='some',
     called='punk',
     referring='angry punky | punk',
     allowed=can.possess_any_thing,
Exemplo n.º 6
0
def in_foyer(world):
    return str(world.room_of('@person')) == '@foyer'


when.in_foyer = in_foyer

items = [
    Actor('@person in @foyer',
          article='the',
          called='operagoer',
          referring='| operagoer',
          qualities=['person', 'woman'],
          allowed=can.possess_things_and_wear_cloak,
          gender='female',
          refuses=[
              ('behave LEAVE direct=@person way=north', when.in_foyer,
               """[*/s] [have/v] only just arrived, and besides, the weather
         outside [seem/1/v] to be getting worse"""),
              ('configure direct=@cloak new_parent=@foyer', when.always,
               """the floor [is/not/1/v] the best place to leave a smart cloak
         lying around""")
          ],
          sight="""
        [*/s] [see/v] a typically nondescript character"""),
    Thing('@cloak on @person',
          article='a',
          called='(handsome) cloak (of darkness)',
          referring='black damp trimmed with satin smart soft sumptuous ' +
          'velvet | cape',
          qualities=['clothing'],
          glow=-0.5,
Exemplo n.º 7
0
        view={'@vestibule': (0.6, 'inside the vestibule')}),

    Room('@guard_post',
        article='the',
        called='guard post',
        exits={'out': '@lobby'},
        view={'@lobby': (0.8, 'through the one-way mirror')}),

    Room('@street',
        article='the',
        called='street outside the bank',
        exits={'in': '@lobby'}),

    Actor('@teller in @vestibule',
        article='the',
        called='bank teller',
        gender='female',
        allowed=can.have_any_item),

    Actor('@robber in @street',
        article='the',
        called='twitchy man',
        gender='male',
        allowed=can.have_any_item),

    Actor('@guard in @guard_post',
        article='the',
        called='burly guard',
        gender='male',
        allowed=can.have_any_item),