Beispiel #1
0
 def prepareMap(self, map):
     map.points = [ Point(10,10), Point(70,10), Point(70,80), Point(30,80), Point(30,30), Point(10,30) ]
     map.wayPoints = [ Waypoint(20,20), Waypoint(33,27), Waypoint(60,20), Waypoint(50,70) ]
     map.width = 70
     map.height = 80
     map.SetAgentStart(50, 50)
     
     map.AddObject(Door, 70, 20)
     
     map.AddObject(Sink, 20, 20)
     map.AddObject(Plate, 15, 22)
     map.AddObject(Fork, 17, 21)
     map.AddObject(Knife, 22, 19)
     map.AddObject(Cup, 23, 20)
     
     map.AddObject(Flower, 32, 32)
     map.AddObject(Flower, 68, 78)
     
     map.AddObject(Chair, 35, 78)
     map.AddObject(Cards, 32, 72)
     
     map.AddObject(Table, 65, 50)
     map.AddObject(Chair, 66, 51)
     map.AddObject(Chess, 60, 55)
     map.AddObject(Apple, 63, 51)
     
Beispiel #2
0
    def prepareMap(self, map):
        map.points = [
            Point(0, 0),
            Point(100, 0),
            Point(100, 100),
            Point(0, 100)
        ]
        map.wayPoints = [
            Waypoint(50, 50),
            Waypoint(15, 15),
            Waypoint(85, 15),
            Waypoint(15, 85),
            Waypoint(85, 85)
        ]
        map.width = 100
        map.height = 100
        map.SetAgentStart(50, 50)

        map.AddObject(Chair, 10, 10)
        map.AddObject(Chair, 10, 12)

        map.AddObject(Wood, 60, 70)

        map.AddObject(Hammer, 90, 5)
        map.AddObject(Nail, 90, 10, amount=20)
        map.AddObject(Hammer, 90, 15)
        map.AddObject(Screwdriver, 92, 14)
        map.AddObject(Screwdriver, 86, 8)
        map.AddObject(Nail, 88, 12, amount=10)
        map.AddObject(Torch, 96, 2)
        map.AddObject(Pipe, 98, 6)

        map.AddObject(Plate, 50, 30)
        map.AddObject(Cup, 52, 35)
        map.AddObject(Fork, 45, 32)
        map.AddObject(Cover, 52, 30)

        map.AddObject(Flower, 22, 71)
        map.AddObject(Painting, 17, 82)
        map.AddObject(Flower, 22, 81)
        map.AddObject(Book, 18, 79)
        map.AddObject(Photoalbum, 20, 83)

        map.AddObject(Newspapers, 25, 81)
        map.AddObject(Painting, 29, 79)
        map.AddObject(Journal, 28, 81)
        map.AddObject(Book, 26, 79)

        map.AddObject(Sofa, 35, 81)
        map.AddObject(Armchair, 33, 82)
        map.AddObject(Cards, 37, 83)
        map.AddObject(Chair, 33, 80)

        map.AddObject(Chair, 42, 80)
        map.AddObject(Chess, 44, 82)
        map.AddObject(Cards, 39, 80)
        map.AddObject(GameBoy, 41, 83)
        map.AddObject(Knife, 47, 91)
        map.AddObject(Fork, 48, 93)
Beispiel #3
0
    def prepareMap(self, map):
        map.points = [
            Point(0, 0),
            Point(100, 0),
            Point(100, 100),
            Point(0, 100)
        ]
        map.wayPoints = [
            Waypoint(50, 50),
            Waypoint(15, 15),
            Waypoint(85, 15),
            Waypoint(15, 85),
            Waypoint(85, 85)
        ]
        map.width = 100
        map.height = 100
        map.SetAgentStart(50, 50)

        map.AddObject(Chair, 10, 10)
        map.AddObject(Chair, 10, 12)

        map.AddObject(Wood, 60, 70)

        map.AddObject(Hammer, 90, 5)
        map.AddObject(Nail, 90, 10)
        map.AddObject(Hammer, 90, 15)
        map.AddObject(Screwdriver, 92, 14)
        map.AddObject(Screwdriver, 86, 8)
        map.AddObject(Nail, 88, 12)
        map.AddObject(Torch, 96, 2)
        map.AddObject(Pipe, 98, 6)

        map.AddObject(Plate, 50, 30)
        map.AddObject(Cup, 52, 35)
        map.AddObject(Fork, 45, 32)
        map.AddObject(Knife, 48, 40)
        map.AddObject(Pot, 55, 35)
        map.AddObject(Cover, 52, 30)

        map.AddObject(Sofa, 20, 70)
        map.AddObject(Armchair, 18, 72)
        map.AddObject(Cards, 20, 72)
        map.AddObject(Chair, 19, 69)

        map.AddObject(Painting, 20, 85)
        map.AddObject(Flower, 22, 85)
        map.AddObject(Book, 19, 86)
        map.AddObject(Photoalbum, 23, 84)

        map.AddObject(Newspapers, 38, 70)
        map.AddObject(Painting, 40, 69)
        map.AddObject(Journal, 41, 68)
        map.AddObject(Book, 37, 65)

        map.AddObject(Chair, 32, 80)
        map.AddObject(Chess, 36, 82)
        map.AddObject(Cards, 40, 80)
        map.AddObject(GameBoy, 35, 81)
