示例#1
0
文件: Robot.py 项目: IlyesBB/gl_robot
 def __eq__(self, other):
     if not Objet3D.__eq__(self, other):
         return False
     if other.forme != self.forme:
         return False
     if other.rd != self.rd or other.rg != self.rg:
         return False
     if other.direction != self.direction:
         return False
     if other.dist_wheels != self.dist_wheels:
         return False
     return True
示例#2
0
文件: Roue.py 项目: IlyesBB/gl_robot
 def __eq__(self, other):
     if Objet3D.__eq__(self, other) is False:
         return False
     if self.diametre != other.diametre:
         return False
     return True