Exemplo n.º 1
0
    def tick(self) :

        Movable.tick(self)

        for part in self.parts :
            if part.square :
                part.tick()
Exemplo n.º 2
0
    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()
Exemplo n.º 3
0
    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)