Beispiel #1
0
 def _generate(self, width, height):
     for y in xrange(0, height):
         for x in xrange(0, width):
             floor = Floor()
             floor.x, floor.y = x, y
             self._objects.add(floor)
Beispiel #2
0
 def test_add_turf_with_unadjustable_z_level(self):
     floor = Floor()
     floor.x, floor.y = 0, 1
     with self.assertRaises(Room.TurfZLevelNotAdjustable):
         self.room.add(floor)