コード例 #1
0
 def __init__(self, dictionary):
     name = 'North-west corner of town square'
     description = 'You are in the north-west corner of a square. Streets leave the square to the north and west.'
     directions = [
         None, None, TownSquareNorth, TownSquareCentre, TownSquareWest,
         None, None, None
     ]
     items = [CobbledGround(dictionary)]
     super(TownSquareNorthWest, self).__init__(name, description,
                                               directions, items)
コード例 #2
0
 def __init__(self, dictionary):
     name = 'South-east corner of town square'
     description = 'You are in the south-east corner of a square. Streets leave the square to the south and east.'
     directions = [
         TownSquareEast, None, None, None, None, None, TownSquareSouth,
         TownSquareCentre
     ]
     items = [CobbledGround(dictionary)]
     super(TownSquareSouthEast, self).__init__(name, description,
                                               directions, items)
コード例 #3
0
 def __init__(self, dictionary):
     name = 'West side of town square'
     description = (
         'You are at the western end of a square. To the west is a building with smashed windows that '
         'appears to be a pub. A sign hanging above the door proclaims the pub\'s name as The '
         'Standing Order.')
     directions = [
         TownSquareNorthWest, TownSquareNorth, TownSquareCentre,
         TownSquareSouth, TownSquareSouthWest, None, None, None
     ]
     items = [CobbledGround(dictionary)]
     super(TownSquareWest, self).__init__(name, description, directions,
                                          items)
コード例 #4
0
 def __init__(self, dictionary):
     name = 'South side of town square'
     description = (
         'You are on the south side of a square. To the south is an office block with boarded up '
         'doors and windows.')
     directions = [
         TownSquareCentre, TownSquareEast, TownSquareSouthEast, None,
         'There doesn\'t seem to be an easy way into the building.',
         MuseumStreetNorth, TownSquareSouthWest, TownSquareWest
     ]
     items = [CobbledGround(dictionary)]
     super(TownSquareSouth, self).__init__(name, description, directions,
                                           items)
コード例 #5
0
 def __init__(self, dictionary):
     name = 'East side of town square'
     description = (
         'You are at the eastern end of a square. A large statue of a lion dominates this area. Behind '
         'it is a tall Victorian building which appears to be the town hall. All the windows are '
         'smashed.')
     directions = [
         TownSquareNorthEast, None, None, None, TownSquareSouthEast,
         TownSquareSouth, TownSquareCentre, TownSquareNorth
     ]
     items = [CobbledGround(dictionary), LionStatue(dictionary)]
     super(TownSquareEast, self).__init__(name, description, directions,
                                          items)
コード例 #6
0
 def __init__(self, dictionary):
     name = 'Town square'
     description = (
         'You are in the centre of a large square surrounded by buildings. To the east is a large statue '
         'of a lion. To the north you see someone who appears to be eating something. He doesn\'t look '
         'very well.')
     directions = [
         TownSquareNorth, TownSquareNorthEast, TownSquareEast,
         TownSquareSouthEast, TownSquareSouth, TownSquareSouthWest,
         TownSquareWest, TownSquareNorthWest
     ]
     items = [WoodenBoard(dictionary), CobbledGround(dictionary)]
     super(TownSquareCentre, self).__init__(name, description, directions,
                                            items)