class Barriere : def __init__(barriere,orientation, x, y) : # 09/2016 barriere.orientation = orientation #"h" ou "v" barriere.x = x barriere.y = y #cf les conventions pour x et y def __eq__(b1, b2) : #Quentin 04/10/2016 """ Permet de savoir si deux barrières sont identiques """ return b1.orientation == b2.orientation and b1.x == b2.x and b1.y == b2.y def copie(self) : return Barriere(self.orientation, self.x, self.y)