- def setConnect(self, conditionalFunction):
- self.conditionalFunction = conditionalFunction
+ def clearPath(self, repeated = False):
+ if (self.moving):
+ self.moving = False
+ self.moveTimer.stop()
+
+ self.path = []
+ self.currDest = 0
+ self.repeated = repeated
+
+ def addMovePoint(self, x, y, time = 20):
+ self.path.append((x, y, time))
+
+ def moveTo(self, x, y, time = 20):
+ self.clearPath()
+ self.addMovePoint(x, y, time)