Exemplo n.º 1
0
    def reset(self, being):
        super(BeingWidget, self).reset(being)

        for direc, widget in self.items.items():
            widget.reset(being)
            widget.setOpacity(0)

        direc = Direction.toViewed(self['direction'])
        self.setDirection(direc)
Exemplo n.º 2
0
 def walk(self, old_tile, new_tile, level, direction):
     direc = Direction.toViewed(direction)
     self.setDirection(direc)
     self.animation.walk(old_tile, new_tile, level)
Exemplo n.º 3
0
 def melee(self, tile, direc):
     direc = Direction.toViewed(direc)
     self.setDirection(direc)
     self.animation.melee(tile)