class DingoDoorEvent:
    
    def __init__(self, x, y, game):
        self.game = game
        self.door = DingoDoor(image_util.load_image("dingofence_lock.png"), x, y + 1, game)
    
    def fire(self, source):
        if source is self.game.player and self.game.hasKey:
            self.door.end(source)
            self.game.free_animal("Dingo")
Example #2
0
class DingoDoorEvent:
    def __init__(self, x, y, game):
        self.game = game
        self.door = DingoDoor(image_util.load_image("dingofence_lock.png"), x,
                              y + 1, game)

    def fire(self, source):
        if source is self.game.player and self.game.hasKey:
            self.door.end(source)
            self.game.free_animal("Dingo")
 def __init__(self, x, y, game):
     self.game = game
     self.door = DingoDoor(image_util.load_image("dingofence_lock.png"), x, y + 1, game)
Example #4
0
 def __init__(self, x, y, game):
     self.game = game
     self.door = DingoDoor(image_util.load_image("dingofence_lock.png"), x,
                           y + 1, game)