Example #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)
Example #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)
Example #3
0
          'out': '@street',
          'in': '@guard_post'
      },
      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),
 Thing('@slips in @vestibule', article='some', called='deposit slips'),
 Thing('@fake_money in @vestibule',
       article='some',
Example #4
0
 def __init__(self, tag, **keywords):
     self.waves_next_turn = True
     self.angry = False
     Actor.__init__(self, tag, **keywords)
Example #5
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,
Example #6
0
 def __init__(self, tag, **keywords):
     self.waves_next_turn = True
     self.angry = False
     Actor.__init__(self, tag, **keywords)
Example #7
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,
Example #8
0
                            basis.agent,
                            direct=str(self),
                            feature='intact',
                            new=False)
            damage.after = """finally, a worthy contribution to the art world
            ... victory!"""
            damage.final = True
            actions = [damage]
        return actions


items = [
    Actor('@artist in @studio',
          article='the',
          called='artist',
          gender='female',
          allowed=can.possess_any_item,
          refuses=[('LEAVE way=(north|out)', when.always,
                    '[@artist/s] [have/v] work to do')]),
    Room('@studio',
         article='the',
         called='studio',
         exits={},
         sight='a bare studio space with a single exit, to the north'),
    Thing('@box in @studio',
          article='a',
          called='box',
          open=False,
          allowed=can.contain_and_support_things,
          sight='the medium-sized parcel [is/1/v] [open/@box/a]'),
    Art('@sculpture in @box',