Beispiel #4
0
 def prepareMap(self, map):
     map.points = [ Point(0,0), Point(100,0), Point(100,100), Point(0, 100) ]
     map.wayPoints = [ Waypoint(50,50), Waypoint(15,15), Waypoint(85,15), Waypoint(15,85), Waypoint(85,85) ]
     map.width = 100
     map.height = 100
     map.SetAgentStart(50, 50)
     
     map.AddObject(Chess, 20, 30)
     
Beispiel #5
0
    def prepareMap(self, map):
        map.points = [
            Point(0, 0),
            Point(100, 0),
            Point(100, 100),
            Point(0, 100)
        ]
        map.wayPoints = [
            Waypoint(50, 50),
            Waypoint(15, 15),
            Waypoint(85, 15),
            Waypoint(15, 85),
            Waypoint(85, 85)
        ]
        map.width = 100
        map.height = 100
        map.SetAgentStart(50, 50)

        map.AddObject(Chair, 10, 10)
        map.AddObject(Chair, 10, 12)

        map.AddObject(Wood, 60, 70)

        map.AddObject(Sofa, 20, 60)
        map.AddObject(Armchair, 18, 62)
        map.AddObject(Chess, 20, 62)
        map.AddObject(Cards, 19, 59)

        map.AddObject(Hammer, 90, 5)
        map.AddObject(Nail, 90, 10)
        self.r1 = map.AddObject(Hammer, 90, 15)
        self.r2 = map.AddObject(Screwdriver, 92, 14)
        map.AddObject(Screwdriver, 86, 8)
        self.r3 = map.AddObject(Nail, 88, 12)
        map.AddObject(Torch, 96, 2)
        map.AddObject(Pipe, 98, 6)

        self.o1 = map.AddObject(Plate, 50, 40)
        self.o2 = map.AddObject(Cup, 52, 45)
        self.o3 = map.AddObject(Fork, 45, 42)
        self.o4 = map.AddObject(Knife, 48, 50)
        self.o5 = map.AddObject(Pot, 55, 45)
        self.o6 = map.AddObject(Cover, 52, 40)

        self.d1 = map.AddObject(Book, 50, 90)
        self.d2 = map.AddObject(Journal, 48, 96)
        self.d3 = map.AddObject(Book, 54, 92)
        self.d4 = map.AddObject(Journal, 52, 98)
        self.d5 = map.AddObject(Painting, 46, 95)
        self.d6 = map.AddObject(Photoalbum, 55, 98)
        self.d7 = map.AddObject(Newspapers, 48, 90)
        self.d8 = map.AddObject(Painting, 42, 92)
        self.d9 = map.AddObject(Newspapers, 44, 96)
        map.AddObject(Painting, 47, 98)
        map.AddObject(Book, 53, 91)
        self.d10 = map.AddObject(Book, 51, 97)
Beispiel #6
0
 def prepareMap(self, map):
     map.points = [ Point(0,0), Point(100,0), Point(100,30), Point(60,30), Point(60,70), Point(100,70), Point(100,100), Point(0,100) ]
     map.wayPoints = [ Waypoint(55,25), Waypoint(55,75), Waypoint(15,15), Waypoint(15,85), Waypoint(15,50),  Waypoint(80,15), Waypoint(80,85) ]
     map.width = 100
     map.height = 100
     map.SetAgentStart(20, 50)
     
     
     map.AddObject(Door, 100, 15)
     map.AddObject(Painting, 100, 20)
     map.AddObject(Flower, 98, 6)
     
     map.AddObject(Door, 100, 85)
     map.AddObject(Painting, 100, 76)
     map.AddObject(Chair, 95, 96)
     
     map.AddObject(Door, 0, 45)
     map.AddObject(Door, 0, 55)
     map.AddObject(Painting, 0, 50)
     
     map.AddObject(Table, 55, 60)
     map.AddObject(Chair, 53, 62)
     map.AddObject(Chair, 55, 64)
     map.AddObject(Chair, 58, 58)
     map.AddObject(Chair, 58, 62)
     map.AddObject(Armchair, 55, 38)
     map.AddObject(Armchair, 55, 42)
     
     map.AddObject(Flower, 5, 80)
     map.AddObject(Armchair, 8, 90)
     map.AddObject(Painting, 5, 100)
     
     map.AddObject(Sandwich, 54, 59)
     map.AddObject(Apple, 53, 58)
     map.AddObject(Apple, 54, 57)
     map.AddObject(Orange, 53, 56)
     map.AddObject(Orange, 54, 55)
     map.AddObject(CocaColaCan, 53, 54)
     
     map.AddObject(Journal, 50, 10)
     map.AddObject(Journal, 52, 9)
     map.AddObject(Newspapers, 45, 6)
     map.AddObject(Newspapers, 48, 15)
     map.AddObject(Glasses, 49, 2)
     
     
     
Beispiel #7
0
 def prepareMap(self, map):
     map.points = [ Point(0,0), Point(30,0), Point(30,80), Point(100,80), Point(100, 100), Point(0, 100) ]
     map.wayPoints = [ Waypoint(15,20), Waypoint(10,90), Waypoint(80,90) ]
     map.width = 100
     map.height = 100
     map.SetAgentStart(10, 90)
     
     map.AddObject(Table, 18, 22)
     map.AddObject(Chair, 16, 22)
     map.AddObject(Painting, 20, 24)
     
     map.AddObject(Flower, 8, 60)
     
     map.AddObject(Newspapers, 39, 82)
     map.AddObject(Glasses, 42, 82)
     map.AddObject(Pipe, 40, 81)
     
     map.AddObject(Sofa, 70, 90)
     
     map.AddObject(Door, 100, 90)
     map.AddObject(Painting, 100, 95)