def tick(self) : Movable.tick(self) for part in self.parts : if part.square : part.tick()
def tick( self ) : Movable.tick(self) if self.pause : return if not self.isMoving() : if self.logic == 1 or self.logic == 2 : self.moveRound() else : self.moveRandom()
def tick(self) : Movable.tick(self) # Check that dummy hasn't been removed from the grid (which will happen if my tick caused it to die) if self.dummy.square : self.dummy.tick() if self.square and not self.isMoving() : forward = self.look( self.direction, 0 ) if forward.hasTag(self.squash) : self.move(self.direction, 0)